WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F32SubOpcode opcode, WasmNodeArg arg) { var right = arg.Pop(); var left = arg.Pop(); arg.Push(new F32SubNode(left, right)); return(null); }
public WasmOpcodeExecutor Visit(F32SubOpcode opcode, WasmFunctionState state) { var right = state.PopF32(); var left = state.PopF32(); state.PushF32(left - right); return(this); }