pub enum WasmInstr {
Show 39 variants
LocalGet(String),
LocalSet(String),
I32Const(i32),
I64Const(i64),
F64Const(f64),
Call(String),
CallIndirect,
Return,
BrIf(u32),
Block,
Loop,
End,
Drop,
Select,
Nop,
Unreachable,
I32Add,
I32Sub,
I32Mul,
I32DivS,
I64Add,
I64Mul,
F64Add,
F64Mul,
F64Div,
F64Sqrt,
MemLoad(u32),
MemStore(u32),
I32Eqz,
I32Eq,
I32Ne,
I32LtS,
I32GtS,
I32LeS,
I32GeS,
RefNull,
RefIsNull,
TableGet(u32),
TableSet(u32),
}Expand description
WebAssembly instructions for the WAT text format.
Variants§
LocalGet(String)
Get local variable: local.get $name
LocalSet(String)
Set local variable: local.set $name
I32Const(i32)
32-bit integer constant: i32.const N
I64Const(i64)
64-bit integer constant: i64.const N
F64Const(f64)
64-bit float constant: f64.const N
Call(String)
Direct function call: call $name
CallIndirect
Indirect function call via table: call_indirect
Return
Return from function: return
BrIf(u32)
Branch if condition is true: br_if N
Block
Begin a block: block
Loop
Begin a loop: loop
End
End a block/loop/function: end
Drop
Drop top of stack: drop
Select
Select one of two values based on condition: select
Nop
No-op: nop
Unreachable
Trap unconditionally: unreachable
I32Add
i32.add
I32Sub
i32.sub
I32Mul
i32.mul
I32DivS
i32.div_s
I64Add
i64.add
I64Mul
i64.mul
F64Add
f64.add
F64Mul
f64.mul
F64Div
f64.div
F64Sqrt
f64.sqrt
MemLoad(u32)
Load from linear memory with alignment: i32.load align=N
MemStore(u32)
Store to linear memory with alignment: i32.store align=N
I32Eqz
i32.eqz
I32Eq
i32.eq
I32Ne
i32.ne
I32LtS
i32.lt_s
I32GtS
i32.gt_s
I32LeS
i32.le_s
I32GeS
i32.ge_s
RefNull
Null reference: ref.null funcref
RefIsNull
Test if reference is null: ref.is_null
TableGet(u32)
Get element from table: table.get N
TableSet(u32)
Set element in table: table.set N