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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10460002: Move CreateArray and CreateClosure to new location template. (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 8103)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -46,8 +46,12 @@
intptr_t CreateClosureComp::InputCount() const {
+ intptr_t input_count = 0;
// Optional type arguments.
- return (type_arguments() == NULL) ? 0 : 1;
+ if (type_arguments() != NULL) input_count++;
+ // Optional receiver.
+ if (function().IsImplicitInstanceClosureFunction()) input_count++;
+ return input_count;
}

Powered by Google App Engine
This is Rietveld 408576698