Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index c2f3951494e647936183cdb1d25659c8d5ee187f..752d2c5d36e4f6043477ef154583c92769287d74 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3842,7 +3842,8 @@ bool HOptimizedGraphBuilder::BuildGraph() { |
if (current_block() != NULL) { |
HReturn* instr = new(zone()) HReturn(graph()->GetConstantUndefined(), |
- context); |
+ context, |
+ info()->num_parameters()); |
danno
2013/03/07 15:11:14
Create a HConstant with this value
mvstanton
2013/03/07 16:48:49
Done.
|
current_block()->FinishExit(instr); |
set_current_block(NULL); |
} |
@@ -4728,7 +4729,8 @@ void HOptimizedGraphBuilder::VisitReturnStatement(ReturnStatement* stmt) { |
HValue* result = environment()->Pop(); |
current_block()->FinishExit(new(zone()) HReturn( |
result, |
- environment()->LookupContext())); |
+ environment()->LookupContext(), |
+ info()->num_parameters())); |
danno
2013/03/07 15:11:14
Create a HConstant with this value
mvstanton
2013/03/07 16:48:49
Done.
|
} else if (state->inlining_kind() == CONSTRUCT_CALL_RETURN) { |
// Return from an inlined construct call. In a test context the return value |
// will always evaluate to true, in a value context the return value needs |