public WasmOpcodeExecutor Visit(I64SubOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopUI64();
            var left  = state.PopUI64();

            state.PushUI64(left - right);
            return(this);
        }
Example #2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I64SubOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new I64SubNode(left, right));
            return(null);
        }