Title: [144641] trunk/Source/_javascript_Core
Revision
144641
Author
[email protected]
Date
2013-03-04 09:46:51 -0800 (Mon, 04 Mar 2013)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (144640 => 144641)


--- trunk/Source/_javascript_Core/ChangeLog	2013-03-04 17:41:24 UTC (rev 144640)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-03-04 17:46:51 UTC (rev 144641)
@@ -1,3 +1,16 @@
+2013-03-04  Andreas Kling  <[email protected]>
+
+        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):
+
 2013-03-04  Kunihiko Sakamoto  <[email protected]>
 
         Add build flag for FontLoader

Modified: trunk/Source/_javascript_Core/runtime/Identifier.h (144640 => 144641)


--- trunk/Source/_javascript_Core/runtime/Identifier.h	2013-03-04 17:41:24 UTC (rev 144640)
+++ trunk/Source/_javascript_Core/runtime/Identifier.h	2013-03-04 17:46:51 UTC (rev 144641)
@@ -258,4 +258,10 @@
 
 } // namespace JSC
 
+namespace WTF {
+
+template <> struct VectorTraits<JSC::Identifier> : SimpleClassVectorTraits { };
+
+} // namespace WTF
+
 #endif // Identifier_h
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to