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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 18111006: Collect edge count profiling data and reorder basic blocks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated review comments. Created 7 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
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 354cb63e84e0e11d5c1bf6e3887bbdf5ef1abb30..f8b752aa5ca49f78b8c1eaac1e4ee0c481279254 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -64,12 +64,12 @@ void CompilerDeoptInfo::EmitMaterializations(Environment* env,
FlowGraphCompiler::FlowGraphCompiler(Assembler* assembler,
- const FlowGraph& flow_graph,
+ FlowGraph* flow_graph,
bool is_optimizing)
: assembler_(assembler),
- parsed_function_(flow_graph.parsed_function()),
- flow_graph_(flow_graph),
- block_order_(flow_graph.reverse_postorder()),
+ parsed_function_(flow_graph->parsed_function()),
+ flow_graph_(*flow_graph),
+ block_order_(*flow_graph->codegen_block_order(is_optimizing)),
current_block_(NULL),
exception_handlers_list_(NULL),
pc_descriptors_list_(NULL),
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698