diff options
Diffstat (limited to 'deps/v8/src/compiler/node.h')
-rw-r--r-- | deps/v8/src/compiler/node.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/deps/v8/src/compiler/node.h b/deps/v8/src/compiler/node.h index fc5a17c19d..01dca47cbe 100644 --- a/deps/v8/src/compiler/node.h +++ b/deps/v8/src/compiler/node.h @@ -429,8 +429,7 @@ class Node::InputEdges::iterator final { typedef Edge& reference; iterator() : use_(nullptr), input_ptr_(nullptr) {} - iterator(const iterator& other) - : use_(other.use_), input_ptr_(other.input_ptr_) {} + iterator(const iterator& other) = default; Edge operator*() const { return Edge(use_, input_ptr_); } bool operator==(const iterator& other) const { @@ -488,7 +487,7 @@ class Node::Inputs::const_iterator final { typedef const value_type* pointer; typedef value_type& reference; - const_iterator(const const_iterator& other) : input_ptr_(other.input_ptr_) {} + const_iterator(const const_iterator& other) = default; Node* operator*() const { return *input_ptr_; } bool operator==(const const_iterator& other) const { @@ -536,8 +535,7 @@ Node* Node::Inputs::operator[](int index) const { return input_root_[index]; } // A forward iterator to visit the uses edges of a node. class Node::UseEdges::iterator final { public: - iterator(const iterator& other) - : current_(other.current_), next_(other.next_) {} + iterator(const iterator& other) = default; Edge operator*() const { return Edge(current_, current_->input_ptr()); } bool operator==(const iterator& other) const { @@ -584,15 +582,6 @@ class Node::Uses::const_iterator final { typedef Node** pointer; typedef Node*& reference; - const_iterator(const const_iterator& other) - : current_(other.current_) -#ifdef DEBUG - , - next_(other.next_) -#endif - { - } - Node* operator*() const { return current_->from(); } bool operator==(const const_iterator& other) const { return other.current_ == current_; |