Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ba459bae8fa7fff9852a9017e3735ec9dc20844a
https://github.com/WebKit/WebKit/commit/ba459bae8fa7fff9852a9017e3735ec9dc20844a
Author: Yusuke Suzuki <[email protected]>
Date: 2026-06-12 (Fri, 12 Jun 2026)
Changed paths:
M Source/JavaScriptCore/runtime/temporal/core/CalendarICUBridge.cpp
M Source/JavaScriptCore/runtime/temporal/core/TimeZoneICUBridge.cpp
Log Message:
-----------
[JSC] Remove ucal_clone by reorganize ucal code
https://bugs.webkit.org/show_bug.cgi?id=316970
rdar://179440479
Reviewed by Yijia Huang.
Let's change the scope of withCalendar / withTimeZone so that we do not
need to call ucal_clone, which is significantly slower. Also we
introduce TinyLRUCache to Calendar cache too.
* Source/JavaScriptCore/runtime/temporal/core/CalendarICUBridge.cpp:
(JSC::TemporalCore::CalendarLRUCachePolicy::isKeyNull):
(JSC::TemporalCore::CalendarLRUCachePolicy::createValueForNullKey):
(JSC::TemporalCore::CalendarLRUCachePolicy::createValueForKey):
(JSC::TemporalCore::CalendarLRUCachePolicy::createKeyForStorage):
(JSC::TemporalCore::calendarCacheEntry):
(JSC::TemporalCore::withCalendar):
(JSC::TemporalCore::surpassesMonths):
(JSC::TemporalCore::calendarDateUntil):
* Source/JavaScriptCore/runtime/temporal/core/TimeZoneICUBridge.cpp:
Canonical link: https://commits.webkit.org/315128@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications