[webkit-changes] [WebKit/WebKit] a2cc91: Avoid JIT compilation for simple attribute-only ex...
Yusuke Suzuki
noreply at github.com
Wed Jan 17 18:04:41 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a2cc9142cedd737a7344564b89a5ce0cd14e8c0f
https://github.com/WebKit/WebKit/commit/a2cc9142cedd737a7344564b89a5ce0cd14e8c0f
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-01-17 (Wed, 17 Jan 2024)
Changed paths:
M Source/WebCore/dom/SelectorQuery.cpp
M Source/WebCore/dom/SelectorQuery.h
Log Message:
-----------
Avoid JIT compilation for simple attribute-only exact matching
https://bugs.webkit.org/show_bug.cgi?id=267616
rdar://121082724
Reviewed by Ryosuke Niwa.
To reduce machine code size, we add a path which handles very simple attribute-only exact matching,
which can avoid code generation for that patterns.
* Source/WebCore/dom/SelectorQuery.cpp:
(WebCore::isSingleAttributeExactSelector):
(WebCore::canOptimizeSingleAttributeExactMatch):
(WebCore::SelectorDataList::SelectorDataList):
(WebCore::SelectorDataList::executeSingleAttributeExactSelectorData const):
(WebCore::SelectorDataList::execute const):
* Source/WebCore/dom/SelectorQuery.h:
Canonical link: https://commits.webkit.org/273157@main
More information about the webkit-changes
mailing list