Handbook
Glossary
literal-insn? ( object -- ? )
Vocabulary
compiler
.
cfg
.
value-numbering
.
rewrite
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
literal-insn
class.
Definition
USING:
classes.tuple.private
compiler.cfg.instructions
kernel
math.private
slots.private
;
IN:
compiler.cfg.value-numbering.rewrite
:
literal-insn?
( object -- ? )
dup
tuple?
[
layout-of
dup
1
slot
15
fixnum>=
[
15
slot
dup
\
##load-reference
eq?
[
drop
t
]
[
\
##load-integer
eq?
]
if
]
[
drop
f
]
if
]
[
drop
f
]
if
;