2010-09-23 Michael Saboff <msaboff@apple.com>
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Sep 2010 22:23:19 +0000 (22:23 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Sep 2010 22:23:19 +0000 (22:23 +0000)
commit834cd1cab214c4297824b2d06ccafe2b72e2df94
tree0dec673ff8f1861a1515a555703ea0cdc2c828e9
parent44e83c09b515fabf68b90f326d83b6ec5c9c53e4
2010-09-23  Michael Saboff  <msaboff@apple.com>

        Reviewed by Geoffrey Garen.

        Removed extraneous truncation of ovector on entry and error exit.
        Changed the initialization to -1 of vector to only initialize
        the start indecies, which is sufficient for the pattern/subpatterns.
        Changed the JIT code to not clear the end index for subpatterns
        as it isn't needed.  These changes are worth ~2.7% on v8-regexp.
        https://bugs.webkit.org/show_bug.cgi?id=46404

        * runtime/RegExp.cpp:
        (JSC::RegExp::match):
        * yarr/RegexJIT.cpp:
        (JSC::Yarr::RegexGenerator::generateParenthesesSingle):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68207 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/runtime/RegExp.cpp
JavaScriptCore/yarr/RegexJIT.cpp