Handbook
Glossary
load-return ( c-type -- triples )
Vocabulary
compiler
.
cfg
.
builder
.
alien
.
boxing
Inputs
c-type
an
object
Outputs
triples
an
object
Definition
IN:
compiler.cfg.builder.alien.boxing
GENERIC:
load-return
( c-type -- triples )
Methods
USING:
alien.c-types
arrays
assocs
compiler.cfg.builder.alien.boxing
compiler.cfg.builder.alien.params
compiler.cfg.registers
kernel
sequences
;
M:
abstract-c-type
load-return
[
flatten-c-type
keys
[
[
next-vreg
]
dip
dup
next-return-reg
3array
]
map
]
with-return-regs
;
USING:
classes.struct
compiler.cfg.builder.alien.boxing
cpu.architecture
generic
kernel
;
M:
struct-c-type
load-return
dup
return-struct-in-registers?
[
M\
struct-c-type
load-return
(call-next-method)
]
[
drop
{
}
]
if
;