Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8847f4666db3a6e8402489b2bfe627fb6949d0db
https://github.com/WebKit/WebKit/commit/8847f4666db3a6e8402489b2bfe627fb6949d0db
Author: Yusuke Suzuki <[email protected]>
Date: 2026-06-28 (Sun, 28 Jun 2026)
Changed paths:
M Source/JavaScriptCore/yarr/YarrJIT.cpp
M Source/JavaScriptCore/yarr/YarrJIT.h
M Source/JavaScriptCore/yarr/YarrPattern.cpp
M Source/JavaScriptCore/yarr/YarrPattern.h
M Source/JavaScriptCore/yarr/YarrTZoneImpls.cpp
Log Message:
-----------
[YARR] Add latin1Table for efficient Char8 filtering
https://bugs.webkit.org/show_bug.cgi?id=317989
rdar://180768852
Reviewed by Sosuke Suzuki.
Let's have ByteTable-based latin1-table which converts CharacterClass
matching to table-based one when it is Char8 and matching is
complicated. We use ByteTable for now as BitSet based one is slower than
this ByteTable-based one.
* Source/JavaScriptCore/yarr/YarrJIT.cpp:
* Source/JavaScriptCore/yarr/YarrJIT.h:
(JSC::Yarr::YarrBoyerMooreData::clearMaps):
(JSC::Yarr::YarrBoyerMooreData::addLatin1Table):
* Source/JavaScriptCore/yarr/YarrPattern.cpp:
(JSC::Yarr::CharacterClassConstructor::charClass):
(JSC::Yarr::CharacterClassConstructor::buildLatin1TableIfBeneficial):
* Source/JavaScriptCore/yarr/YarrPattern.h:
* Source/JavaScriptCore/yarr/YarrTZoneImpls.cpp:
Canonical link: https://commits.webkit.org/315985@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications