Changeset 161958 in webkit


Ignore:
Timestamp:
Jan 14, 2014 5:26:19 AM (10 years ago)
Author:
akling@apple.com
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:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r161955 r161958  
     12014-01-14  Andreas Kling  <akling@apple.com>
     2
     3        Pack ResourceLoaderOptions harder.
     4        <https://webkit.org/b/126972>
     5
     6        Make all ResourceLoaderOptions members bitfields to reduce padding,
     7        shrinking it from 28 to 4 bytes.
     8
     9        Reviewed by Antti Koivisto.
     10
     11        * loader/ResourceLoaderOptions.h:
     12
    1132014-01-14  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/loader/ResourceLoaderOptions.h

    r158044 r161958  
    8484    {
    8585    }
    86     SendCallbackPolicy sendLoadCallbacks;
    87     ContentSniffingPolicy sniffContent;
    88     DataBufferingPolicy dataBufferingPolicy;
    89     StoredCredentials allowCredentials; // Whether HTTP credentials and cookies are sent with the request.
    90     ClientCredentialPolicy clientCredentialPolicy; // When we should ask the client for credentials (if we allow credentials at all).
    91     SecurityCheckPolicy securityCheck;
    92     RequestOriginPolicy requestOriginPolicy;
     86    SendCallbackPolicy sendLoadCallbacks : 1;
     87    ContentSniffingPolicy sniffContent : 1;
     88    DataBufferingPolicy dataBufferingPolicy : 1;
     89    StoredCredentials allowCredentials : 1; // Whether HTTP credentials and cookies are sent with the request.
     90    ClientCredentialPolicy clientCredentialPolicy : 2; // When we should ask the client for credentials (if we allow credentials at all).
     91    SecurityCheckPolicy securityCheck : 1;
     92    RequestOriginPolicy requestOriginPolicy : 2;
    9393};
    9494
Note: See TracChangeset for help on using the changeset viewer.