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

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

Issue 1855763002: CL for perf tryjob on android Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/wtf/ArrayBuffer.h ('k') | third_party/WebKit/Source/wtf/Functional.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Deque.h
diff --git a/third_party/WebKit/Source/wtf/Deque.h b/third_party/WebKit/Source/wtf/Deque.h
index ba874a872ba6d2866a8a1f96e24eacad9e896adb..852fdd38a914dd53a4f341be894593540a5a9fa6 100644
--- a/third_party/WebKit/Source/wtf/Deque.h
+++ b/third_party/WebKit/Source/wtf/Deque.h
@@ -84,13 +84,13 @@ public:
T& at(size_t i)
{
- CHECK_LT(i, size());
+ RELEASE_ASSERT(i < size());
size_t right = m_buffer.capacity() - m_start;
return i < right ? m_buffer.buffer()[m_start + i] : m_buffer.buffer()[i - right];
}
const T& at(size_t i) const
{
- CHECK_LT(i, size());
+ RELEASE_ASSERT(i < size());
size_t right = m_buffer.capacity() - m_start;
return i < right ? m_buffer.buffer()[m_start + i] : m_buffer.buffer()[i - right];
}
@@ -576,14 +576,14 @@ inline void DequeIteratorBase<T, inlineCapacity, Allocator>::decrement()
template <typename T, size_t inlineCapacity, typename Allocator>
inline T* DequeIteratorBase<T, inlineCapacity, Allocator>::after() const
{
- CHECK_NE(m_index, m_deque->m_end);
+ RELEASE_ASSERT(m_index != m_deque->m_end);
return &m_deque->m_buffer.buffer()[m_index];
}
template <typename T, size_t inlineCapacity, typename Allocator>
inline T* DequeIteratorBase<T, inlineCapacity, Allocator>::before() const
{
- CHECK_NE(m_index, m_deque->m_start);
+ RELEASE_ASSERT(m_index != m_deque->m_start);
if (!m_index)
return &m_deque->m_buffer.buffer()[m_deque->m_buffer.capacity() - 1];
return &m_deque->m_buffer.buffer()[m_index - 1];
« no previous file with comments | « third_party/WebKit/Source/wtf/ArrayBuffer.h ('k') | third_party/WebKit/Source/wtf/Functional.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698