Changeset 256467 in webkit


Ignore:
Timestamp:
Feb 12, 2020 12:07:25 PM (4 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Make RegExpCache small
https://bugs.webkit.org/show_bug.cgi?id=207619

Reviewed by Mark Lam.

We can compact RegExpKey by using PackedRefPtr, so that we can shrink memory consumption of RegExpCache.

  • runtime/RegExpKey.h:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r256202 r256467  
     12020-02-12  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Make RegExpCache small
     4        https://bugs.webkit.org/show_bug.cgi?id=207619
     5
     6        Reviewed by Mark Lam.
     7
     8        We can compact RegExpKey by using PackedRefPtr, so that we can shrink memory consumption of RegExpCache.
     9
     10        * runtime/RegExpKey.h:
     11
    1122020-02-10  Mark Lam  <mark.lam@apple.com>
    213
  • trunk/Source/JavaScriptCore/runtime/RegExpKey.h

    r250005 r256467  
    3737struct RegExpKey {
    3838    OptionSet<Yarr::Flags> flagsValue;
    39     RefPtr<StringImpl> pattern;
     39    PackedRefPtr<StringImpl> pattern;
    4040
    4141    RegExpKey()
Note: See TracChangeset for help on using the changeset viewer.