Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 69b1c970c6a8759fa79dc2be821ad74a39afbf6a..69a0e7f5fd0650cc6f7bb6d50c470f04372f3dcf 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1954,7 +1954,9 @@ LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
LOperand* context = info()->IsStub() |
? UseFixed(instr->context(), esi) |
: NULL; |
- return new(zone()) LReturn(UseFixed(instr->value(), eax), context); |
+ LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
+ return new(zone()) LReturn(UseFixed(instr->value(), eax), context, |
+ parameter_count); |
} |