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/JSString.cpp

    r285730 r288537  
    437437JSString* jsStringWithCacheSlowCase(VM& vm, StringImpl& stringImpl)
    438438{
    439     if (JSString* string = vm.stringCache.get(&stringImpl))
    440         return string;
    441 
    442439    JSString* string = jsString(vm, String(stringImpl));
    443440    vm.lastCachedString.set(vm, string);
Note: See TracChangeset for help on using the changeset viewer.