Ignore:
Timestamp:
Mar 8, 2012, 10:49:55 PM (13 years ago)
Author:
[email protected]
Message:

Allocate the RegExpObject's data with the Cell
https://bugs.webkit.org/show_bug.cgi?id=80654

Patch by Benjamin Poulain <[email protected]> on 2012-03-08
Reviewed by Gavin Barraclough.

This patch removes the creation of RegExpObject's data to avoid the overhead
create by the allocation and destruction.

We RegExp are created repeatedly, this provides some performance improvment.
The PeaceKeeper test stringDetectBrowser improves by 10%.

  • runtime/RegExpObject.cpp:

(JSC::RegExpObject::RegExpObject):
(JSC::RegExpObject::visitChildren):
(JSC::RegExpObject::getOwnPropertyDescriptor):
(JSC::RegExpObject::defineOwnProperty):
(JSC::RegExpObject::match):

  • runtime/RegExpObject.h:

(JSC::RegExpObject::setRegExp):
(JSC::RegExpObject::regExp):
(JSC::RegExpObject::setLastIndex):
(JSC::RegExpObject::getLastIndex):
(RegExpObject):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r110264 r110266  
     12012-03-08  Benjamin Poulain  <[email protected]>
     2
     3        Allocate the RegExpObject's data with the Cell
     4        https://bugs.webkit.org/show_bug.cgi?id=80654
     5
     6        Reviewed by Gavin Barraclough.
     7
     8        This patch removes the creation of RegExpObject's data to avoid the overhead
     9        create by the allocation and destruction.
     10
     11        We RegExp are created repeatedly, this provides some performance improvment.
     12        The PeaceKeeper test stringDetectBrowser improves by 10%.
     13
     14        * runtime/RegExpObject.cpp:
     15        (JSC::RegExpObject::RegExpObject):
     16        (JSC::RegExpObject::visitChildren):
     17        (JSC::RegExpObject::getOwnPropertyDescriptor):
     18        (JSC::RegExpObject::defineOwnProperty):
     19        (JSC::RegExpObject::match):
     20        * runtime/RegExpObject.h:
     21        (JSC::RegExpObject::setRegExp):
     22        (JSC::RegExpObject::regExp):
     23        (JSC::RegExpObject::setLastIndex):
     24        (JSC::RegExpObject::getLastIndex):
     25        (RegExpObject):
     26
    1272012-03-08  Steve Falkenburg  <[email protected]>
    228
Note: See TracChangeset for help on using the changeset viewer.