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

            state.PushSI32(left >> right);
            return(this);
        }
예제 #2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32ShrSOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

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