Fixing more codegen bugs
parent
ae3c4ae1b6
commit
d8d3645d72
|
@ -107,13 +107,13 @@ MEMO: <byte-array>-expansion ( n -- quot )
|
||||||
first-literal <byte-array>-expansion ;
|
first-literal <byte-array>-expansion ;
|
||||||
|
|
||||||
MEMO: <ratio>-expansion ( -- quot )
|
MEMO: <ratio>-expansion ( -- quot )
|
||||||
[ (ratio) [ 1 set-slot ] keep [ 2 set-slot ] keep ] splice-final ;
|
[ (ratio) [ 2 set-slot ] keep [ 1 set-slot ] keep ] splice-final ;
|
||||||
|
|
||||||
: expand-<ratio> ( #call -- nodes )
|
: expand-<ratio> ( #call -- nodes )
|
||||||
drop <ratio>-expansion ;
|
drop <ratio>-expansion ;
|
||||||
|
|
||||||
MEMO: <complex>-expansion ( -- quot )
|
MEMO: <complex>-expansion ( -- quot )
|
||||||
[ (complex) [ 1 set-slot ] keep [ 2 set-slot ] keep ] splice-final ;
|
[ (complex) [ 2 set-slot ] keep [ 1 set-slot ] keep ] splice-final ;
|
||||||
|
|
||||||
: expand-<complex> ( #call -- nodes )
|
: expand-<complex> ( #call -- nodes )
|
||||||
drop <complex>-expansion ;
|
drop <complex>-expansion ;
|
||||||
|
|
|
@ -188,7 +188,7 @@ HOOK: %unbox-f cpu ( dst src -- )
|
||||||
|
|
||||||
HOOK: %unbox-any-c-ptr cpu ( dst src -- )
|
HOOK: %unbox-any-c-ptr cpu ( dst src -- )
|
||||||
|
|
||||||
HOOK: %box-alien cpu ( dst src temp1 temp2 -- )
|
HOOK: %box-alien cpu ( dst src temp -- )
|
||||||
|
|
||||||
! Allocation
|
! Allocation
|
||||||
HOOK: %allot cpu ( dst size type tag temp -- )
|
HOOK: %allot cpu ( dst size type tag temp -- )
|
||||||
|
|
Loading…
Reference in New Issue