optimized. now accepts method-specs
parent
bea4d80a33
commit
e6cb449b19
|
@ -125,9 +125,13 @@ M: node node>quot drop ;
|
||||||
: nodes>quot ( node -- quot )
|
: nodes>quot ( node -- quot )
|
||||||
[ [ node>quot ] each ] [ ] make ;
|
[ [ node>quot ] each ] [ ] make ;
|
||||||
|
|
||||||
: optimized. ( quot/word -- )
|
GENERIC: optimized. ( quot/word -- )
|
||||||
dup word? [ specialized-def ] when
|
|
||||||
build-tree optimize-tree nodes>quot . ;
|
M: method-spec optimized. first2 method optimized. ;
|
||||||
|
|
||||||
|
M: word optimized. specialized-def optimized. ;
|
||||||
|
|
||||||
|
M: callable optimized. build-tree optimize-tree nodes>quot . ;
|
||||||
|
|
||||||
SYMBOL: words-called
|
SYMBOL: words-called
|
||||||
SYMBOL: generics-called
|
SYMBOL: generics-called
|
||||||
|
|
Loading…
Reference in New Issue