call-effect-ic ( quot effect inline-cache -- ) (original) (raw)
call-effect-ic ( quot effect inline-cache -- )
Vocabulary
compiler.tree.propagation.call-effect
Inputs
quot | a quotation |
---|---|
effect | an effect |
inline-cache | an inline-cache |
Outputs
None
Word description
Checks if there is a hit in the call effect inline cache and if so calls the quotation using call-effect-unsafe. If there isn't a hit, the quotation is called in a slow way and the cache is updated.
Definition
USING: combinators.private kernel ;
IN: compiler.tree.propagation.call-effect
: call-effect-ic ( quot effect inline-cache -- )
3dup nip inline-cache-hit?
[ drop call-effect-unsafe ] [ call-effect-fast ] if ; inline