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

Unified Diff: runtime/vm/compiler.cc

Issue 905363002: Add --print-flow-graph-filter to allow filtering debugging output. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 687f5669f6619ff263ddc26fcc67456cd4675162..8191288014bd26b3213e01d18e85de717568d5d4 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -427,8 +427,9 @@ static bool CompileParsedFunctionHelper(CompilationPipeline* pipeline,
}
const bool print_flow_graph =
- FLAG_print_flow_graph ||
- (optimized && FLAG_print_flow_graph_optimized);
+ (FLAG_print_flow_graph ||
+ (optimized && FLAG_print_flow_graph_optimized)) &&
+ FlowGraphPrinter::ShouldPrint(function);
if (print_flow_graph) {
if (osr_id == Isolate::kNoDeoptId) {
@@ -999,9 +1000,11 @@ static RawError* CompileFunctionHelper(CompilationPipeline* pipeline,
isolate->debugger()->NotifyCompilation(function);
- if (FLAG_disassemble) {
+ if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) {
DisassembleCode(function, optimized);
- } else if (FLAG_disassemble_optimized && optimized) {
+ } else if (FLAG_disassemble_optimized &&
+ optimized &&
+ FlowGraphPrinter::ShouldPrint(function)) {
// TODO(fschneider): Print unoptimized code along with the optimized code.
OS::Print("*** BEGIN CODE\n");
DisassembleCode(function, true);
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698