Optimize closure calls to globals

This commit is contained in:
Justin Ethier 2021-05-31 17:14:59 -04:00
parent 881ce5fb7f
commit 5f8b8f9f40

View file

@ -1970,7 +1970,9 @@
`((%closure-ref ,f 0 `((%closure-ref ,f 0
;; Indicate if closure refers to a compiled continuation ;; Indicate if closure refers to a compiled continuation
,@(if (and (symbol? fn) ,@(if (and (symbol? fn)
(if-var fn adbv:cont?)) (or
(if-var fn adbv:cont?)
(if-var fn adbv:global?)))
(list #t) (list #t)
(list))) (list)))
,f ,f