Handbook
Glossary
tagged>rep ( dst src rep -- )
Vocabulary
compiler
.
cfg
.
representations
.
conversion
Inputs
dst
vreg
src
vreg
rep
a
representation
Outputs
None
Word description
Emits an instruction to the current
make
sequence for converting a tagged value of the givern representation to an untagged one.
Definition
IN:
compiler.cfg.representations.conversion
GENERIC:
tagged>rep
( dst src rep -- )
Methods
USING:
compiler.cfg.instructions
compiler.cfg.representations.conversion
compiler.constants
cpu.architecture
kernel
;
M:
double-rep
tagged>rep
drop
float-offset
double-rep
f
##load-memory-imm,
;
USING:
compiler.cfg.instructions
compiler.cfg.registers
compiler.cfg.representations.conversion
cpu.architecture
;
M::
float-rep
tagged>rep
( dst src rep -- )
double-rep
next-vreg-rep
:>
temp temp src
double-rep
tagged>rep
dst temp
##double>single-float,
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.conversion
cpu.architecture
kernel
layouts
namespaces
;
M:
int-rep
tagged>rep
drop
tag-bits
get
##sar-imm,
;
USING:
compiler.cfg.instructions
compiler.cfg.registers
compiler.cfg.representations.conversion
cpu.architecture
;
M::
scalar-rep
tagged>rep
( dst src rep -- )
tagged-rep
next-vreg-rep
:>
temp temp src
int-rep
tagged>rep
dst temp rep
##integer>scalar,
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.conversion
compiler.constants
cpu.architecture
kernel
;
M:
vector-rep
tagged>rep
[
byte-array-offset
]
dip
f
##load-memory-imm,
;