| Index: Source/heap/HeapTest.cpp
|
| diff --git a/Source/heap/HeapTest.cpp b/Source/heap/HeapTest.cpp
|
| index 9cd048780a643d7955f177fcf0db06f2ac18d55e..4508299e383441b307e4ba1f0acc02791e714ac2 100644
|
| --- a/Source/heap/HeapTest.cpp
|
| +++ b/Source/heap/HeapTest.cpp
|
| @@ -1108,6 +1108,19 @@ private:
|
| bool m_isLast;
|
| };
|
|
|
| +} // WebCore namespace
|
| +
|
| +namespace WTF {
|
| +
|
| +// We need the below vector trait specialization for the above HeapVectors to behave correctly wrt. memset, memcmp etc.
|
| +template<> struct VectorTraits<WebCore::VectorObject> : public SimpleClassVectorTraits<WebCore::VectorObject> { };
|
| +template<> struct VectorTraits<WebCore::VectorObjectInheritedTrace> : public SimpleClassVectorTraits<WebCore::VectorObjectInheritedTrace> { };
|
| +template<> struct VectorTraits<WebCore::VectorObjectNoTrace> : public SimpleClassVectorTraits<WebCore::VectorObjectNoTrace> { };
|
| +
|
| +} // WTF namespace
|
| +
|
| +namespace WebCore {
|
| +
|
| TEST(HeapTest, Transition)
|
| {
|
| {
|
| @@ -2811,13 +2824,3 @@ TEST(HeapTest, HeapTerminatedArray)
|
| }
|
|
|
| } // WebCore namespace
|
| -
|
| -namespace WTF {
|
| -
|
| -// We need the below vector trait specialization for the above HeapVectors to behave correctly wrt. memset, memcmp etc.
|
| -template<> struct VectorTraits<WebCore::VectorObject> : public SimpleClassVectorTraits<WebCore::VectorObject> { };
|
| -template<> struct VectorTraits<WebCore::VectorObjectInheritedTrace> : public SimpleClassVectorTraits<WebCore::VectorObjectInheritedTrace> { };
|
| -template<> struct VectorTraits<WebCore::VectorObjectNoTrace> : public SimpleClassVectorTraits<WebCore::VectorObjectNoTrace> { };
|
| -
|
| -} // WTF namespace
|
| -
|
|
|