Title: [99072] trunk/Source/_javascript_Core
- Revision
- 99072
- Author
- [email protected]
- Date
- 2011-11-02 09:45:47 -0700 (Wed, 02 Nov 2011)
Log Message
Missing Force8BitConstructor in 8-bit version of StringImpl::reallocate()
https://bugs.webkit.org/show_bug.cgi?id=71347
Patch by Xianzhu Wang <[email protected]> on 2011-11-02
Reviewed by Geoffrey Garen.
* wtf/text/StringImpl.cpp:
(WTF::StringImpl::reallocate):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (99071 => 99072)
--- trunk/Source/_javascript_Core/ChangeLog 2011-11-02 16:44:38 UTC (rev 99071)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-11-02 16:45:47 UTC (rev 99072)
@@ -1,3 +1,13 @@
+2011-11-02 Xianzhu Wang <[email protected]>
+
+ Missing Force8BitConstructor in 8-bit version of StringImpl::reallocate()
+ https://bugs.webkit.org/show_bug.cgi?id=71347
+
+ Reviewed by Geoffrey Garen.
+
+ * wtf/text/StringImpl.cpp:
+ (WTF::StringImpl::reallocate):
+
2011-11-01 Darin Adler <[email protected]>
Cut down on malloc/free a bit in the parser arena
Modified: trunk/Source/_javascript_Core/wtf/text/StringImpl.cpp (99071 => 99072)
--- trunk/Source/_javascript_Core/wtf/text/StringImpl.cpp 2011-11-02 16:44:38 UTC (rev 99071)
+++ trunk/Source/_javascript_Core/wtf/text/StringImpl.cpp 2011-11-02 16:45:47 UTC (rev 99072)
@@ -130,7 +130,7 @@
StringImpl* string = static_cast<StringImpl*>(fastRealloc(originalString.leakRef(), size));
data = "" + 1);
- return adoptRef(new (string) StringImpl(length));
+ return adoptRef(new (string) StringImpl(length, Force8BitConstructor));
}
PassRefPtr<StringImpl> StringImpl::reallocate(PassRefPtr<StringImpl> originalString, unsigned length, UChar*& data)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes