trying to reduce a little allocation
This commit is contained in:
parent
7b31b119a5
commit
a97e858b43
|
@ -17,6 +17,16 @@
|
|||
"M.p.label"]
|
||||
|
||||
[(MakeCompiledProcedure? op)
|
||||
(cond
|
||||
;; Small optimization: try to avoid creating the array if we know up front
|
||||
;; that the closure has no closed values.
|
||||
[(null? (MakeCompiledProcedure-closed-vals op))
|
||||
(format "new RT.Closure(~a,~a,undefined,~a)"
|
||||
(assemble-label (make-Label (MakeCompiledProcedure-label op))
|
||||
blockht)
|
||||
(assemble-arity (MakeCompiledProcedure-arity op))
|
||||
(assemble-display-name (MakeCompiledProcedure-display-name op)))]
|
||||
[else
|
||||
(format "new RT.Closure(~a,~a,[~a],~a)"
|
||||
(assemble-label (make-Label (MakeCompiledProcedure-label op))
|
||||
blockht)
|
||||
|
@ -29,7 +39,7 @@
|
|||
;; during install-closure-values.
|
||||
(reverse (MakeCompiledProcedure-closed-vals op)))
|
||||
",")
|
||||
(assemble-display-name (MakeCompiledProcedure-display-name op)))]
|
||||
(assemble-display-name (MakeCompiledProcedure-display-name op)))])]
|
||||
|
||||
[(MakeCompiledProcedureShell? op)
|
||||
(format "new RT.Closure(~a,~a,undefined,~a)"
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
(provide version)
|
||||
(: version String)
|
||||
|
||||
(define version "1.142")
|
||||
(define version "1.143")
|
||||
|
|
Loading…
Reference in New Issue
Block a user