Handbook
Glossary
write-insn? ( object -- ? )
Vocabulary
compiler
.
cfg
.
instructions
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
write-insn
class.
Definition
USING:
classes.tuple.private
kernel
math.private
slots.private
;
IN:
compiler.cfg.instructions
:
write-insn?
( object -- ? )
dup
tuple?
[
layout-of
dup
1
slot
11
fixnum>=
[
11
slot
dup
\
##set-vm-field
eq?
[
drop
t
]
[
dup
\
##set-slot-imm
eq?
[
drop
t
]
[
\
##set-slot
eq?
]
if
]
if
]
[
drop
f
]
if
]
[
drop
f
]
if
;