Minor reorganization of stack-checker.call-effect
parent
23b8f48267
commit
500c784bd7
|
@ -84,16 +84,16 @@ M: quotation cached-effect
|
||||||
[ drop call-effect-slow ]
|
[ drop call-effect-slow ]
|
||||||
if ; inline
|
if ; inline
|
||||||
|
|
||||||
\ call-effect [
|
: call-effect-ic ( quot effect inline-cache -- )
|
||||||
inline-cache new '[
|
3dup nip cache-hit?
|
||||||
_
|
[ drop call-effect-unsafe ]
|
||||||
3dup nip cache-hit? [
|
[ call-effect-fast ]
|
||||||
drop call-effect-unsafe
|
if ; inline
|
||||||
] [
|
|
||||||
call-effect-fast
|
: call-effect>quot ( -- quot )
|
||||||
] if
|
inline-cache new '[ _ call-effect-ic ] ;
|
||||||
]
|
|
||||||
] 0 define-transform
|
\ call-effect [ call-effect>quot ] 0 define-transform
|
||||||
|
|
||||||
\ call-effect t "no-compile" set-word-prop
|
\ call-effect t "no-compile" set-word-prop
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue