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

Unified Diff: runtime/vm/object.h

Issue 8234016: Inline allocation of implicit closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 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/object.h
===================================================================
--- runtime/vm/object.h (revision 348)
+++ runtime/vm/object.h (working copy)
@@ -1139,11 +1139,15 @@
return TestType(kIsAssignableTo, dst);
}
- // Returns true if this function represents a closure function.
+ // Returns true if this function represents a (possibly implicit) closure
+ // function.
bool IsClosureFunction() const {
return kind() == RawFunction::kClosureFunction;
}
+ // Returns true if this function represents an implicit closure function.
+ bool IsImplicitClosureFunction() const;
siva 2011/10/11 21:00:46 I am wondering if it would be more readable if we
regis 2011/10/11 23:40:19 I'd like to keep IsClosureFunction() to return tru
+
// Returns true if this function represents a local function.
bool IsLocalFunction() const {
return parent_function() != Function::null();
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698