WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32StoreOpcode opcode, WasmNodeArg arg) { var value = arg.Pop(); var address = arg.Pop(); arg.Push(new I32StoreNode(opcode.Immediate, address, value)); return(null); }
public WasmOpcodeExecutor Visit(I32StoreOpcode opcode, WasmFunctionState state) { var val = state.PopUI32(); var adr = state.PopUI32(); state.Memory.WriteUInt32(adr, opcode.Immediate, val); return(this); }
WasmMSILResult IWasmOpcodeVisitor <WasmMSILArg, WasmMSILResult> .Visit(I32StoreOpcode opcode, WasmMSILArg arg) { return(null); }