1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-16 16:50:21 +02:00

Public make-cont-folder

* module/language/cps.scm (make-cont-folder): Add global? parameter, and
  make public.
  (fold-conts): Adapt.
  (fold-local-conts): Use make-cont-folder, and take a function instead
  of a continuation.

* module/language/cps/arities.scm (fix-clause-arities, fix-arities*):
* module/language/cps/compile-bytecode.scm (collect-conts):
* module/language/cps/elide-values.scm (elide-values*): Adapt to
  fold-local-conts change.
This commit is contained in:
Andy Wingo 2014-03-29 07:56:08 +01:00
parent 1eda52c8ad
commit a6f823bd02
4 changed files with 21 additions and 44 deletions

View file

@ -91,9 +91,7 @@
(when idx
(vector-set! contv idx cont))))
'()
(match f
(($ $fun src meta free entry)
entry)))
f)
contv))
(define (compile-fun f asm)