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

Unified Diff: src/api.cc

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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 | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index cc0f70bf318c5f57fca3e49c5d5c9d7daaf9a3ff..3ed2f0709226f5a985dfedebd80576abc9d97622 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -7567,7 +7567,7 @@ char* HandleScopeImplementer::RestoreThread(char* storage) {
void HandleScopeImplementer::IterateThis(ObjectVisitor* v) {
-#ifdef DEBUG
+#if DCHECK_IS_ON
bool found_block_before_deferred = false;
#endif
// Iterate over all handles in the blocks except for the last.
@@ -7578,7 +7578,7 @@ void HandleScopeImplementer::IterateThis(ObjectVisitor* v) {
(last_handle_before_deferred_block_ >= block)) {
v->VisitPointers(block, last_handle_before_deferred_block_);
DCHECK(!found_block_before_deferred);
-#ifdef DEBUG
+#if DCHECK_IS_ON
found_block_before_deferred = true;
#endif
} else {
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698