Fix constant-needs-allocation? for $values uses
authorAndy Wingo <wingo@pobox.com>
Mon, 16 Dec 2013 12:48:59 +0000 (13:48 +0100)
committerAndy Wingo <wingo@pobox.com>
Sat, 11 Jan 2014 15:01:10 +0000 (16:01 +0100)
commit58ef5f07128204f333357879125a831e90e0ea27
treec0d293449f1e6aef3f2719340de6b7cc4bd08ae6
parentd20b4a1cd25571966b749053e0cbcd1cb66124a0
Fix constant-needs-allocation? for $values uses

* module/language/cps/dfg.scm (constant-needs-allocation?): Use of a
  constant in a $values expression of any arity does not cause slot
  allocation.

* module/language/cps/compile-bytecode.scm (compile-fun): Allow $values
  with a constant value to be compiled in test context.  Really we
  should fold these in a previous pass!
module/language/cps/compile-bytecode.scm
module/language/cps/dfg.scm