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