public WasmOpcodeExecutor Visit(I32ShlOpcode opcode, WasmFunctionState state) { var right = state.PopSI32(); var left = state.PopSI32(); state.PushSI32(left << right); return(this); }
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); }
WasmMSILResult IWasmOpcodeVisitor <WasmMSILArg, WasmMSILResult> .Visit(I32ShlOpcode opcode, WasmMSILArg arg) { arg.IL.Emit(OpCodes.Shl); return(null); }