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