compiler.tree.modular-arithmetic: fix regression; set-alien-*-1 was not always open-coded

db4
Slava Pestov 2009-08-20 17:56:49 -05:00
parent 93c93a392b
commit 49bd2228ec
2 changed files with 3 additions and 2 deletions

View File

@ -424,4 +424,5 @@ M: object bad-dispatch-position-test* ;
] with-compilation-unit
] 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

View File

@ -172,7 +172,7 @@ MEMO: fixnum-coercion ( flags -- nodes )
] when ;
: 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
[ drop fixnum <class-info> ] change-at
] when ;