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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10448079: Address review comments in commited cl (issue 10460002). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 8115)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -46,12 +46,8 @@
intptr_t CreateClosureComp::InputCount() const {
- intptr_t input_count = 0;
- // Optional type arguments.
- if (type_arguments() != NULL) input_count++;
- // Optional receiver.
- if (function().IsImplicitInstanceClosureFunction()) input_count++;
- return input_count;
+ // Type arguments (or null object) and receiver of implicit instance closure.
+ return function().IsImplicitInstanceClosureFunction() ? 2 : 1;
}

Powered by Google App Engine
This is Rietveld 408576698