Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/compiler/scheduler.cc

Issue 1123213002: [turbofan] Connect non-terminating loops via Terminate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698