Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1832ad030f7dcd00a47615aaacc78cd351066f6f
https://github.com/WebKit/WebKit/commit/1832ad030f7dcd00a47615aaacc78cd351066f6f
Author: Chris Dumez <[email protected]>
Date: 2023-10-05 (Thu, 05 Oct 2023)
Changed paths:
M Source/JavaScriptCore/KeywordLookupGenerator.py
M Source/JavaScriptCore/runtime/LiteralParser.cpp
M Source/WTF/WTF.xcodeproj/project.pbxproj
M Source/WTF/wtf/CMakeLists.txt
A Source/WTF/wtf/text/FastCharacterComparison.h
M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
Log Message:
-----------
Move fast character comparison functions from JavaScriptCore/KeywordLookup.h
to WTF/
https://bugs.webkit.org/show_bug.cgi?id=262740
Reviewed by Yusuke Suzuki and Ryosuke Niwa.
Move fast character comparison functions from JavaScriptCore/KeywordLookup.h to
WTF/text/FastCharacterComparison.h
and reuse them in the HTML fast parser.
I believe they may end up being useful in the trie we generate to parse element
tag & attribute names.
* Source/JavaScriptCore/KeywordLookupGenerator.py:
(Trie.printSubTreeAsC):
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::LiteralParser<CharType>::Lexer::lex):
(JSC::compare3Chars): Deleted.
(JSC::compare4Chars): Deleted.
* Source/WTF/WTF.xcodeproj/project.pbxproj:
* Source/WTF/wtf/text/FastCharacterComparison.h: Added.
(WTF::compareCharacters):
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::scanAttributeName):
Canonical link: https://commits.webkit.org/268959@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes