コード例 #1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I64GtsOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new I64GtsNode(left, right));
            return(null);
        }
コード例 #2
0
        public WasmOpcodeExecutor Visit(I64GtsOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopSI64();
            var left  = state.PopSI64();

            state.PushBool(left > right);
            return(this);
        }