| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 Successors successors_; | 176 Successors successors_; |
| 177 Predecessors predecessors_; | 177 Predecessors predecessors_; |
| 178 Id id_; | 178 Id id_; |
| 179 | 179 |
| 180 DISALLOW_COPY_AND_ASSIGN(BasicBlock); | 180 DISALLOW_COPY_AND_ASSIGN(BasicBlock); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 std::ostream& operator<<(std::ostream& os, const BasicBlock::Control& c); | 183 std::ostream& operator<<(std::ostream& os, const BasicBlock::Control& c); |
| 184 std::ostream& operator<<(std::ostream& os, const BasicBlock::Id& id); | 184 std::ostream& operator<<(std::ostream& os, const BasicBlock::Id& id); |
| 185 std::ostream& operator<<(std::ostream& os, const BasicBlock::RpoNumber& rpo); |
| 185 | 186 |
| 186 typedef ZoneVector<BasicBlock*> BasicBlockVector; | 187 typedef ZoneVector<BasicBlock*> BasicBlockVector; |
| 187 typedef BasicBlockVector::iterator BasicBlockVectorIter; | 188 typedef BasicBlockVector::iterator BasicBlockVectorIter; |
| 188 typedef BasicBlockVector::reverse_iterator BasicBlockVectorRIter; | 189 typedef BasicBlockVector::reverse_iterator BasicBlockVectorRIter; |
| 189 | 190 |
| 190 // A schedule represents the result of assigning nodes to basic blocks | 191 // A schedule represents the result of assigning nodes to basic blocks |
| 191 // and ordering them within basic blocks. Prior to computing a schedule, | 192 // and ordering them within basic blocks. Prior to computing a schedule, |
| 192 // a graph has no notion of control flow ordering other than that induced | 193 // a graph has no notion of control flow ordering other than that induced |
| 193 // by the graph's dependencies. A schedule is required to generate code. | 194 // by the graph's dependencies. A schedule is required to generate code. |
| 194 class Schedule FINAL : public ZoneObject { | 195 class Schedule FINAL : public ZoneObject { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 BasicBlock* end_; | 258 BasicBlock* end_; |
| 258 }; | 259 }; |
| 259 | 260 |
| 260 std::ostream& operator<<(std::ostream& os, const Schedule& s); | 261 std::ostream& operator<<(std::ostream& os, const Schedule& s); |
| 261 | 262 |
| 262 } // namespace compiler | 263 } // namespace compiler |
| 263 } // namespace internal | 264 } // namespace internal |
| 264 } // namespace v8 | 265 } // namespace v8 |
| 265 | 266 |
| 266 #endif // V8_COMPILER_SCHEDULE_H_ | 267 #endif // V8_COMPILER_SCHEDULE_H_ |
| OLD | NEW |