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

Side by Side Diff: runtime/vm/flow_graph_inliner.h

Issue 211873003: Incremental tuning/cleanup of inlining: --print-inline-tree changed to --print-inlining-tree. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_FLOW_GRAPH_INLINER_H_ 5 #ifndef VM_FLOW_GRAPH_INLINER_H_
6 #define VM_FLOW_GRAPH_INLINER_H_ 6 #define VM_FLOW_GRAPH_INLINER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
11 11
12 class Field; 12 class Field;
13 class FlowGraph; 13 class FlowGraph;
14 class Function; 14 class Function;
15 template <typename T> class GrowableArray; 15 template <typename T> class GrowableArray;
16 16
17 class FlowGraphInliner : ValueObject { 17 class FlowGraphInliner : ValueObject {
18 public: 18 public:
19 explicit FlowGraphInliner(FlowGraph* flow_graph) : flow_graph_(flow_graph) { } 19 explicit FlowGraphInliner(FlowGraph* flow_graph) : flow_graph_(flow_graph) { }
20 20
21 // The flow graph is destructively updated upon inlining. 21 // The flow graph is destructively updated upon inlining.
22 void Inline(); 22 void Inline();
23 23
24 static void CollectGraphInfo(FlowGraph* flow_graph); 24 // Compute graph info if it was not already computed or if 'force' is true.
25 static void CollectGraphInfo(FlowGraph* flow_graph, bool force = false);
25 26
26 static bool AlwaysInline(const Function& function); 27 static bool AlwaysInline(const Function& function);
27 28
28 private: 29 private:
29 FlowGraph* flow_graph_; 30 FlowGraph* flow_graph_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); 32 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner);
32 }; 33 };
33 34
34 } // namespace dart 35 } // namespace dart
35 36
36 #endif // VM_FLOW_GRAPH_INLINER_H_ 37 #endif // VM_FLOW_GRAPH_INLINER_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698