Title: [127973] trunk/Source/WTF
Revision
127973
Author
[email protected]
Date
2012-09-08 12:50:03 -0700 (Sat, 08 Sep 2012)

Log Message

Give AtomicString SimpleClassVectorTraits.
<http://webkit.org/b/96186>

Reviewed by Karl Anders Carlsson.

AtomicString can be initialized/moved/compared with memset/memcpy/memcmp,
so add a VectorTraits<AtomicString> to make Vector<AtomicString> a little
more efficient.

* wtf/VectorTraits.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (127972 => 127973)


--- trunk/Source/WTF/ChangeLog	2012-09-08 18:17:39 UTC (rev 127972)
+++ trunk/Source/WTF/ChangeLog	2012-09-08 19:50:03 UTC (rev 127973)
@@ -1,3 +1,16 @@
+2012-09-08  Andreas Kling  <[email protected]>
+
+        Give AtomicString SimpleClassVectorTraits.
+        <http://webkit.org/b/96186>
+
+        Reviewed by Karl Anders Carlsson.
+
+        AtomicString can be initialized/moved/compared with memset/memcpy/memcmp,
+        so add a VectorTraits<AtomicString> to make Vector<AtomicString> a little
+        more efficient.
+
+        * wtf/VectorTraits.h:
+
 2012-09-07  Sheriff Bot  <[email protected]>
 
         Unreviewed, rolling out r127938.

Modified: trunk/Source/WTF/wtf/VectorTraits.h (127972 => 127973)


--- trunk/Source/WTF/wtf/VectorTraits.h	2012-09-08 18:17:39 UTC (rev 127972)
+++ trunk/Source/WTF/wtf/VectorTraits.h	2012-09-08 19:50:03 UTC (rev 127973)
@@ -31,6 +31,8 @@
 
 namespace WTF {
 
+    class AtomicString;
+
     template<bool isPod, typename T>
     struct VectorTraitsBase;
 
@@ -76,6 +78,9 @@
     template<typename P>
     struct VectorTraits<OwnPtr<P> > : SimpleClassVectorTraits { };
 
+    template<>
+    struct VectorTraits<AtomicString> : SimpleClassVectorTraits { };
+
     template<typename First, typename Second>
     struct VectorTraits<pair<First, Second> >
     {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to