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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 1289643005: Rename accessors of class Field to make it more apparent as to what is being accessed - static fiel… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-code-review Created 5 years, 4 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/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 8214f6950606214653259bbf168e7cb89375d6cc..b2e384ecd03b60d83fc64e87af0084e8887f26fb 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -3803,10 +3803,11 @@ void EffectGraphVisitor::VisitStoreInstanceFieldNode(
void EffectGraphVisitor::VisitLoadStaticFieldNode(LoadStaticFieldNode* node) {
if (node->field().is_const()) {
- ASSERT(node->field().value() != Object::sentinel().raw());
- ASSERT(node->field().value() != Object::transition_sentinel().raw());
- Definition* result =
- new(Z) ConstantInstr(Instance::ZoneHandle(Z, node->field().value()));
+ ASSERT(node->field().StaticFieldValue() != Object::sentinel().raw());
+ ASSERT(node->field().StaticFieldValue() !=
hausner 2015/09/01 16:02:02 field().StaticFieldValue() seems a bit redundant,
siva 2015/09/03 23:32:09 I have renamed this to StaticValue as suggested by
+ Object::transition_sentinel().raw());
+ Definition* result = new(Z) ConstantInstr(
+ Instance::ZoneHandle(Z, node->field().StaticFieldValue()));
return ReturnDefinition(result);
}
Value* field_value = Bind(new(Z) ConstantInstr(node->field()));
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698