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

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

Issue 2617123002: [turbofan] Allow indexed access to node inputs/input_edges (Closed)
Patch Set: Revert AST graph builder change Created 3 years, 11 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/node.h ('k') | 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 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 397 }
398 398
399 399
400 Node::InputEdges::iterator Node::InputEdges::iterator::operator++(int n) { 400 Node::InputEdges::iterator Node::InputEdges::iterator::operator++(int n) {
401 iterator result(*this); 401 iterator result(*this);
402 ++(*this); 402 ++(*this);
403 return result; 403 return result;
404 } 404 }
405 405
406 406
407 bool Node::InputEdges::empty() const { return begin() == end(); }
408
409
410 Node::Inputs::const_iterator Node::Inputs::const_iterator::operator++(int n) { 407 Node::Inputs::const_iterator Node::Inputs::const_iterator::operator++(int n) {
411 const_iterator result(*this); 408 const_iterator result(*this);
412 ++(*this); 409 ++(*this);
413 return result; 410 return result;
414 } 411 }
415 412
416 413
417 bool Node::Inputs::empty() const { return begin() == end(); }
418
419
420 Node::UseEdges::iterator Node::UseEdges::iterator::operator++(int n) { 414 Node::UseEdges::iterator Node::UseEdges::iterator::operator++(int n) {
421 iterator result(*this); 415 iterator result(*this);
422 ++(*this); 416 ++(*this);
423 return result; 417 return result;
424 } 418 }
425 419
426 420
427 bool Node::UseEdges::empty() const { return begin() == end(); } 421 bool Node::UseEdges::empty() const { return begin() == end(); }
428 422
429 423
430 Node::Uses::const_iterator Node::Uses::const_iterator::operator++(int n) { 424 Node::Uses::const_iterator Node::Uses::const_iterator::operator++(int n) {
431 const_iterator result(*this); 425 const_iterator result(*this);
432 ++(*this); 426 ++(*this);
433 return result; 427 return result;
434 } 428 }
435 429
436 430
437 bool Node::Uses::empty() const { return begin() == end(); } 431 bool Node::Uses::empty() const { return begin() == end(); }
438 432
439 } // namespace compiler 433 } // namespace compiler
440 } // namespace internal 434 } // namespace internal
441 } // namespace v8 435 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698