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

Unified Diff: runtime/vm/object.h

Issue 10050022: Fix lazy initialization of static fields (issue 2472). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « runtime/vm/ast.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 6437)
+++ runtime/vm/object.h (working copy)
@@ -1528,6 +1528,9 @@
RawString* name() const { return raw_ptr()->name_; }
bool is_static() const { return raw_ptr()->is_static_; }
bool is_final() const { return raw_ptr()->is_final_; }
+ // TODO(regis): Implement support for const fields. Until then, current final
+ // fields are considered const.
+ bool is_const() const { return raw_ptr()->is_final_; }
inline intptr_t Offset() const;
inline void SetOffset(intptr_t value) const;
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698