mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 12:00:21 +02:00
Closure conversion, reify-primitives use $kfun $cont
* module/language/cps/closure-conversion.scm: Produce a $kfun $cont. * module/language/cps/reify-primitives.scm: Produce and consume $kfun $cont. * module/language/cps/compile-bytecode.scm: Adapt.
This commit is contained in:
parent
6bc36ca55e
commit
b85f5f851f
3 changed files with 60 additions and 64 deletions
|
@ -506,13 +506,12 @@
|
|||
(exp (optimize exp opts))
|
||||
(exp (convert-closures exp))
|
||||
(exp (reify-primitives exp))
|
||||
(exp (renumber exp))
|
||||
(exp (match (renumber (build-cps-exp ($fun '() ,exp)))
|
||||
(($ $fun free body) body)))
|
||||
(asm (make-assembler)))
|
||||
(visit-funs (lambda (fun)
|
||||
(compile-fun fun asm))
|
||||
(match exp
|
||||
(($ $fun free body)
|
||||
body)))
|
||||
exp)
|
||||
(values (link-assembly asm #:page-aligned? (kw-arg-ref opts #:to-file? #f))
|
||||
env
|
||||
env)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue