Title: [102082] trunk/Source/_javascript_Core
- Revision
- 102082
- Author
- msab...@apple.com
- Date
- 2011-12-05 18:06:48 -0800 (Mon, 05 Dec 2011)
Log Message
Create StringImpl::empty() as an 8 bit string
https://bugs.webkit.org/show_bug.cgi?id=73871
Reviewed by Oliver Hunt.
* wtf/text/StringStatics.cpp:
(WTF::StringImpl::empty): Changed to be an 8 bit string.
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (102081 => 102082)
--- trunk/Source/_javascript_Core/ChangeLog 2011-12-06 02:04:16 UTC (rev 102081)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-12-06 02:06:48 UTC (rev 102082)
@@ -1,3 +1,13 @@
+2011-12-05 Michael Saboff <msab...@apple.com>
+
+ Create StringImpl::empty() as an 8 bit string
+ https://bugs.webkit.org/show_bug.cgi?id=73871
+
+ Reviewed by Oliver Hunt.
+
+ * wtf/text/StringStatics.cpp:
+ (WTF::StringImpl::empty): Changed to be an 8 bit string.
+
2011-12-05 Darin Adler <da...@apple.com>
Convert JSClassRef to use HashMap<OwnPtr>
Modified: trunk/Source/_javascript_Core/wtf/text/StringStatics.cpp (102081 => 102082)
--- trunk/Source/_javascript_Core/wtf/text/StringStatics.cpp 2011-12-06 02:04:16 UTC (rev 102081)
+++ trunk/Source/_javascript_Core/wtf/text/StringStatics.cpp 2011-12-06 02:06:48 UTC (rev 102082)
@@ -46,8 +46,8 @@
// into the zero-page.
// Replace this with 'reinterpret_cast<UChar*>(static_cast<intptr_t>(1))' once
// PCRE goes away.
- static UChar emptyUCharData = 0;
- DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyUCharData, 0, ConstructStaticString));
+ static LChar emptyLCharData = 0;
+ DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyLCharData, 0, ConstructStaticString));
WTF_ANNOTATE_BENIGN_RACE(&emptyString, "Benign race on StringImpl::emptyString reference counter");
return &emptyString;
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes