Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 615e180ef2c89d2dbf51dbc5e6187f5c7a268868
https://github.com/WebKit/WebKit/commit/615e180ef2c89d2dbf51dbc5e6187f5c7a268868
Author: Yusuke Suzuki <[email protected]>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
A JSTests/stress/json-parse-cached-property-name-16bit-source.js
M Source/JavaScriptCore/runtime/JSONCache.h
M Source/JavaScriptCore/runtime/JSONCacheInlines.h
M Source/JavaScriptCore/runtime/LiteralParser.cpp
Log Message:
-----------
[JSC] Apply JSONCache NameTable caching to 16-bit source
https://bugs.webkit.org/show_bug.cgi?id=326193
rdar://189076480
Reviewed by Sosuke Suzuki.
This patch extends JSONCache NameTable to make it applicable to 16-bit source.
We still keep 8-bit strings as name tends to be latin-1, but we accept
16-bit source and compare them with stored 8-bit strings.
Test: JSTests/stress/json-parse-cached-property-name-16bit-source.js
* JSTests/stress/json-parse-cached-property-name-16bit-source.js: Added.
(shouldBe):
(alias):
(checkKeys):
* Source/JavaScriptCore/runtime/JSONCache.h:
* Source/JavaScriptCore/runtime/JSONCacheInlines.h:
(JSC::JSONCache::textMatches):
(JSC::JSONCache::NameTable<size>::match const):
(JSC::JSONCache::sourcePrefix):
(JSC::JSONCache::findName const):
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::requires):
Canonical link: https://commits.webkit.org/322612@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications