2009-04-30 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Apr 2009 23:36:38 +0000 (23:36 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Apr 2009 23:36:38 +0000 (23:36 +0000)
commitdb5e03193d2b9b3f2417102538729801f479abde
treef1ed13412c825462ed0c135bf17bc2cf9ffee1a9
parent5368abcac8639efffdbf89121ae298baf34d3e96
2009-04-30  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Gavin Barraclough.

        - Concatenate final three strings in simple replace case at one go

        ~0.2% SunSpider speedup

        * runtime/StringPrototype.cpp:
        (JSC::stringProtoFuncReplace): Use new replaceRange helper instead of
        taking substrings and concatenating three strings.
        * runtime/UString.cpp:
        (JSC::UString::replaceRange): New helper function.
        * runtime/UString.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/runtime/StringPrototype.cpp
JavaScriptCore/runtime/UString.cpp
JavaScriptCore/runtime/UString.h