| Index: Source/heap/HeapTest.cpp
|
| diff --git a/Source/heap/HeapTest.cpp b/Source/heap/HeapTest.cpp
|
| index 3cc80872716b6ee844917b8283f8ad22b67591c2..7f1fc67af8f7095ea258ee7346595a76afc3ab40 100644
|
| --- a/Source/heap/HeapTest.cpp
|
| +++ b/Source/heap/HeapTest.cpp
|
| @@ -1109,6 +1109,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)
|
| {
|
| {
|
| @@ -2840,13 +2853,3 @@ TEST(HeapTest, HeapLinkedStack)
|
| }
|
|
|
| } // 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
|
| -
|
|
|