Ignore:
Timestamp:
Jan 24, 2022, 9:13:18 PM (3 years ago)
Author:
Cameron McCormack
Message:

Remove VM::stringCache
https://bugs.webkit.org/show_bug.cgi?id=235536

Reviewed by Sam Weinig.

We consult VM::stringCache when creating a JSString, but since
bug 142115 we never insert anything into it.

Removing this results in almost-significant improvements in the VueJS,
Vanilla-ES2015, and jQuery sub-tests of Speedometer 2 (of 0.5-2%,
0.03 <= p <= 0.05), and an almost significant 0.2% improvement in the
overall score (p = 0.06).

  • runtime/JSString.cpp:

(JSC::jsStringWithCacheSlowCase):

  • runtime/VM.cpp:

(JSC::VM::VM):

  • runtime/VM.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/VM.cpp

    r288085 r288537  
    219219    , emptyList(new ArgList)
    220220    , machineCodeBytesPerBytecodeWordForBaselineJIT(makeUnique<SimpleStats>())
    221     , stringCache(*this)
    222221    , symbolImplToSymbolMap(*this)
    223222    , structureCache(*this)
Note: See TracChangeset for help on using the changeset viewer.