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

Unified Diff: runtime/vm/compiler.cc

Issue 10800080: Add higher-level accesses to Environment. Print flow graph after register allocation. Most interest… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 9819)
+++ runtime/vm/compiler.cc (working copy)
@@ -34,6 +34,7 @@
"How many times we allow deoptimization before we disallow"
" certain optimizations");
DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from ssa compiler.");
+DECLARE_FLAG(bool, print_flow_graph);
DECLARE_FLAG(bool, use_ssa);
@@ -172,6 +173,11 @@
FlowGraphAllocator allocator(block_order, &graph_builder);
allocator.AllocateRegisters();
}
+ if (FLAG_print_flow_graph) {
+ OS::Print("After Optimizations:\n");
+ FlowGraphPrinter printer(Function::Handle(), block_order);
+ printer.PrintBlocks();
+ }
}
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698