コード例 #1
0
        public WasmOpcodeExecutor Visit(I32ShlOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopSI32();
            var left  = state.PopSI32();

            state.PushSI32(left << right);
            return(this);
        }
コード例 #2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32ShlOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new I32ShlNode(left, right));
            return(null);
        }
コード例 #3
0
 WasmMSILResult IWasmOpcodeVisitor <WasmMSILArg, WasmMSILResult> .Visit(I32ShlOpcode opcode, WasmMSILArg arg)
 {
     arg.IL.Emit(OpCodes.Shl);
     return(null);
 }