+2014-01-14 Andreas Kling <akling@apple.com>
+
+ Pack ResourceError harder.
+ <https://webkit.org/b/126969>
+
+ Re-arrange the members of ResourceError to reduce padding,
+ shrinking it by 8 bytes.
+
+ Reviewed by Antti Koivisto.
+
+ * platform/network/ResourceErrorBase.h:
+ (WebCore::ResourceErrorBase::ResourceErrorBase):
+
2014-01-14 Andreas Kling <akling@apple.com>
Pack RenderLayer harder.
ResourceErrorBase(const String& domain, int errorCode, const String& failingURL, const String& localizedDescription)
: m_domain(domain)
- , m_errorCode(errorCode)
, m_failingURL(failingURL)
, m_localizedDescription(localizedDescription)
+ , m_errorCode(errorCode)
, m_isNull(false)
, m_isCancellation(false)
, m_isTimeout(false)
static bool platformCompare(const ResourceError&, const ResourceError&) { return true; }
String m_domain;
- int m_errorCode;
String m_failingURL;
String m_localizedDescription;
- bool m_isNull;
- bool m_isCancellation;
- bool m_isTimeout;
+ int m_errorCode;
+ bool m_isNull : 1;
+ bool m_isCancellation : 1;
+ bool m_isTimeout : 1;
};
inline bool operator==(const ResourceError& a, const ResourceError& b) { return ResourceErrorBase::compare(a, b); }