Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 5ffe74a3423dcc24867af05d7284175edb5f4d10..5e4b23efd2be169ccf4f8af65ff70885f65c8a29 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1005,9 +1005,13 @@ LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
} |
-LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
- LOperand* argument = Use(instr->argument()); |
- return new(zone()) LPushArgument(argument); |
+LInstruction* LChunkBuilder::DoPushArguments(HPushArguments* instr) { |
+ int argc = instr->OperandCount(); |
+ for (int i = 0; i < argc; ++i) { |
+ LOperand* argument = Use(instr->argument(i)); |
+ AddInstruction(new(zone()) LPushArgument(argument), instr); |
+ } |
+ return NULL; |
} |