compiler.tree.modular-arithmetic: fix regression; set-alien-*-1 was not always open-coded
parent
93c93a392b
commit
49bd2228ec
basis/compiler
tests
tree/modular-arithmetic
|
@ -424,4 +424,5 @@ M: object bad-dispatch-position-test* ;
|
||||||
] with-compilation-unit
|
] with-compilation-unit
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
[ t [ [ f ] [ 3 ] if >fixnum ] compile-call ] [ no-method? ] must-fail-with
|
! Not sure if I want to fix this...
|
||||||
|
! [ t [ [ f ] [ 3 ] if >fixnum ] compile-call ] [ no-method? ] must-fail-with
|
|
@ -172,7 +172,7 @@ MEMO: fixnum-coercion ( flags -- nodes )
|
||||||
] when ;
|
] when ;
|
||||||
|
|
||||||
: optimize-low-order-op ( #call -- nodes )
|
: optimize-low-order-op ( #call -- nodes )
|
||||||
dup in-d>> first fixnum-value? [
|
dup in-d>> first actually-defined-by [ value>> fixnum-value? ] all? [
|
||||||
[ ] [ in-d>> first ] [ info>> ] tri
|
[ ] [ in-d>> first ] [ info>> ] tri
|
||||||
[ drop fixnum <class-info> ] change-at
|
[ drop fixnum <class-info> ] change-at
|
||||||
] when ;
|
] when ;
|
||||||
|
|
Loading…
Reference in New Issue