1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-12 14:50:19 +02:00
guile/module/language
Andy Wingo 987c1f5ff3 Rewrite slot allocation pass
* module/language/cps/slot-allocation.scm ($allocation): Refactor
  internal format of allocations.  Instead of an allocation being a hash
  table of small $allocation objects, it is an $allocation object that
  contains packed vectors.
  (find-first-trailing-zero): Rework to not need a maximum.
  (lookup-maybe-slot): New interface.
  (lookup-slot): Raise an error if a var has no slot.
  (lookup-call-allocation): New helper.
  (lookup-constant-value, lookup-maybe-constant-value):
  (lookup-call-proc-slot, lookup-parallel-moves): Adapt to $allocation
  change

  (allocate-slots): Rewrite so that instead of being recursive, it
  traverses the blocks in CFA order.  Also, procedure call frames are
  now allocated with respect to the live set after using arguments (and
  killing any dead-after-use vars); this should make call frames more
  compact but it does necessitate a parallel move solution.  Therefore
  parallel moves are recorded for all calls, for arguments; also if the
  continuation is a $ktrunc, the continuation gets parallel moves for
  the results.

  This rewrite is in preparation to allocating call args directly in the
  appropriate slots, where possible.

* module/language/cps/compile-rtl.scm (compile-fun): Adapt to slot
  allocation changes, using lookup-maybe-slot where appropriate,
  performing parallel moves when calling functions, and expecting return
  moves to be associated with $ktrunc continuations.
2013-11-15 11:17:18 +01:00
..
brainfuck rename <application> to <call> 2011-06-02 13:42:55 +02:00
cps Rewrite slot allocation pass 2013-11-15 11:17:18 +01:00
ecmascript Adapt ecmascript compiler to tree-il prompt changes, again. 2013-08-11 17:18:09 -04:00
elisp Fix order of evaluation in elisp lexer 2013-11-01 18:23:51 +01:00
rtl Default to compiling to RTL 2013-10-31 14:17:30 +01:00
scheme Merge remote-tracking branch 'origin/stable-2.0' 2013-08-11 22:46:22 -04:00
tree-il Replace ($var sym) with ($values (sym)). 2013-11-13 20:55:28 +01:00
value Add 'for-humans?' flag to <language> specifications. 2013-01-27 10:16:40 -05:00
cps.scm Replace ($var sym) with ($values (sym)). 2013-11-13 20:55:28 +01:00
rtl.scm VM has "builtins": primitives addressable by emitted RTL code 2013-10-27 20:09:01 +01:00
tree-il.scm <prompt> body and handler are lambdas; add escape-only? field 2013-07-06 20:27:21 +09:00