cs: restore cross-module optimization

A backwards `if` in a7988c3813 disabled cross-module optimization.
This commit is contained in:
Matthew Flatt 2019-04-24 10:39:05 -06:00
parent 20e669f478
commit d69f5cf00f
2 changed files with 3 additions and 5 deletions

View File

@ -528,9 +528,8 @@
;; Callback to get a specific linklet for a
;; given import:
(if get-import
(lambda (key) (values #f #f #f))
(lambda (key)
(lookup-linklet-or-instance get-import key)))
(lambda (key) (lookup-linklet-or-instance get-import key))
(lambda (key) (values #f #f #f)))
import-keys))
(define impl-lam/lifts
(lift-in-schemified-linklet (show pre-lift-on? "pre-lift" impl-lam)))

View File

@ -95,8 +95,7 @@
(sstats-gc-cpu stats)))))))))))
(define (current-gc-milliseconds)
(let ([stats (statistics)])
(inexact->exact (floor (time->ms (sstats-gc-cpu stats))))))
(inexact->exact (floor (time->ms (#%$gc-cpu-time)))))
(define (current-milliseconds)
(inexact->exact (floor (current-inexact-milliseconds))))