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

Unified Diff: runtime/vm/object.h

Issue 14969019: A load static of an initialized static final field can be converted to its value, as long as it is … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.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 22579)
+++ runtime/vm/object.h (working copy)
@@ -334,6 +334,16 @@
return *snapshot_writer_error_;
}
+ // Compiler's constant propagation constants.
+ static const Instance& unknown_constant() {
+ ASSERT(unknown_constant_ != NULL);
+ return *unknown_constant_;
+ }
+ static const Instance& non_constant() {
+ ASSERT(non_constant_ != NULL);
+ return *non_constant_;
+ }
siva 2013/05/10 20:13:35 Can you move this new block to just below transiti
srdjan 2013/05/10 21:03:04 Done.
+
static RawClass* class_class() { return class_class_; }
static RawClass* null_class() { return null_class_; }
static RawClass* dynamic_class() { return dynamic_class_; }
@@ -523,6 +533,8 @@
static Array* empty_array_;
static Instance* sentinel_;
static Instance* transition_sentinel_;
+ static Instance* unknown_constant_;
+ static Instance* non_constant_;
static Bool* bool_true_;
static Bool* bool_false_;
static LanguageError* snapshot_writer_error_;
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698