-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=274705 rdar://128719350 Reviewed by Sam Weinig. Deploy optimization for BidiRTL possibility scanning via SIMD. We clean up SIMDHelpers more to make code simpler 1. Add variadic bitOr / bitAnd / merge to simplify existing implementations. 2. Add all comparisons (lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual). 3. Make splat more easy-to-use form. 4. Add SIMD::stride helper inline variable to compute stride easily. For existing implementations, I just deployed this new form. But in the furture, we would like to extract common pattern and further simplifies the implementations. But for now, let's just make BidiRTL scanning fast. * Source/JavaScriptCore/runtime/JSONObject.cpp: (JSC::FastStringifier<CharType>::append): * Source/JavaScriptCore/runtime/LiteralParser.cpp: (JSC::LiteralParser<CharType>::Lexer::lexString): * Source/WTF/wtf/SIMDHelpers.h: (WTF::SIMD::splat8): (WTF::SIMD::splat16): (WTF::SIMD::splat32): (WTF::SIMD::splat64): (WTF::SIMD::splat): (WTF::SIMD::merge2): (WTF::SIMD::bitOr2): (WTF::SIMD::bitAnd2): (WTF::SIMD::merge): (WTF::SIMD::bitOr): (WTF::SIMD::bitAnd): (WTF::SIMD::bitNot): (WTF::SIMD::lessThanOrEqual): (WTF::SIMD::greaterThan): (WTF::SIMD::greaterThanOrEqual): * Source/WTF/wtf/text/StringCommon.h: (WTF::findImpl): (WTF::charactersContain): * Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp: (WebCore::HTMLFastPathParser::scanText): (WebCore::HTMLFastPathParser::scanAttributeValue): * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::containsStrongDirectionalityText): Canonical link: https://commits.webkit.org/279356@main
- Loading branch information
1 parent
5397a28
commit 3e50aea
Showing
7 changed files
with
286 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.