Title: [132288] trunk/Source/WebCore
Revision
132288
Author
kl...@webkit.org
Date
2012-10-23 18:13:39 -0700 (Tue, 23 Oct 2012)

Log Message

Shrink immutable ElementAttributeData and StylePropertySet by one pointer each.
<http://webkit.org/b/100123>

Reviewed by Anders Carlsson.

Remove one pointer of unintentional padding in the immutable versions of these objects.
583kB progression on Membuster3.

* css/StylePropertySet.cpp:
(WebCore::immutableStylePropertySetSize):
* dom/ElementAttributeData.cpp:
(WebCore::immutableElementAttributeDataSize):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (132287 => 132288)


--- trunk/Source/WebCore/ChangeLog	2012-10-24 01:10:13 UTC (rev 132287)
+++ trunk/Source/WebCore/ChangeLog	2012-10-24 01:13:39 UTC (rev 132288)
@@ -1,3 +1,18 @@
+2012-10-23  Andreas Kling  <kl...@webkit.org>
+
+        Shrink immutable ElementAttributeData and StylePropertySet by one pointer each.
+        <http://webkit.org/b/100123>
+
+        Reviewed by Anders Carlsson.
+
+        Remove one pointer of unintentional padding in the immutable versions of these objects.
+        583kB progression on Membuster3.
+
+        * css/StylePropertySet.cpp:
+        (WebCore::immutableStylePropertySetSize):
+        * dom/ElementAttributeData.cpp:
+        (WebCore::immutableElementAttributeDataSize):
+
 2012-10-23  Nate Chapin  <jap...@chromium.org>
 
         Crash in WebCore::SubresourceLoader::willSendRequest.

Modified: trunk/Source/WebCore/css/StylePropertySet.cpp (132287 => 132288)


--- trunk/Source/WebCore/css/StylePropertySet.cpp	2012-10-24 01:10:13 UTC (rev 132287)
+++ trunk/Source/WebCore/css/StylePropertySet.cpp	2012-10-24 01:13:39 UTC (rev 132288)
@@ -53,7 +53,7 @@
 
 static size_t immutableStylePropertySetSize(unsigned count)
 {
-    return sizeof(ImmutableStylePropertySet) + sizeof(CSSProperty) * count;
+    return sizeof(StylePropertySet) + sizeof(CSSProperty) * count;
 }
 
 PassRefPtr<StylePropertySet> StylePropertySet::createImmutable(const CSSProperty* properties, unsigned count, CSSParserMode cssParserMode)

Modified: trunk/Source/WebCore/dom/ElementAttributeData.cpp (132287 => 132288)


--- trunk/Source/WebCore/dom/ElementAttributeData.cpp	2012-10-24 01:10:13 UTC (rev 132287)
+++ trunk/Source/WebCore/dom/ElementAttributeData.cpp	2012-10-24 01:13:39 UTC (rev 132288)
@@ -37,7 +37,7 @@
 
 static size_t immutableElementAttributeDataSize(unsigned count)
 {
-    return sizeof(ImmutableElementAttributeData) + sizeof(Attribute) * count;
+    return sizeof(ElementAttributeData) + sizeof(Attribute) * count;
 }
 
 PassRefPtr<ElementAttributeData> ElementAttributeData::createImmutable(const Vector<Attribute>& attributes)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to