| 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 #include "src/compiler/instruction.h" | 5 #include "src/compiler/instruction.h" |
| 6 | 6 |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/generic-node-inl.h" | 8 #include "src/compiler/generic-node-inl.h" |
| 9 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
| 10 | 10 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 UNREACHABLE(); | 315 UNREACHABLE(); |
| 316 return os; | 316 return os; |
| 317 } | 317 } |
| 318 | 318 |
| 319 | 319 |
| 320 InstructionSequence::InstructionSequence(Linkage* linkage, Graph* graph, | 320 InstructionSequence::InstructionSequence(Linkage* linkage, Graph* graph, |
| 321 Schedule* schedule) | 321 Schedule* schedule) |
| 322 : zone_(schedule->zone()), | 322 : zone_(schedule->zone()), |
| 323 node_count_(graph->NodeCount()), | 323 node_count_(graph->NodeCount()), |
| 324 node_map_(zone()->NewArray<int>(node_count_)), | 324 node_map_(zone()->NewArray<int>(node_count_)), |
| 325 block_data_(schedule->BasicBlockCount(), zone()), | 325 block_data_(static_cast<int>(schedule->BasicBlockCount()), zone()), |
| 326 linkage_(linkage), | 326 linkage_(linkage), |
| 327 schedule_(schedule), | 327 schedule_(schedule), |
| 328 constants_(ConstantMap::key_compare(), | 328 constants_(ConstantMap::key_compare(), |
| 329 ConstantMap::allocator_type(zone())), | 329 ConstantMap::allocator_type(zone())), |
| 330 immediates_(zone()), | 330 immediates_(zone()), |
| 331 instructions_(zone()), | 331 instructions_(zone()), |
| 332 next_virtual_register_(0), | 332 next_virtual_register_(0), |
| 333 pointer_maps_(zone()), | 333 pointer_maps_(zone()), |
| 334 doubles_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())), | 334 doubles_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())), |
| 335 references_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())), | 335 references_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())), |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 os << " B" << (*iter)->id(); | 585 os << " B" << (*iter)->id(); |
| 586 } | 586 } |
| 587 os << "\n"; | 587 os << "\n"; |
| 588 } | 588 } |
| 589 return os; | 589 return os; |
| 590 } | 590 } |
| 591 | 591 |
| 592 } // namespace compiler | 592 } // namespace compiler |
| 593 } // namespace internal | 593 } // namespace internal |
| 594 } // namespace v8 | 594 } // namespace v8 |
| OLD | NEW |