more fixes

This commit is contained in:
dyoo 2011-03-15 15:38:38 -04:00
parent fc723832c8
commit 9a527d48d4
2 changed files with 4 additions and 23 deletions

View File

@ -25,18 +25,11 @@
(newline op)
;; The support code for call/cc
(for-each (lambda (code)
(displayln code op))
(map assemble-basic-block
(fracture (get-bootstrapping-code))))
(newline op)
(fprintf op "var invoke = ")
(assemble/write-invoke (compile (parse source-code)
'val
'next)
(assemble/write-invoke (append (get-bootstrapping-code)
(compile (parse source-code)
'val
'next))
op)
(fprintf op ";\n"))

View File

@ -5,7 +5,6 @@
"parse.rkt"
"il-structs.rkt"
"compile.rkt"
"bootstrapped-primitives.rkt"
racket/port
racket/promise
racket/runtime-path)
@ -45,11 +44,6 @@
"(function() { "
runtime
;; The support code for call/cc
(string-join (map assemble-basic-block
(fracture (get-bootstrapping-code)))
"\n")
"return function(success, fail, params){"
snippet
@ -69,12 +63,6 @@
(display "(function() { " op)
(display runtime op)
(display
(string-join (map assemble-basic-block
(fracture (get-bootstrapping-code)))
"\n")
op)
(display "var myInvoke = " op)
(assemble/write-invoke a-statement op)