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

Unified Diff: src/parser.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
« src/jsregexp.cc ('K') | « src/parser.h ('k') | src/perf-jit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 93af5028b8c250f18a939025ccc1225026bbe128..33c7c42ec11b6c7327202eeee94cd0740b32fe73 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -3931,7 +3931,7 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name,
if (has_seen_constructor && constructor == NULL) {
constructor = GetPropertyValue(property)->AsFunctionLiteral();
- DCHECK_NOT_NULL(constructor);
+ DCHECK(constructor);
} else {
properties->Add(property, zone());
}
@@ -3954,8 +3954,8 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name,
block_scope = block_scope->FinalizeBlockScope();
if (name != NULL) {
- DCHECK_NOT_NULL(proxy);
- DCHECK_NOT_NULL(block_scope);
+ DCHECK(proxy);
+ DCHECK(block_scope);
proxy->var()->set_initializer_position(end_pos);
}
« src/jsregexp.cc ('K') | « src/parser.h ('k') | src/perf-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698