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

Unified Diff: runtime/vm/object.h

Issue 51123003: VM: Fix checked mode crash (issue 13831). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 29679)
+++ runtime/vm/object.h (working copy)
@@ -1589,6 +1589,7 @@
case RawFunction::kClosureFunction:
case RawFunction::kConstructor:
case RawFunction::kImplicitStaticFinalGetter:
+ case RawFunction::kStaticInitializer:
return false;
default:
UNREACHABLE();
@@ -1606,6 +1607,7 @@
case RawFunction::kImplicitGetter:
case RawFunction::kImplicitSetter:
case RawFunction::kImplicitStaticFinalGetter:
+ case RawFunction::kStaticInitializer:
return true;
case RawFunction::kClosureFunction:
case RawFunction::kConstructor:
@@ -1809,6 +1811,11 @@
return kind() == RawFunction::kImplicitSetter;
}
+ // Returns true if this function represents an static initializer function.
+ bool IsStaticInitializerFunction() const {
+ return kind() == RawFunction::kStaticInitializer;
+ }
+
// Returns true if this function represents a (possibly implicit) closure
// function.
bool IsClosureFunction() const {
@@ -1867,6 +1874,13 @@
const Function& parent,
intptr_t token_pos);
+ // Creates a new static initializer function which is invoked in the implicit
+ // static getter function.
+ static RawFunction* NewStaticInitializer(const String& field_name,
+ const AbstractType& result_type,
+ const Class& cls,
+ intptr_t token_pos);
+
// Allocate new function object, clone values from this function. The
// owner of the clone is new_owner.
RawFunction* Clone(const Class& new_owner) const;

Powered by Google App Engine
This is Rietveld 408576698