Changeset 144641 in webkit


Ignore:
Timestamp:
Mar 4, 2013 9:46:51 AM (11 years ago)
Author:
akling@apple.com
Message:

Add simple vector traits for JSC::Identifier.
<http://webkit.org/b/111323>

Reviewed by Geoffrey Garen.

Identifiers are really just Strings, giving them simple vector traits makes
Vector move them with memcpy() instead of churning the refcounts.

  • runtime/Identifier.h:

(WTF):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r144614 r144641  
     12013-03-04  Andreas Kling  <akling@apple.com>
     2
     3        Add simple vector traits for JSC::Identifier.
     4        <http://webkit.org/b/111323>
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Identifiers are really just Strings, giving them simple vector traits makes
     9        Vector move them with memcpy() instead of churning the refcounts.
     10
     11        * runtime/Identifier.h:
     12        (WTF):
     13
    1142013-03-04  Kunihiko Sakamoto  <ksakamoto@chromium.org>
    215
  • trunk/Source/JavaScriptCore/runtime/Identifier.h

    r143283 r144641  
    259259} // namespace JSC
    260260
     261namespace WTF {
     262
     263template <> struct VectorTraits<JSC::Identifier> : SimpleClassVectorTraits { };
     264
     265} // namespace WTF
     266
    261267#endif // Identifier_h
Note: See TracChangeset for help on using the changeset viewer.