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

Unified Diff: src/heap/spaces.h

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 | « src/heap/mark-compact.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.h
diff --git a/src/heap/spaces.h b/src/heap/spaces.h
index dcd336437e9cdc161ff5b157a3f1de512a4e051e..e44c4a42fc0c266eea08aed61b387e2df212243b 100644
--- a/src/heap/spaces.h
+++ b/src/heap/spaces.h
@@ -108,7 +108,7 @@ class MarkBit {
inline CellType* cell() { return cell_; }
inline CellType mask() { return mask_; }
-#ifdef DEBUG
+#if DCHECK_IS_ON
bool operator==(const MarkBit& other) {
return cell_ == other.cell_ && mask_ == other.mask_;
}
@@ -1491,7 +1491,7 @@ class FreeListCategory {
bool IsEmpty() { return top() == 0; }
-#ifdef DEBUG
+#if DCHECK_IS_ON
intptr_t SumFreeList();
int FreeListLength();
#endif
@@ -1579,7 +1579,7 @@ class FreeList {
large_list_.IsEmpty() && huge_list_.IsEmpty();
}
-#ifdef DEBUG
+#if DCHECK_IS_ON
void Zap();
intptr_t SumFreeLists();
bool IsVeryLong();
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698