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

Unified Diff: runtime/vm/flow_graph_inliner.h

Issue 2994283002: [VM-Compiler] Don't inline if we don't have inlining budget enough to fully inline.
Patch Set: Created 3 years, 4 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_inliner.h
diff --git a/runtime/vm/flow_graph_inliner.h b/runtime/vm/flow_graph_inliner.h
index 52be4aba9bbeeb278b444b6b6af848eebcb0b66c..f0d8cd9c9c4651fbe48f1032a99a0e6d021c70e9 100644
--- a/runtime/vm/flow_graph_inliner.h
+++ b/runtime/vm/flow_graph_inliner.h
@@ -32,8 +32,9 @@ class FlowGraphInliner : ValueObject {
GrowableArray<intptr_t>* inlining_black_list,
Precompiler* precompiler);
- // The flow graph is destructively updated upon inlining.
- void Inline();
+ // The flow graph is destructively updated upon inlining. Returns the max
+ // depth that we inlined.
+ int Inline();
// Compute graph info if it was not already computed or if 'force' is true.
static void CollectGraphInfo(FlowGraph* flow_graph, bool force = false);

Powered by Google App Engine
This is Rietveld 408576698