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

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

Issue 641553003: Remove testing artifacts from Schedule::AddFoo. (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 "src/compiler/node.h" 5 #include "src/compiler/node.h"
6 #include "src/compiler/node-properties.h" 6 #include "src/compiler/node-properties.h"
7 #include "src/compiler/node-properties-inl.h" 7 #include "src/compiler/node-properties-inl.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 #include "src/ostreams.h" 9 #include "src/ostreams.h"
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 188
189 void Schedule::AddBranch(BasicBlock* block, Node* branch, BasicBlock* tblock, 189 void Schedule::AddBranch(BasicBlock* block, Node* branch, BasicBlock* tblock,
190 BasicBlock* fblock) { 190 BasicBlock* fblock) {
191 DCHECK(block->control() == BasicBlock::kNone); 191 DCHECK(block->control() == BasicBlock::kNone);
192 DCHECK(branch->opcode() == IrOpcode::kBranch); 192 DCHECK(branch->opcode() == IrOpcode::kBranch);
193 block->set_control(BasicBlock::kBranch); 193 block->set_control(BasicBlock::kBranch);
194 AddSuccessor(block, tblock); 194 AddSuccessor(block, tblock);
195 AddSuccessor(block, fblock); 195 AddSuccessor(block, fblock);
196 SetControlInput(block, branch); 196 SetControlInput(block, branch);
197 if (branch->opcode() == IrOpcode::kBranch) {
198 // TODO(titzer): require a Branch node here. (sloppy tests).
199 SetBlockForNode(block, branch);
200 }
201 } 197 }
202 198
203 199
204 void Schedule::AddReturn(BasicBlock* block, Node* input) { 200 void Schedule::AddReturn(BasicBlock* block, Node* input) {
205 DCHECK(block->control() == BasicBlock::kNone); 201 DCHECK(block->control() == BasicBlock::kNone);
206 block->set_control(BasicBlock::kReturn); 202 block->set_control(BasicBlock::kReturn);
207 SetControlInput(block, input); 203 SetControlInput(block, input);
208 if (block != end()) { 204 if (block != end()) AddSuccessor(block, end());
209 AddSuccessor(block, end());
210 }
211 if (input->opcode() == IrOpcode::kReturn) {
212 // TODO(titzer): require a Return node here. (sloppy tests).
213 SetBlockForNode(block, input);
214 }
215 } 205 }
216 206
217 207
218 void Schedule::AddThrow(BasicBlock* block, Node* input) { 208 void Schedule::AddThrow(BasicBlock* block, Node* input) {
219 DCHECK(block->control() == BasicBlock::kNone); 209 DCHECK(block->control() == BasicBlock::kNone);
220 block->set_control(BasicBlock::kThrow); 210 block->set_control(BasicBlock::kThrow);
221 SetControlInput(block, input); 211 SetControlInput(block, input);
222 if (block != end()) AddSuccessor(block, end()); 212 if (block != end()) AddSuccessor(block, end());
223 } 213 }
224 214
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 282 }
293 os << "\n"; 283 os << "\n";
294 } 284 }
295 } 285 }
296 return os; 286 return os;
297 } 287 }
298 288
299 } // namespace compiler 289 } // namespace compiler
300 } // namespace internal 290 } // namespace internal
301 } // namespace v8 291 } // 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