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

Unified Diff: src/compiler/value-numbering-reducer.cc

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/value-numbering-reducer.cc
diff --git a/src/compiler/value-numbering-reducer.cc b/src/compiler/value-numbering-reducer.cc
index 734b3e8e8ee870f04b500e2f784849d95dd77505..d03aa82492b8817d10ba3bc1b54091937f292020 100644
--- a/src/compiler/value-numbering-reducer.cc
+++ b/src/compiler/value-numbering-reducer.cc
@@ -25,15 +25,15 @@ size_t HashCode(Node* node) {
bool Equals(Node* a, Node* b) {
- DCHECK_NOT_NULL(a);
- DCHECK_NOT_NULL(b);
- DCHECK_NOT_NULL(a->op());
- DCHECK_NOT_NULL(b->op());
+ DCHECK(a);
+ DCHECK(b);
+ DCHECK(a->op());
+ DCHECK(b->op());
if (!a->op()->Equals(b->op())) return false;
if (a->InputCount() != b->InputCount()) return false;
for (int j = 0; j < a->InputCount(); ++j) {
- DCHECK_NOT_NULL(a->InputAt(j));
- DCHECK_NOT_NULL(b->InputAt(j));
+ DCHECK(a->InputAt(j));
+ DCHECK(b->InputAt(j));
if (a->InputAt(j)->id() != b->InputAt(j)->id()) return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698