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

Unified Diff: third_party/WebKit/Source/platform/wtf/HashTable.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/HashTable.h
diff --git a/third_party/WebKit/Source/platform/wtf/HashTable.h b/third_party/WebKit/Source/platform/wtf/HashTable.h
index dc6152cbedcd3ce5a748979f763bd6270f02d01b..dc5d7d6c27461e3707ab5065427f43ae6a1ebf9b 100644
--- a/third_party/WebKit/Source/platform/wtf/HashTable.h
+++ b/third_party/WebKit/Source/platform/wtf/HashTable.h
@@ -991,7 +991,7 @@ void HashTable<Key,
new_capacity = KeyTraits::kMinimumTableSize;
if (new_capacity > Capacity()) {
- RELEASE_ASSERT(!static_cast<int>(
+ CHECK(!static_cast<int>(
new_capacity >>
31)); // HashTable capacity should not overflow 32bit int.
Rehash(new_capacity, 0);
@@ -1624,7 +1624,7 @@ HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator>::
new_size = table_size_;
} else {
new_size = table_size_ * 2;
- RELEASE_ASSERT(new_size > table_size_);
+ CHECK_GT(new_size, table_size_);
}
return Rehash(new_size, entry);
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/Deque.h ('k') | third_party/WebKit/Source/platform/wtf/StackUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698