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

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

Issue 2833123002: Replace ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/wtf (Closed)
Patch Set: wtf Created 3 years, 8 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/wtf/TerminatedArrayBuilder.h
diff --git a/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h b/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h
index 8b83aca45d7b1ed81af2202f331926085381f488..31e2db7031ff898f403ec472de1b7b8262720ee9 100644
--- a/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h
+++ b/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h
@@ -41,7 +41,7 @@ class TerminatedArrayBuilder {
}
void Append(const T& item) {
- RELEASE_ASSERT(count_ < capacity_);
+ CHECK_LT(count_, capacity_);
DCHECK(!item.IsLastInArray());
array_->at(count_++) = item;
if (count_ == capacity_)
@@ -49,7 +49,7 @@ class TerminatedArrayBuilder {
}
typename ArrayType<T>::Allocator::PassPtr Release() {
- RELEASE_ASSERT(count_ == capacity_);
+ CHECK_EQ(count_, capacity_);
AssertValid();
return ArrayType<T>::Allocator::Release(array_);
}
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/StackUtil.cpp ('k') | third_party/WebKit/Source/platform/wtf/Vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698