OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_LOOP_ANALYSIS_H_ | 5 #ifndef V8_COMPILER_LOOP_ANALYSIS_H_ |
6 #define V8_COMPILER_LOOP_ANALYSIS_H_ | 6 #define V8_COMPILER_LOOP_ANALYSIS_H_ |
7 | 7 |
8 #include "src/base/iterator.h" | 8 #include "src/base/iterator.h" |
9 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
10 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
11 #include "src/zone-containers.h" | 11 #include "src/zone/zone-containers.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 // TODO(titzer): don't assume entry edges have a particular index. | 17 // TODO(titzer): don't assume entry edges have a particular index. |
18 static const int kAssumedLoopEntryIndex = 0; // assume loops are entered here. | 18 static const int kAssumedLoopEntryIndex = 0; // assume loops are entered here. |
19 | 19 |
20 class LoopFinderImpl; | 20 class LoopFinderImpl; |
21 | 21 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // Build a loop tree for the entire graph. | 158 // Build a loop tree for the entire graph. |
159 static LoopTree* BuildLoopTree(Graph* graph, Zone* temp_zone); | 159 static LoopTree* BuildLoopTree(Graph* graph, Zone* temp_zone); |
160 }; | 160 }; |
161 | 161 |
162 | 162 |
163 } // namespace compiler | 163 } // namespace compiler |
164 } // namespace internal | 164 } // namespace internal |
165 } // namespace v8 | 165 } // namespace v8 |
166 | 166 |
167 #endif // V8_COMPILER_LOOP_ANALYSIS_H_ | 167 #endif // V8_COMPILER_LOOP_ANALYSIS_H_ |
OLD | NEW |