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

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

Issue 650633003: Generate fake basic block for Terminate node. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 <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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698