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

Unified Diff: src/ast.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
« no previous file with comments | « src/ast.h ('k') | src/base/logging.h » ('j') | src/checks.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 7369e75ea1558c7d5b5d2a692b97d2f263ecd5c7..595c1efd8b7066eed244a60a68440f8ac5c48df2 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -152,13 +152,13 @@ StrictMode FunctionLiteral::strict_mode() const {
bool FunctionLiteral::uses_super_property() const {
- DCHECK_NOT_NULL(scope());
+ DCHECK(scope());
return scope()->uses_super_property() || scope()->inner_uses_super_property();
}
bool FunctionLiteral::uses_super_constructor_call() const {
- DCHECK_NOT_NULL(scope());
+ DCHECK(scope());
return scope()->uses_super_constructor_call() ||
scope()->inner_uses_super_constructor_call();
}
« no previous file with comments | « src/ast.h ('k') | src/base/logging.h » ('j') | src/checks.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698