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

Adapt ecmascript compiler to recent tree-il changes for prompts.

* module/language/ecmascript/compile-tree-il.scm (with-return-prompt):
  Adapt to the changes in 178a40928a.
  Prompt tree-il nodes now contain an explicit 'escape-only?' flag, and
  the body and handler are now both lambdas.
This commit is contained in:
Mark H Weaver 2013-08-07 03:13:11 -04:00
parent 6dce942c46
commit 5270bb5bdb

View file

@ -83,12 +83,17 @@
(-> (lexical 'return tag))))
(-> (let '(return) (list tag)
(list (-> (primcall 'make-prompt-tag)))
(-> (prompt (current-return-tag)
(body-thunk)
(-> (prompt #t
(current-return-tag)
(-> (lambda '()
(-> (lambda-case
`((() #f #f #f () ())
,(body-thunk))))))
(let ((val (gensym "val")))
(-> (lambda-case
`(((k val) #f #f #f () (,(gensym) ,val))
,(-> (lexical 'val val)))))))))))))
(-> (lambda '()
(-> (lambda-case
`(((k val) #f #f #f () (,(gensym) ,val))
,(-> (lexical 'val val)))))))))))))))
(define (comp x e)
(let ((l (location x)))