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

Unified Diff: vm/flow_graph_builder.cc

Issue 10407031: Add IR printing into a supplied buffer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_builder.cc
===================================================================
--- vm/flow_graph_builder.cc (revision 7724)
+++ vm/flow_graph_builder.cc (working copy)
@@ -2165,6 +2165,11 @@
&parent,
&assigned_vars,
variable_count);
+ // Number blocks in reverse postorder.
+ intptr_t block_count = postorder_block_entries_.length();
+ for (intptr_t i = 0; i < block_count; ++i) {
+ postorder_block_entries_[i]->set_block_id(block_count - i - 1);
+ }
if (for_optimized) {
GrowableArray<BitVector*> dominance_frontier;
ComputeDominators(&preorder_block_entries_, &parent, &dominance_frontier);
@@ -2177,7 +2182,7 @@
reverse_postorder.Add(postorder_block_entries_[i]);
}
FlowGraphPrinter printer(function, reverse_postorder);
- printer.VisitBlocks();
+ printer.PrintBlocks();
}
}
« no previous file with comments | « no previous file | vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698