box-return ( vregs reps c-type -- dst )


Vocabulary
compiler.cfg.builder.alien.boxing

Inputs
vregsvregs that contains the return value of the alien call
repsrepresentations of the vregs
c-typean abstract-c-type


Outputs
dstvreg in which the boxed value, or a reference to it, will be placed


Word description
Emits instructions for boxing the return value from an alien function call.

Examples
USING: compiler.cfg.builder.alien.boxing kernel make prettyprint ; [ { 10 } { tagged-rep } int base-type box-return drop ] { } make .
{ T{ ##convert-integer { dst 118 } { src 10 } { c-type int } } }


See also
##box-alien

Definition


Methods