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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapCompact.cpp

Issue 2619493003: Replace ASSERTs in platform/heap/ with DCHECKs
Patch Set: temp Created 3 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: third_party/WebKit/Source/platform/heap/HeapCompact.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapCompact.cpp b/third_party/WebKit/Source/platform/heap/HeapCompact.cpp
index 4a0498193d22c150ed984022a16afd347a35f568..37925fc5dfd21df5177b2fc7245101dbe1265a15 100644
--- a/third_party/WebKit/Source/platform/heap/HeapCompact.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapCompact.cpp
@@ -86,7 +86,7 @@ class HeapCompact::MovableObjectFixups final {
blinkPageAddress(slotAddress) + blinkGuardPageSize);
if (LIKELY(!m_relocatablePages.contains(slotPage)))
return;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
DCHECK(slotPage->contains(slotAddress));
#endif
// Unlikely case, the slot resides on a compacting arena's page.

Powered by Google App Engine
This is Rietveld 408576698