Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index e78dde13977d0ab5df91207e957f8b4dffa3e5e3..562c88d34d23b6c12840494c159461319a2e0949 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1008,9 +1008,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; |
} |