Title: [161958] trunk/Source/WebCore
Revision
161958
Author
[email protected]
Date
2014-01-14 05:26:19 -0800 (Tue, 14 Jan 2014)

Log Message

Pack ResourceLoaderOptions harder.
<https://webkit.org/b/126972>

Make all ResourceLoaderOptions members bitfields to reduce padding,
shrinking it from 28 to 4 bytes.

Reviewed by Antti Koivisto.

* loader/ResourceLoaderOptions.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (161957 => 161958)


--- trunk/Source/WebCore/ChangeLog	2014-01-14 13:14:31 UTC (rev 161957)
+++ trunk/Source/WebCore/ChangeLog	2014-01-14 13:26:19 UTC (rev 161958)
@@ -1,5 +1,17 @@
 2014-01-14  Andreas Kling  <[email protected]>
 
+        Pack ResourceLoaderOptions harder.
+        <https://webkit.org/b/126972>
+
+        Make all ResourceLoaderOptions members bitfields to reduce padding,
+        shrinking it from 28 to 4 bytes.
+
+        Reviewed by Antti Koivisto.
+
+        * loader/ResourceLoaderOptions.h:
+
+2014-01-14  Andreas Kling  <[email protected]>
+
         Pack ResourceError harder.
         <https://webkit.org/b/126969>
 

Modified: trunk/Source/WebCore/loader/ResourceLoaderOptions.h (161957 => 161958)


--- trunk/Source/WebCore/loader/ResourceLoaderOptions.h	2014-01-14 13:14:31 UTC (rev 161957)
+++ trunk/Source/WebCore/loader/ResourceLoaderOptions.h	2014-01-14 13:26:19 UTC (rev 161958)
@@ -83,13 +83,13 @@
         , requestOriginPolicy(requestOriginPolicy)
     {
     }
-    SendCallbackPolicy sendLoadCallbacks;
-    ContentSniffingPolicy sniffContent;
-    DataBufferingPolicy dataBufferingPolicy;
-    StoredCredentials allowCredentials; // Whether HTTP credentials and cookies are sent with the request.
-    ClientCredentialPolicy clientCredentialPolicy; // When we should ask the client for credentials (if we allow credentials at all).
-    SecurityCheckPolicy securityCheck;
-    RequestOriginPolicy requestOriginPolicy;
+    SendCallbackPolicy sendLoadCallbacks : 1;
+    ContentSniffingPolicy sniffContent : 1;
+    DataBufferingPolicy dataBufferingPolicy : 1;
+    StoredCredentials allowCredentials : 1; // Whether HTTP credentials and cookies are sent with the request.
+    ClientCredentialPolicy clientCredentialPolicy : 2; // When we should ask the client for credentials (if we allow credentials at all).
+    SecurityCheckPolicy securityCheck : 1;
+    RequestOriginPolicy requestOriginPolicy : 2;
 };
 
 } // namespace WebCore    
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to