| 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 #include "src/compiler/node.h" | 5 #include "src/compiler/node.h" |
| 6 #include "src/compiler/node-properties.h" | 6 #include "src/compiler/node-properties.h" |
| 7 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties-inl.h" |
| 8 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
| 9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 UNREACHABLE(); | 98 UNREACHABLE(); |
| 99 return os; | 99 return os; |
| 100 } | 100 } |
| 101 | 101 |
| 102 | 102 |
| 103 std::ostream& operator<<(std::ostream& os, const BasicBlock::Id& id) { | 103 std::ostream& operator<<(std::ostream& os, const BasicBlock::Id& id) { |
| 104 return os << id.ToSize(); | 104 return os << id.ToSize(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 | 107 |
| 108 std::ostream& operator<<(std::ostream& os, const BasicBlock::RpoNumber& rpo) { |
| 109 return os << rpo.ToSize(); |
| 110 } |
| 111 |
| 112 |
| 108 Schedule::Schedule(Zone* zone, size_t node_count_hint) | 113 Schedule::Schedule(Zone* zone, size_t node_count_hint) |
| 109 : zone_(zone), | 114 : zone_(zone), |
| 110 all_blocks_(zone), | 115 all_blocks_(zone), |
| 111 nodeid_to_block_(zone), | 116 nodeid_to_block_(zone), |
| 112 rpo_order_(zone), | 117 rpo_order_(zone), |
| 113 start_(NewBasicBlock()), | 118 start_(NewBasicBlock()), |
| 114 end_(NewBasicBlock()) { | 119 end_(NewBasicBlock()) { |
| 115 nodeid_to_block_.reserve(node_count_hint); | 120 nodeid_to_block_.reserve(node_count_hint); |
| 116 } | 121 } |
| 117 | 122 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 } | 292 } |
| 288 os << "\n"; | 293 os << "\n"; |
| 289 } | 294 } |
| 290 } | 295 } |
| 291 return os; | 296 return os; |
| 292 } | 297 } |
| 293 | 298 |
| 294 } // namespace compiler | 299 } // namespace compiler |
| 295 } // namespace internal | 300 } // namespace internal |
| 296 } // namespace v8 | 301 } // namespace v8 |
| OLD | NEW |