Enum witnext2::abi::WitxInstruction [−][src]
pub enum WitxInstruction<'a> {
AddrOf,
I32FromPointer,
I32FromConstPointer,
PointerFromI32 {
ty: &'a Type,
},
ConstPointerFromI32 {
ty: &'a Type,
},
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 native wasm i32
to a language-specific pointer.
Fields of PointerFromI32
ty: &'a Type
Converts a native wasm i32
to a language-specific pointer.
Fields of ConstPointerFromI32
ty: &'a Type
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?