add tree-il->glil compilation test suite
authorAndy Wingo <wingo@pobox.com>
Mon, 18 May 2009 21:45:35 +0000 (23:45 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 18 May 2009 21:45:35 +0000 (23:45 +0200)
commitce09ee19892d391f3b2ca13e0616d343929c2c14
tree3190bdbeacf018d36b00dcf956dbeb1c70fb026c
parentdce042f1f74f8ef5ca5089beb50fd7496feae5da
add tree-il->glil compilation test suite

* module/language/tree-il.scm (parse-tree-il): Fix a number of bugs.
  (unparse-tree-il): Apply takes rest args now.

* module/language/tree-il/analyze.scm (analyze-lexicals)
  (analyze-lexicals): Heap vars shouldn't increment the number of locals.

* module/language/tree-il/optimize.scm (resolve-primitives!): Don't
  resolve public refs to primitives, not at the moment anyway.

* test-suite/Makefile.am (SCM_TESTS): Add tree-il test.

* test-suite/lib.scm (pass-if, expect-fail, pass-if-exception)
  (expect-fail-exception): Rewrite as syntax-rules macros. In a very
  amusing turn of events, it turns out that bindings introduced by
  hygienic macros are not visible inside expansions produced by
  defmacros. This seems to be expected, so go ahead and work around the
  problem.

* test-suite/tests/srfi-31.test ("rec special form"): Expand in eval.

* test-suite/tests/syntax.test ("begin"): Do some more expanding in eval,
  though all is not yet well.

* test-suite/tests/tree-il.test: New test suite, for tree-il->glil
  compilation.
module/language/tree-il.scm
module/language/tree-il/analyze.scm
module/language/tree-il/optimize.scm
test-suite/Makefile.am
test-suite/lib.scm
test-suite/tests/srfi-31.test
test-suite/tests/syntax.test
test-suite/tests/tree-il.test [new file with mode: 0644]