WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32NeOpcode opcode, WasmNodeArg arg) { var right = arg.Pop(); var left = arg.Pop(); arg.Push(new I32NeNode(left, right)); return(null); }
public WasmOpcodeExecutor Visit(I32NeOpcode opcode, WasmFunctionState state) { var right = state.PopUI32(); var left = state.PopUI32(); state.PushBool(left != right); return(this); }
WasmMSILResult IWasmOpcodeVisitor <WasmMSILArg, WasmMSILResult> .Visit(I32NeOpcode opcode, WasmMSILArg arg) => throw new NotImplementedException();