Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(935)

Unified Diff: src/hydrogen.cc

Issue 12613004: To fully support hydrogen code stubs which accept a variable number of arguments, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698