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

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: Created 7 years, 5 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_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index e7f063cfa9955cb1c0a5ebbef2c55ef0752a47cb..544ee9d2ca122d66b675b87d8dc04ffaf3de0fda 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),

Powered by Google App Engine
This is Rietveld 408576698