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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 1712563006: Cleanup access to guarded_fields (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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_inliner.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index 70621d3197e91adade5aa9302a608c83e3a7f4c8..1ad25c8fdb3cb9a10db529c8bb9fdc8d1ff87633 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -1417,7 +1417,7 @@ bool FlowGraphOptimizer::InlineImplicitInstanceGetter(InstanceCallInstr* call,
if (!field.is_nullable() || (field.guarded_cid() == kNullCid)) {
load->set_result_cid(field.guarded_cid());
}
- FlowGraph::AddToGuardedFields(flow_graph_->guarded_fields(), &field);
+ flow_graph()->parsed_function().AddToGuardedFields(&field);
}
// Discard the environment from the original instruction because the load
@@ -3277,7 +3277,7 @@ void FlowGraphOptimizer::VisitStoreInstanceField(
field.set_is_unboxing_candidate(false);
field.DeoptimizeDependentCode();
} else {
- FlowGraph::AddToGuardedFields(flow_graph_->guarded_fields(), &field);
+ flow_graph()->parsed_function().AddToGuardedFields(&field);
}
}
}
@@ -3403,7 +3403,7 @@ bool FlowGraphOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
instr->token_pos());
if (store->IsUnboxedStore()) {
- FlowGraph::AddToGuardedFields(flow_graph_->guarded_fields(), &field);
+ flow_graph()->parsed_function().AddToGuardedFields(&field);
}
// Discard the environment from the original instruction because the store
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698