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

Unified Diff: third_party/WebKit/Source/platform/heap/PersistentNode.h

Issue 2530493002: WebKit: make #if DCHECK_IS_ON consistent in third_party/WebKit/Source/platform/ (Closed)
Patch Set: Created 4 years, 1 month 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/PersistentNode.h
diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h
index ae2f68370704f448034d21e66c4c25474a897f5b..b13c76fa877e83111bbed542cb90984140fda83b 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
@@ -130,7 +130,9 @@ class PLATFORM_EXPORT PersistentRegion final {
}
void freePersistentNode(PersistentNode* persistentNode) {
- ASSERT(m_persistentCount > 0);
+#if DCHECK_IS_ON()
+ DCHECK_GT(m_persistentCount, 0);
Alexander Alekseev 2016/11/23 07:53:07 This variable exists only if DCHECK_IS_ON() evalua
+#endif
persistentNode->setFreeListNext(m_freeListHead);
m_freeListHead = persistentNode;
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698