public WasmOpcodeExecutor Visit(I32RemSOpcode opcode, WasmFunctionState state) { var right = state.PopSI32(); var left = state.PopSI32(); state.PushSI32(left % right); return(this); }
WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32RemSOpcode opcode, WasmNodeArg arg) { var right = arg.Pop(); var left = arg.Pop(); arg.Push(new I32RemSNode(left, right)); return(null); }