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

Unified Diff: runtime/vm/ast.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
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 348)
+++ runtime/vm/ast.h (working copy)
@@ -366,6 +366,8 @@
ClosureNode(intptr_t token_index, const Function& function, LocalScope* scope)
: AstNode(token_index), function_(function), scope_(scope) {
ASSERT(function.IsZoneHandle());
+ ASSERT(function.IsClosureFunction());
+ ASSERT(!function.IsImplicitClosureFunction());
ASSERT(scope_ != NULL);
}
@@ -389,6 +391,8 @@
StaticImplicitClosureNode(intptr_t token_index, const Function& function)
: AstNode(token_index), function_(function) {
ASSERT(function.IsZoneHandle());
+ ASSERT(function.IsImplicitClosureFunction());
+ ASSERT(function.is_static());
}
const Function& function() const { return function_; }
@@ -411,6 +415,8 @@
AstNode* receiver)
: AstNode(token_index), function_(function), receiver_(receiver) {
ASSERT(function.IsZoneHandle());
+ ASSERT(function.IsImplicitClosureFunction());
+ ASSERT(!function.is_static());
}
const Function& function() const { return function_; }
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698