| Index: Source/wtf/text/StringImpl.h
|
| diff --git a/Source/wtf/text/StringImpl.h b/Source/wtf/text/StringImpl.h
|
| index 2c35a29413685f9f03114ef3759f841a3612a8e5..5afbd564bc78423ad1259afbb32cadeb2b9de041 100644
|
| --- a/Source/wtf/text/StringImpl.h
|
| +++ b/Source/wtf/text/StringImpl.h
|
| @@ -125,13 +125,13 @@ private:
|
| // Used to construct static strings, which have an special refCount that can never hit zero.
|
| // This means that the static string will never be destroyed, which is important because
|
| // static strings will be shared across threads & ref-counted in a non-threadsafe manner.
|
| - enum ConstructEmptyStringTag { ConstructEmptyString };
|
| - explicit StringImpl(ConstructEmptyStringTag)
|
| + enum ConstructEmptyStringTag { ConstructEmpty8BitString, ConstructEmpty16BitString };
|
| + explicit StringImpl(ConstructEmptyStringTag tag)
|
| : m_refCount(1)
|
| , m_length(0)
|
| , m_hash(0)
|
| , m_isAtomic(false)
|
| - , m_is8Bit(true)
|
| + , m_is8Bit(tag == ConstructEmpty8BitString)
|
| , m_isStatic(true)
|
| {
|
| // Ensure that the hash is computed so that AtomicStringHash can call existingHash()
|
| @@ -290,7 +290,7 @@ public:
|
| --m_refCount;
|
| }
|
|
|
| - static StringImpl* empty();
|
| + static StringImpl* empty(bool is8Bit = true);
|
|
|
| // FIXME: Does this really belong in StringImpl?
|
| template <typename T> static void copyChars(T* destination, const T* source, unsigned numCharacters)
|
|
|