Changeset 102082 in webkit
- Timestamp:
- Dec 5, 2011, 6:06:48 PM (15 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/text/StringStatics.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r102065 r102082 1 2011-12-05 Michael Saboff <msaboff@apple.com> 2 3 Create StringImpl::empty() as an 8 bit string 4 https://bugs.webkit.org/show_bug.cgi?id=73871 5 6 Reviewed by Oliver Hunt. 7 8 * wtf/text/StringStatics.cpp: 9 (WTF::StringImpl::empty): Changed to be an 8 bit string. 10 1 11 2011-12-05 Darin Adler <darin@apple.com> 2 12 -
trunk/Source/JavaScriptCore/wtf/text/StringStatics.cpp
r101778 r102082 47 47 // Replace this with 'reinterpret_cast<UChar*>(static_cast<intptr_t>(1))' once 48 48 // PCRE goes away. 49 static UChar emptyUCharData = 0;50 DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&empty UCharData, 0, ConstructStaticString));49 static LChar emptyLCharData = 0; 50 DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyLCharData, 0, ConstructStaticString)); 51 51 WTF_ANNOTATE_BENIGN_RACE(&emptyString, "Benign race on StringImpl::emptyString reference counter"); 52 52 return &emptyString;
Note:
See TracChangeset
for help on using the changeset viewer.