Skip to content

Commit 9eabba9

Browse files
gus-massamflatt
authored andcommitted
(move and out of bind-type-object-type)
1 parent 973429e commit 9eabba9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

s/cpprim.ss

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,8 @@
414414
(define-syntax bind-type-object-type ; NB: caller must bind expr
415415
(syntax-rules ()
416416
[(_ ([id expr]) body)
417-
(build-and
418-
(%type-check mask-typed-object type-typed-object ,expr)
419-
(bind #t ([id (%mref ,expr ,(constant typed-object-type-disp))])
420-
body))]))
417+
(bind #t ([id (%mref ,expr ,(constant typed-object-type-disp))])
418+
body)]))
421419
(define lift-fp-unboxed
422420
(lambda (k)
423421
(lambda (e)
@@ -3115,20 +3113,24 @@
31153113
(build-and
31163114
(%type-check mask-flonum type-flonum ,e)
31173115
`(call ,(make-info-call src sexpr #f #f #f) #f ,(lookup-primref 3 'flfinite?) ,e))
3118-
(bind-type-object-type ([t e])
3119-
(build-simple-or
3120-
(%type-check mask-bignum type-bignum ,t)
3121-
(%type-check mask-ratnum type-ratnum ,t))))))])
3116+
(build-and
3117+
(%type-check mask-typed-object type-typed-object ,e)
3118+
(bind-type-object-type ([t e])
3119+
(build-simple-or
3120+
(%type-check mask-bignum type-bignum ,t)
3121+
(%type-check mask-ratnum type-ratnum ,t)))))))])
31223122
(define-inline 2 real?
31233123
[(e) (bind #t (e)
31243124
(build-simple-or
31253125
(%type-check mask-fixnum type-fixnum ,e)
31263126
(build-simple-or
31273127
(%type-check mask-flonum type-flonum ,e)
3128+
(build-and
3129+
(%type-check mask-typed-object type-typed-object ,e)
31283130
(bind-type-object-type ([t e])
31293131
(build-simple-or
31303132
(%type-check mask-bignum type-bignum ,t)
3131-
(%type-check mask-ratnum type-ratnum ,t))))))])
3133+
(%type-check mask-ratnum type-ratnum ,t)))))))])
31323134
(define-inline 2 inexact?
31333135
[(e) (bind #t (e)
31343136
(build-and

0 commit comments

Comments
 (0)