Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: Source/core/dom/QualifiedName.h

Issue 560613002: Shrink QualifiedNameImpl by 8 bytes on 64-bit platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add COMPILE_ASSERT Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/QualifiedName.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/QualifiedName.h
diff --git a/Source/core/dom/QualifiedName.h b/Source/core/dom/QualifiedName.h
index 961fd6c84e348bf9a60f8f8ac9eb2a28c0f71b60..9476f6592de146c55657a3e307bf73e7fca17161 100644
--- a/Source/core/dom/QualifiedName.h
+++ b/Source/core/dom/QualifiedName.h
@@ -74,22 +74,22 @@ public:
RefCounted<QualifiedNameImpl>::deref();
}
- const AtomicString m_prefix;
- const AtomicString m_localName;
- const AtomicString m_namespace;
- mutable AtomicString m_localNameUpper;
// We rely on StringHasher's hashMemory clearing out the top 8 bits when
// doing hashing and use one of the bits for the m_isStatic value.
mutable unsigned m_existingHash : 24;
unsigned m_isStatic : 1;
+ const AtomicString m_prefix;
+ const AtomicString m_localName;
+ const AtomicString m_namespace;
+ mutable AtomicString m_localNameUpper;
private:
QualifiedNameImpl(const AtomicString& prefix, const AtomicString& localName, const AtomicString& namespaceURI, bool isStatic)
- : m_prefix(prefix)
+ : m_existingHash(0)
+ , m_isStatic(isStatic)
+ , m_prefix(prefix)
, m_localName(localName)
, m_namespace(namespaceURI)
- , m_existingHash(0)
- , m_isStatic(isStatic)
{
ASSERT(!namespaceURI.isEmpty() || namespaceURI.isNull());
« no previous file with comments | « no previous file | Source/core/dom/QualifiedName.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698