Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 4e3f561777a095ec7bf027b08b52ff52bdd126f4..6c13443b4e2375da6b4e52c658a112d4d9213850 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1060,9 +1060,13 @@ LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
} |
-LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
- LOperand* argument = UseAny(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 = UseAny(instr->argument(i)); |
+ AddInstruction(new(zone()) LPushArgument(argument), instr); |
+ } |
+ return NULL; |
} |