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

Unified Diff: src/compiler/node.h

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow dchecks. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/node.h
diff --git a/src/compiler/node.h b/src/compiler/node.h
index 57a0ebb72e247e23a4c41b9375b3aff53b8eb7c1..a9edab8b6bb7f2713445069f88f54c17c5fc575b 100644
--- a/src/compiler/node.h
+++ b/src/compiler/node.h
@@ -282,7 +282,7 @@ class Edge FINAL {
friend class Node::UseEdges::iterator;
friend class Node::InputEdges::iterator;
- explicit Edge(Node::Input* input) : input_(input) { DCHECK_NOT_NULL(input); }
+ explicit Edge(Node::Input* input) : input_(input) { DCHECK(input); }
Node::Input* input_;
};
@@ -401,7 +401,7 @@ class Node::UseEdges::iterator FINAL {
}
bool operator!=(const iterator& other) const { return !(*this == other); }
iterator& operator++() {
- DCHECK_NOT_NULL(current_);
+ DCHECK(current_);
current_ = next_;
next_ = current_ ? current_->next : nullptr;
return *this;
@@ -451,7 +451,7 @@ class Node::Uses::const_iterator FINAL {
return other.current_ != current_;
}
const_iterator& operator++() {
- DCHECK_NOT_NULL(current_);
+ DCHECK(current_);
current_ = current_->next;
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698