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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 11360116: Pass closure object as first implicit argument to closure functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 14605)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -621,8 +621,8 @@
TRACE_INLINING(OS::Print(" Bailout: non-closure operator\n"));
continue;
}
- GrowableArray<Value*> arguments(call->ArgumentCount() - 1);
- for (int i = 1; i < call->ArgumentCount(); ++i) {
+ GrowableArray<Value*> arguments(call->ArgumentCount());
+ for (int i = 0; i < call->ArgumentCount(); ++i) {
arguments.Add(call->ArgumentAt(i)->value());
}
TryInlining(closure->function(),

Powered by Google App Engine
This is Rietveld 408576698