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

Unified Diff: Source/wtf/Vector.h

Issue 308323002: Oilpan: Clear unused slots in Deque so they are not found in conservative GCs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/wtf/Deque.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Vector.h
diff --git a/Source/wtf/Vector.h b/Source/wtf/Vector.h
index f7672b1b52bbbd9c76dce23279899227b383e6c5..f943223a07202988557ab0a028f1831972154279 100644
--- a/Source/wtf/Vector.h
+++ b/Source/wtf/Vector.h
@@ -43,6 +43,9 @@ static const size_t kInitialVectorSize = 1;
static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
#endif
+ template<typename T, size_t inlineBuffer, typename Allocator>
+ class Deque;
+
template <bool needsDestruction, typename T>
struct VectorDestructor;
@@ -494,6 +497,8 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
const T* inlineBuffer() const { return reinterpret_cast_ptr<const T*>(m_inlineBuffer.buffer); }
AlignedBuffer<m_inlineBufferSize, WTF_ALIGN_OF(T)> m_inlineBuffer;
+ template<typename U, size_t inlineBuffer, typename V>
+ friend class Deque;
};
template<typename T, size_t inlineCapacity, typename Allocator>
« no previous file with comments | « Source/wtf/Deque.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698