Handbook
Glossary
scalar-compare-insn? ( object -- ? )
Vocabulary
compiler
.
cfg
.
gvn
.
comparisons
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
scalar-compare-insn
class.
Definition
USING:
classes.tuple.private
compiler.cfg.instructions
kernel
math.private
slots.private
;
IN:
compiler.cfg.gvn.comparisons
:
scalar-compare-insn?
( object -- ? )
dup
tuple?
[
layout-of
dup
1
slot
15
fixnum>=
[
15
slot
dup
\
##compare-float-ordered
eq?
[
drop
t
]
[
dup
\
##compare-float-unordered
eq?
[
drop
t
]
[
dup
\
##test-imm
eq?
[
drop
t
]
[
dup
\
##test
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
[
drop
f
]
if
]
[
drop
f
]
if
;