Handbook
Glossary
emit-set-slot ( block #call -- block' )
Generating instructions for slot access
Next:
emit-slot ( block node -- block' )
Vocabulary
compiler
.
cfg
.
intrinsics
.
slots
Inputs
block
a
basic-block
#call
a
#call
Outputs
block'
a
basic-block
Word description
Emits intrinsic code for a
set-slot
call.
Definition
USING:
compiler.cfg.builder.blocks
kernel
;
IN:
compiler.cfg.intrinsics.slots
:
emit-set-slot
( block #call -- block' )
dup
node>set-slot-data
over
[
emit-intrinsic-set-slot
drop
]
[
3drop
emit-primitive
]
if
;