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

Unified Diff: third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h

Issue 1992873004: Replace all occurrences of RELEASE_ASSERT in wtf with CHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Specialized dchecks in utils.h. Created 4 years, 7 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/wtf/TerminatedArrayBuilder.h
diff --git a/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h b/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
index a7ec3305a77d0bdde0389d648d49bc8bdc4077a3..d5c3dc69d8c67869a1c911a6878c500c3507bea8 100644
--- a/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
+++ b/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
@@ -43,7 +43,7 @@ public:
void append(const T& item)
{
- RELEASE_ASSERT(m_count < m_capacity);
+ CHECK_LT(m_count, m_capacity);
ASSERT(!item.isLastInArray());
m_array->at(m_count++) = item;
if (m_count == m_capacity)
@@ -52,7 +52,7 @@ public:
typename ArrayType<T>::Allocator::PassPtr release()
{
- RELEASE_ASSERT(m_count == m_capacity);
+ CHECK_EQ(m_count, m_capacity);
assertValid();
return ArrayType<T>::Allocator::release(m_array);
}

Powered by Google App Engine
This is Rietveld 408576698