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

Unified Diff: runtime/vm/flow_graph_optimizer.h

Issue 11187046: Apply optimization after class-id propagation: instance calls without ICData are optimized by using… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/compiler.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.h
===================================================================
--- runtime/vm/flow_graph_optimizer.h (revision 13794)
+++ runtime/vm/flow_graph_optimizer.h (working copy)
@@ -20,8 +20,12 @@
flow_graph_(flow_graph) { }
virtual ~FlowGraphOptimizer() {}
+ // Use ICData to optimize, replace or eliminate instructions.
void ApplyICData();
+ // Use propagated class ids to optimize, replace or eliminate instructions.
+ void ApplyClassIds();
+
void OptimizeComputations();
void EliminateDeadPhis();
@@ -44,6 +48,9 @@
Definition::UseKind use_kind);
private:
+ // Attempt to build ICData for call using propagated class-ids.
+ bool TryCreateICData(InstanceCallInstr* call);
+
intptr_t PrepareIndexedOp(InstanceCallInstr* call,
intptr_t class_id,
Value** array,
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698