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

            arg.Push(new I64EqzNode(expr));
            return(null);
        }
コード例 #2
0
        public WasmOpcodeExecutor Visit(I64EqzOpcode opcode, WasmFunctionState state)
        {
            var value = state.PopUI64();

            state.PushBool(value == 0);
            return(this);
        }