Add "pop" field to $prompt
authorAndy Wingo <wingo@pobox.com>
Tue, 29 Oct 2013 21:57:29 +0000 (22:57 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 31 Oct 2013 08:47:48 +0000 (09:47 +0100)
commit96af4a18b89f52bb94eb0ef69898b7f6a059beaa
treea693133f23bdb2d0a1e1178b3cc6dac8b3b422e1
parent2700f1983373a336d67bc622538988b36da73f09
Add "pop" field to $prompt

* module/language/cps.scm ($prompt): Add a "pop" field, indicating the
  continuation at which this prompt is popped.  The body of the prompt
  is dominated by the prompt, and post-dominated by the pop.  Adapt all
  builders and users.

* module/language/cps/closure-conversion.scm:
* module/language/cps/compile-rtl.scm:
* module/language/cps/slot-allocation.scm:
* module/language/cps/verify.scm:
* module/language/tree-il/compile-cps.scm: Adapt.

* module/language/cps/dfg.scm (visit-fun): Add an arc from the pop to
  the handler, to keep handler variables alive through the prompt body.
module/language/cps.scm
module/language/cps/closure-conversion.scm
module/language/cps/compile-rtl.scm
module/language/cps/dfg.scm
module/language/cps/slot-allocation.scm
module/language/cps/verify.scm
module/language/tree-il/compile-cps.scm