OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_SCHEDULE_H_ | 5 #ifndef V8_COMPILER_SCHEDULE_H_ |
6 #define V8_COMPILER_SCHEDULE_H_ | 6 #define V8_COMPILER_SCHEDULE_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 namespace compiler { | 14 namespace compiler { |
15 | 15 |
16 // Forward declarations. | 16 // Forward declarations. |
17 class BasicBlock; | 17 class BasicBlock; |
18 class BasicBlockInstrumentor; | 18 class BasicBlockInstrumentor; |
19 class CodeGenerator; // Because of a namespace bug in clang. | |
20 class ConstructScheduleData; | |
21 class Node; | 19 class Node; |
22 | 20 |
23 | 21 |
24 typedef ZoneVector<BasicBlock*> BasicBlockVector; | 22 typedef ZoneVector<BasicBlock*> BasicBlockVector; |
25 typedef ZoneVector<Node*> NodeVector; | 23 typedef ZoneVector<Node*> NodeVector; |
26 | 24 |
27 | 25 |
28 // A basic block contains an ordered list of nodes and ends with a control | 26 // A basic block contains an ordered list of nodes and ends with a control |
29 // node. Note that if a basic block has phis, then all phis must appear as the | 27 // node. Note that if a basic block has phis, then all phis must appear as the |
30 // first nodes in the block. | 28 // first nodes in the block. |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 DISALLOW_COPY_AND_ASSIGN(Schedule); | 272 DISALLOW_COPY_AND_ASSIGN(Schedule); |
275 }; | 273 }; |
276 | 274 |
277 std::ostream& operator<<(std::ostream&, const Schedule&); | 275 std::ostream& operator<<(std::ostream&, const Schedule&); |
278 | 276 |
279 } // namespace compiler | 277 } // namespace compiler |
280 } // namespace internal | 278 } // namespace internal |
281 } // namespace v8 | 279 } // namespace v8 |
282 | 280 |
283 #endif // V8_COMPILER_SCHEDULE_H_ | 281 #endif // V8_COMPILER_SCHEDULE_H_ |
OLD | NEW |