Handbook
Glossary
specialized-def ( word -- quot )
Factor handbook
»
The implementation
»
Optimizing compiler
»
Compiler specialization hints
Prev:
HINTS:
Vocabulary
hints
Inputs
word
a
word
Outputs
quot
a
quotation
Word description
Outputs the definition of a word after it has been split into specialized branches. This is the definition which will actually be compiled by the compiler.
Definition
USING:
accessors
generic
kernel
;
IN:
hints
:
specialized-def
( word -- quot )
[
def>>
]
keep
dup
generic?
[
drop
]
[
[
dup
standard-method?
[
specialize-method
]
[
drop
]
if
]
[
specializer
[
specialize-quot
]
when*
]
bi
]
if
;