[webkit-changes] [WebKit/WebKit] 32933b: [JSC] Extend NumericStrings cache
Yusuke Suzuki
noreply at github.com
Thu May 25 17:51:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 32933b83852fbce9d30d334780db41b83c37351e
https://github.com/WebKit/WebKit/commit/32933b83852fbce9d30d334780db41b83c37351e
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M Source/JavaScriptCore/runtime/NumberPrototype.cpp
M Source/JavaScriptCore/runtime/NumericStrings.h
Log Message:
-----------
[JSC] Extend NumericStrings cache
https://bugs.webkit.org/show_bug.cgi?id=257357
rdar://problem/109861654
Reviewed by Justin Michaud.
Extend NumericStrings cache a bit for Int32 cases to cache more strings as V8 and SpiderMonkey do.
* Source/JavaScriptCore/runtime/NumberPrototype.cpp:
(JSC::NumericStrings::addJSString):
* Source/JavaScriptCore/runtime/NumericStrings.h:
(JSC::NumericStrings::add):
(JSC::NumericStrings::clearOnGarbageCollection):
(JSC::NumericStrings::lookup):
(JSC::NumericStrings::lookupSmallString):
Canonical link: https://commits.webkit.org/264545@main
More information about the webkit-changes
mailing list