Enum witnext::WitxInstruction [−][src]
pub enum WitxInstruction<'a> { AddrOf, I32FromPointer, I32FromConstPointer, PointerFromI32 { ty: &'a TypeRef, }, ConstPointerFromI32 { ty: &'a TypeRef, }, ReuseReturn, }
Variants
Takes the value off the top of the stack and writes it into linear
memory. Pushes the address in linear memory as an i32
.
Converts a language-specific pointer value to a wasm i32
.
Converts a language-specific pointer value to a wasm i32
.
Converts a core wasm i32
to a language-specific pointer.
Show fields
Fields of PointerFromI32
ty: &'a TypeRef
Converts a core wasm i32
to a language-specific pointer.
Show fields
Fields of ConstPointerFromI32
ty: &'a TypeRef
This is a special instruction specifically for the original ABI of
WASI. The raw return i32
of a function is re-pushed onto the
stack for reuse.
Implementations
How many operands does this instruction pop from the stack?
How many results does this instruction push onto the stack?
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for WitxInstruction<'a>
impl<'a> !Send for WitxInstruction<'a>
impl<'a> !Sync for WitxInstruction<'a>
impl<'a> Unpin for WitxInstruction<'a>
impl<'a> !UnwindSafe for WitxInstruction<'a>