Skip to main content

emit_box

Function emit_box 

Source
pub fn emit_box(
    emitter: &mut FunctionEmitter<'_>,
    ctx: &CodegenCtx<'_>,
    ty: &Type,
) -> Result<(), CompilerFailure>
Expand description

Emit Wasm instructions that wrap the value currently on top of the stack (of language type ty) into a (ref $Object).