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 <deque> | 5 #include <deque> |
6 #include <queue> | 6 #include <queue> |
7 | 7 |
8 #include "src/compiler/scheduler.h" | 8 #include "src/compiler/scheduler.h" |
9 | 9 |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 control_.push_back(node); | 232 control_.push_back(node); |
233 data->is_connected_control_ = true; | 233 data->is_connected_control_ = true; |
234 } | 234 } |
235 } | 235 } |
236 | 236 |
237 | 237 |
238 void BuildBlocks(Node* node) { | 238 void BuildBlocks(Node* node) { |
239 switch (node->opcode()) { | 239 switch (node->opcode()) { |
240 case IrOpcode::kLoop: | 240 case IrOpcode::kLoop: |
241 case IrOpcode::kMerge: | 241 case IrOpcode::kMerge: |
| 242 case IrOpcode::kTerminate: |
242 BuildBlockForNode(node); | 243 BuildBlockForNode(node); |
243 break; | 244 break; |
244 case IrOpcode::kBranch: | 245 case IrOpcode::kBranch: |
245 BuildBlocksForSuccessors(node, IrOpcode::kIfTrue, IrOpcode::kIfFalse); | 246 BuildBlocksForSuccessors(node, IrOpcode::kIfTrue, IrOpcode::kIfFalse); |
246 break; | 247 break; |
247 default: | 248 default: |
248 break; | 249 break; |
249 } | 250 } |
250 } | 251 } |
251 | 252 |
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 start->ReplaceInput(NodeProperties::FirstControlIndex(start), block_start); | 1278 start->ReplaceInput(NodeProperties::FirstControlIndex(start), block_start); |
1278 | 1279 |
1279 Trace(" Connecting floating control start %d:%s to %d:%s\n", start->id(), | 1280 Trace(" Connecting floating control start %d:%s to %d:%s\n", start->id(), |
1280 start->op()->mnemonic(), block_start->id(), | 1281 start->op()->mnemonic(), block_start->id(), |
1281 block_start->op()->mnemonic()); | 1282 block_start->op()->mnemonic()); |
1282 } | 1283 } |
1283 | 1284 |
1284 } // namespace compiler | 1285 } // namespace compiler |
1285 } // namespace internal | 1286 } // namespace internal |
1286 } // namespace v8 | 1287 } // namespace v8 |
OLD | NEW |