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

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

Issue 10996057: Instruction size and growth threshold for inlining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « no previous file | runtime/vm/flow_graph.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_H_ 5 #ifndef VM_FLOW_GRAPH_H_
6 #define VM_FLOW_GRAPH_H_ 6 #define VM_FLOW_GRAPH_H_
7 7
8 #include "vm/growable_array.h" 8 #include "vm/growable_array.h"
9 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 GraphEntryInstr* graph_entry() const { 96 GraphEntryInstr* graph_entry() const {
97 return graph_entry_; 97 return graph_entry_;
98 } 98 }
99 99
100 ZoneGrowableArray<ReturnInstr*>* exits() const { return exits_; } 100 ZoneGrowableArray<ReturnInstr*>* exits() const { return exits_; }
101 void set_exits(ZoneGrowableArray<ReturnInstr*>* exits) { exits_ = exits; } 101 void set_exits(ZoneGrowableArray<ReturnInstr*>* exits) { exits_ = exits; }
102 102
103 intptr_t alloc_ssa_temp_index() { return current_ssa_temp_index_++; } 103 intptr_t alloc_ssa_temp_index() { return current_ssa_temp_index_++; }
104 104
105 intptr_t InstructionCount() const;
106
105 // Operations on the flow graph. 107 // Operations on the flow graph.
106 void ComputeSSA(intptr_t next_virtual_register_number); 108 void ComputeSSA(intptr_t next_virtual_register_number);
107 void ComputeUseLists(); 109 void ComputeUseLists();
108 110
109 // Finds natural loops in the flow graph and attaches a list of loop 111 // Finds natural loops in the flow graph and attaches a list of loop
110 // body blocks for each loop header. 112 // body blocks for each loop header.
111 void ComputeLoops(GrowableArray<BlockEntryInstr*>* loop_headers); 113 void ComputeLoops(GrowableArray<BlockEntryInstr*>* loop_headers);
112 114
113 void InlineCall(Definition* call, FlowGraph* callee_graph); 115 void InlineCall(Definition* call, FlowGraph* callee_graph);
114 116
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 GraphEntryInstr* graph_entry_; 166 GraphEntryInstr* graph_entry_;
165 GrowableArray<BlockEntryInstr*> preorder_; 167 GrowableArray<BlockEntryInstr*> preorder_;
166 GrowableArray<BlockEntryInstr*> postorder_; 168 GrowableArray<BlockEntryInstr*> postorder_;
167 GrowableArray<BlockEntryInstr*> reverse_postorder_; 169 GrowableArray<BlockEntryInstr*> reverse_postorder_;
168 ZoneGrowableArray<ReturnInstr*>* exits_; 170 ZoneGrowableArray<ReturnInstr*>* exits_;
169 }; 171 };
170 172
171 } // namespace dart 173 } // namespace dart
172 174
173 #endif // VM_FLOW_GRAPH_H_ 175 #endif // VM_FLOW_GRAPH_H_
OLDNEW
« 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