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

            state.PushUI32(left ^ right);
            return(this);
        }
Exemplo n.º 2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32XorOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new I32XorNode(left, right));
            return(null);
        }
 WasmMSILResult IWasmOpcodeVisitor <WasmMSILArg, WasmMSILResult> .Visit(I32XorOpcode opcode, WasmMSILArg arg)
 {
     arg.IL.Emit(OpCodes.Xor);
     return(null);
 }