String::latin1() should take advantage of 8 bit strings
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jan 2012 19:26:15 +0000 (19:26 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jan 2012 19:26:15 +0000 (19:26 +0000)
commit5a284a4b36497b6a84b290aaa34b991375789835
treedbc84c49237625966fade77b9c031cff3ba35acb
parentc5579e6f7d50a149137594b7652fb65bdcbe3d2a
String::latin1() should take advantage of 8 bit strings
https://bugs.webkit.org/show_bug.cgi?id=76646

Reviewed by Geoffrey Garen.

* wtf/text/WTFString.cpp:
(WTF::String::latin1): For 8 bit strings, use existing buffer
without conversion.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/text/WTFString.cpp