| 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/scheduler.h" | 5 #include "src/compiler/scheduler.h" |
| 6 | 6 |
| 7 #include <iomanip> | 7 #include <iomanip> |
| 8 | 8 |
| 9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
| 10 #include "src/bit-vector.h" | 10 #include "src/bit-vector.h" |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 case IrOpcode::kEnd: | 306 case IrOpcode::kEnd: |
| 307 FixNode(schedule_->end(), node); | 307 FixNode(schedule_->end(), node); |
| 308 break; | 308 break; |
| 309 case IrOpcode::kStart: | 309 case IrOpcode::kStart: |
| 310 FixNode(schedule_->start(), node); | 310 FixNode(schedule_->start(), node); |
| 311 break; | 311 break; |
| 312 case IrOpcode::kLoop: | 312 case IrOpcode::kLoop: |
| 313 case IrOpcode::kMerge: | 313 case IrOpcode::kMerge: |
| 314 BuildBlockForNode(node); | 314 BuildBlockForNode(node); |
| 315 break; | 315 break; |
| 316 case IrOpcode::kTerminate: { |
| 317 // Put Terminate in the loop to which it refers. |
| 318 Node* loop = NodeProperties::GetControlInput(node); |
| 319 BasicBlock* block = BuildBlockForNode(loop); |
| 320 FixNode(block, node); |
| 321 break; |
| 322 } |
| 316 case IrOpcode::kBranch: | 323 case IrOpcode::kBranch: |
| 317 case IrOpcode::kSwitch: | 324 case IrOpcode::kSwitch: |
| 318 BuildBlocksForSuccessors(node); | 325 BuildBlocksForSuccessors(node); |
| 319 break; | 326 break; |
| 320 case IrOpcode::kCall: | 327 case IrOpcode::kCall: |
| 321 if (NodeProperties::IsExceptionalCall(node)) { | 328 if (NodeProperties::IsExceptionalCall(node)) { |
| 322 BuildBlocksForSuccessors(node); | 329 BuildBlocksForSuccessors(node); |
| 323 } | 330 } |
| 324 break; | 331 break; |
| 325 default: | 332 default: |
| (...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 for (Node* const node : *nodes) { | 1702 for (Node* const node : *nodes) { |
| 1696 schedule_->SetBlockForNode(to, node); | 1703 schedule_->SetBlockForNode(to, node); |
| 1697 scheduled_nodes_[to->id().ToSize()].push_back(node); | 1704 scheduled_nodes_[to->id().ToSize()].push_back(node); |
| 1698 } | 1705 } |
| 1699 nodes->clear(); | 1706 nodes->clear(); |
| 1700 } | 1707 } |
| 1701 | 1708 |
| 1702 } // namespace compiler | 1709 } // namespace compiler |
| 1703 } // namespace internal | 1710 } // namespace internal |
| 1704 } // namespace v8 | 1711 } // namespace v8 |
| OLD | NEW |