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

Unified Diff: third_party/WebKit/Source/wtf/allocator/Partitions.h

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 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
Index: third_party/WebKit/Source/wtf/allocator/Partitions.h
diff --git a/third_party/WebKit/Source/wtf/allocator/Partitions.h b/third_party/WebKit/Source/wtf/allocator/Partitions.h
index 3e4ea2259c74acd65bf10218e1bb920b82acd133..6bb530d754bf7b7874c0f7d0aa17446fb07fdd34 100644
--- a/third_party/WebKit/Source/wtf/allocator/Partitions.h
+++ b/third_party/WebKit/Source/wtf/allocator/Partitions.h
@@ -51,27 +51,26 @@ class WTF_EXPORT Partitions {
static void initialize(ReportPartitionAllocSizeFunction);
static void shutdown();
ALWAYS_INLINE static base::PartitionRootGeneric* bufferPartition() {
- ASSERT(s_initialized);
+ DCHECK(s_initialized);
return m_bufferAllocator.root();
}
ALWAYS_INLINE static base::PartitionRootGeneric* fastMallocPartition() {
- ASSERT(s_initialized);
+ DCHECK(s_initialized);
return m_fastMallocAllocator.root();
}
ALWAYS_INLINE static base::PartitionRoot* nodePartition() {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return nullptr;
}
ALWAYS_INLINE static base::PartitionRoot* layoutPartition() {
- ASSERT(s_initialized);
+ DCHECK(s_initialized);
return m_layoutAllocator.root();
}
static size_t currentDOMMemoryUsage() {
- ASSERT(s_initialized);
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0;
}
« no previous file with comments | « third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h ('k') | third_party/WebKit/Source/wtf/allocator/Partitions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698