Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: df26015612dd007e9f547c2044320adc6d2af220
https://github.com/WebKit/WebKit/commit/df26015612dd007e9f547c2044320adc6d2af220
Author: Yusuke Suzuki <[email protected]>
Date: 2025-07-13 (Sun, 13 Jul 2025)
Changed paths:
M Source/JavaScriptCore/runtime/ArrayPrototypeInlines.h
M Source/JavaScriptCore/runtime/NumberPrototype.cpp
M Source/JavaScriptCore/runtime/NumericStrings.h
Log Message:
-----------
[JSC] Increase capacity of Double cache
https://bugs.webkit.org/show_bug.cgi?id=295859
rdar://155731398
Reviewed by Mark Lam.
This patch increases the capacity of double to string cache from 1024 to
4096 which is aligned to V8's size. We also move the cache out from VM.
We also simplify Double cache's hash function for quick look up.
* Source/JavaScriptCore/runtime/ArrayPrototypeInlines.h:
(JSC::fastArrayJoin):
* Source/JavaScriptCore/runtime/NumberPrototype.cpp:
(JSC::NumericStrings::addJSString):
(JSC::NumericStrings::initializeDoubleCache):
* Source/JavaScriptCore/runtime/NumericStrings.h:
(JSC::NumericStrings::add):
(JSC::NumericStrings::clearOnGarbageCollection):
(JSC::NumericStrings::visitAggregate):
(JSC::NumericStrings::lookup):
Canonical link: https://commits.webkit.org/297318@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes