| Index: third_party/WebKit/Source/wtf/text/StringStatics.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/StringStatics.cpp b/third_party/WebKit/Source/wtf/text/StringStatics.cpp
|
| index ff7910a313a4624272371a1acf069b804af81d85..d89ef98a8d23c70adc56d5c99b8de8ee70c4ac15 100644
|
| --- a/third_party/WebKit/Source/wtf/text/StringStatics.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/StringStatics.cpp
|
| @@ -46,6 +46,9 @@ WTF_EXPORT DEFINE_GLOBAL(AtomicString, httpsAtom);
|
| // table.
|
| WTF_EXPORT DEFINE_GLOBAL(String, xmlnsWithColon);
|
|
|
| +WTF_EXPORT DEFINE_GLOBAL(String, emptyString);
|
| +WTF_EXPORT DEFINE_GLOBAL(String, emptyString16Bit);
|
| +
|
| NEVER_INLINE unsigned StringImpl::hashSlowCase() const {
|
| if (is8Bit())
|
| setHash(StringHasher::computeHashAndMaskTop8Bits(characters8(), m_length));
|
| @@ -74,6 +77,8 @@ void StringStatics::init() {
|
| DCHECK(isMainThread());
|
|
|
| StringImpl::initStatics();
|
| + new (NotNull, (void*)&emptyString) String(StringImpl::empty);
|
| + new (NotNull, (void*)&emptyString16Bit) String(StringImpl::empty16Bit);
|
|
|
| // FIXME: These should be allocated at compile time.
|
| new (NotNull, (void*)&starAtom) AtomicString("*");
|
|
|