Changeset 127973 in webkit


Ignore:
Timestamp:
Sep 8, 2012 12:50:03 PM (12 years ago)
Author:
kling@webkit.org
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:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r127941 r127973  
     12012-09-08  Andreas Kling  <kling@webkit.org>
     2
     3        Give AtomicString SimpleClassVectorTraits.
     4        <http://webkit.org/b/96186>
     5
     6        Reviewed by Karl Anders Carlsson.
     7
     8        AtomicString can be initialized/moved/compared with memset/memcpy/memcmp,
     9        so add a VectorTraits<AtomicString> to make Vector<AtomicString> a little
     10        more efficient.
     11
     12        * wtf/VectorTraits.h:
     13
    1142012-09-07  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/WTF/wtf/VectorTraits.h

    r111778 r127973  
    3131
    3232namespace WTF {
     33
     34    class AtomicString;
    3335
    3436    template<bool isPod, typename T>
     
    7779    struct VectorTraits<OwnPtr<P> > : SimpleClassVectorTraits { };
    7880
     81    template<>
     82    struct VectorTraits<AtomicString> : SimpleClassVectorTraits { };
     83
    7984    template<typename First, typename Second>
    8085    struct VectorTraits<pair<First, Second> >
Note: See TracChangeset for help on using the changeset viewer.