more rest argument inlining improvements
authorAndy Wingo <wingo@pobox.com>
Fri, 15 Feb 2013 13:15:15 +0000 (14:15 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 15 Feb 2013 13:15:19 +0000 (14:15 +0100)
commit8598dd8d28d16fe1ec92dfc49f6517992f1598ec
treeb489a1e53c810514c69b36cbefa4267feb77d362
parentd21537efb4a0edea30a7ab801909207d4bb69030
more rest argument inlining improvements

* module/language/tree-il/peval.scm (peval): Correct comment on
  find-definition, and allow a find-definition to fall back on a source
  expression.  Avoid copying non-constant expressions.

* test-suite/tests/peval.test ("partial evaluation"): Add a test that
  inlining rest arguments works with complicated argument expressions,
  and a test that order of effects in rest args is preserved.
module/language/tree-il/peval.scm
test-suite/tests/peval.test