Handbook
Glossary
memory-transparent-insn? ( object -- ? )
Vocabulary
compiler
.
cfg
.
memory-optimization
.
private
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
memory-transparent-insn
class.
Definition
USING:
classes.tuple.private
compiler.cfg.instructions
kernel
math.private
slots.private
;
IN:
compiler.cfg.memory-optimization.private
:
memory-transparent-insn?
( object -- ? )
dup
dup
tuple?
[
layout-of
dup
dup
1
slot
13
fixnum>=
[
13
slot
dup
\
##slot-imm
eq?
[
drop
t
]
[
dup
\
##slot
eq?
[
drop
t
]
[
dup
\
##phi
eq?
[
drop
t
]
[
dup
\
##peek
eq?
~quotation~ ~curried~
if
]
if
]
if
]
if
]
[
drop
f
]
if
[
drop
t
]
[
dup
dup
1
slot
11
fixnum>=
[
11
slot
\
##replace
eq?
]
[
drop
f
]
if
[
drop
t
]
[
dup
1
slot
9
fixnum>=
[
9
slot
dup
\
##branch
eq?
[
drop
t
]
[
\
##inc
eq?
]
if
]
[
drop
f
]
if
]
if
]
if
]
[
drop
f
]
if
[
drop
t
]
[
conditional-branch-insn?
]
if
;