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

Unified Diff: runtime/vm/flow_graph_optimizer.h

Issue 1149713002: With --noopt run unoptimized code through optimizer, more optimizations can be done later. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 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
Index: runtime/vm/flow_graph_optimizer.h
diff --git a/runtime/vm/flow_graph_optimizer.h b/runtime/vm/flow_graph_optimizer.h
index ba3c4d8e2bd6cee8e54f0be2ca663cf86b3155b4..333b26842b3631ad5c868e639d4141111f485a69 100644
--- a/runtime/vm/flow_graph_optimizer.h
+++ b/runtime/vm/flow_graph_optimizer.h
@@ -23,6 +23,10 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
FlowGraph* flow_graph() const { return flow_graph_; }
+ // Add ICData to InstanceCalls, so that optimizations can be run on them.
+ // TODO(srdjan): StaticCals as well?
+ void PopulateWithICData();
+
// Use ICData to optimize, replace or eliminate instructions.
void ApplyICData();
@@ -257,6 +261,8 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
Isolate* isolate() const { return flow_graph_->isolate(); }
Zone* zone() const { return flow_graph_->zone(); }
+ const Function& function() const { return flow_graph_->function(); }
+
FlowGraph* flow_graph_;
DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer);

Powered by Google App Engine
This is Rietveld 408576698