Add with-fresh-name-state-from-dfg
authorAndy Wingo <wingo@pobox.com>
Wed, 2 Apr 2014 14:25:07 +0000 (16:25 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 3 Apr 2014 07:29:05 +0000 (09:29 +0200)
commit3e1b97c1b06b76ef178ffd2ffe68a1babc86333c
tree86bf2841a36a1c6fcf62e93dbd99433e13e5d215
parentaf11242268c22fb80a102e66f142e0073f7889cc
Add with-fresh-name-state-from-dfg

* module/language/cps/dfg.scm (with-fresh-name-state-from-dfg): New
  helper.
  ($dfg, compute-dfg): Store max-var and max-label in the dfg.

* module/language/cps.scm (with-fresh-name-state): Don't raise an error
  on recursive invocation; that was mostly useful when finding a bug.

* module/language/cps/arities.scm (fix-arities):
* module/language/cps/specialize-primcalls.scm (specialize-primcalls):
  Use the new helper.

* .dir-locals.el: Update.
.dir-locals.el
module/language/cps.scm
module/language/cps/arities.scm
module/language/cps/dfg.scm
module/language/cps/specialize-primcalls.scm