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

Unified Diff: runtime/vm/flow_graph_inliner.h

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 | « runtime/vm/flow_graph.cc ('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_inliner.h
diff --git a/runtime/vm/flow_graph_inliner.h b/runtime/vm/flow_graph_inliner.h
index 6f92aa819943d3fbc47b1f6ec160853687bf2c5a..3f642bf7882211e67150217bbb2202a44529b6a8 100644
--- a/runtime/vm/flow_graph_inliner.h
+++ b/runtime/vm/flow_graph_inliner.h
@@ -17,9 +17,7 @@ class Function;
class FlowGraphInliner : ValueObject {
public:
FlowGraphInliner(FlowGraph* flow_graph,
- GrowableArray<const Function*>* inline_id_to_function)
- : flow_graph_(flow_graph), inline_id_to_function_(inline_id_to_function) {
- }
+ GrowableArray<const Function*>* inline_id_to_function);
// The flow graph is destructively updated upon inlining.
void Inline();
@@ -28,16 +26,19 @@ class FlowGraphInliner : ValueObject {
static void CollectGraphInfo(FlowGraph* flow_graph, bool force = false);
static void SetInliningId(const FlowGraph& flow_graph, intptr_t inlining_id);
- static bool AlwaysInline(const Function& function);
+ bool AlwaysInline(const Function& function);
FlowGraph* flow_graph() const { return flow_graph_; }
intptr_t NextInlineId(const Function& function);
+ bool trace_inlining() const { return trace_inlining_; }
+
private:
friend class CallSiteInliner;
FlowGraph* flow_graph_;
GrowableArray<const Function*>* inline_id_to_function_;
+ const bool trace_inlining_;
DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner);
};
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698