Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 756399f1473ca68f5cc78946026b865b22a4c81e
https://github.com/WebKit/WebKit/commit/756399f1473ca68f5cc78946026b865b22a4c81e
Author: Yusuke Suzuki <[email protected]>
Date: 2026-03-09 (Mon, 09 Mar 2026)
Changed paths:
M Source/JavaScriptCore/runtime/TemplateObjectDescriptor.h
M Source/WTF/wtf/text/ASCIILiteral.h
M Source/WTF/wtf/text/AtomStringImpl.cpp
M Source/WTF/wtf/text/CString.cpp
M Source/WTF/wtf/text/StringHasher.h
M Source/WTF/wtf/text/StringHasherInlines.h
M Source/WTF/wtf/text/SuperFastHash.h
M Source/WTF/wtf/text/WYHash.h
M Source/WTF/wtf/unicode/UTF8Conversion.cpp
M Source/WTF/wtf/unicode/UTF8Conversion.h
M Source/WebCore/contentextensions/DFAMinimizer.cpp
M Source/WebCore/contentextensions/HashableActionList.h
M Source/WebCore/platform/SharedStringHash.cpp
M Tools/TestWebKitAPI/Tests/WTF/StringHasher.cpp
M Tools/TestWebKitAPI/Tests/WTF/UTF8Conversion.cpp
Log Message:
-----------
[WTF] Remove streaming interface of StringHasher to make changing algorithm
easier
https://bugs.webkit.org/show_bug.cgi?id=309471
rdar://172051660
Reviewed by Yijia Huang.
This patch removes the streaming use of StringHasher. This is not so
much meaningfully used, and we would like to avoid having this for now
since we would like to replace the underlying algorithm easily. Only
offering one-shot algorithm makes replacing much easier.
* Source/JavaScriptCore/runtime/TemplateObjectDescriptor.h:
(JSC::TemplateObjectDescriptor::calculateHash):
* Source/WTF/wtf/text/ASCIILiteral.h:
(WTF::ASCIILiteral::hash const):
* Source/WTF/wtf/text/AtomStringImpl.cpp:
(WTF::AtomStringImpl::add):
(WTF::HashedUTF8CharactersTranslator::hash): Deleted.
(WTF::HashedUTF8CharactersTranslator::equal): Deleted.
(WTF::HashedUTF8CharactersTranslator::translate): Deleted.
* Source/WTF/wtf/text/CString.cpp:
(WTF::CString::hash const):
* Source/WTF/wtf/text/StringHasher.h:
(WTF::StringHasher::avoidZero):
(): Deleted.
* Source/WTF/wtf/text/StringHasherInlines.h:
(WTF::StringHasher::addCharacter): Deleted.
(WTF::StringHasher::hashWithTop8BitsMasked): Deleted.
* Source/WTF/wtf/text/SuperFastHash.h:
* Source/WTF/wtf/text/WYHash.h:
* Source/WTF/wtf/unicode/UTF8Conversion.cpp:
(WTF::Unicode::computeUTF16LengthWithHash): Deleted.
* Source/WTF/wtf/unicode/UTF8Conversion.h:
* Source/WebCore/contentextensions/DFAMinimizer.cpp:
* Source/WebCore/contentextensions/HashableActionList.h:
(WebCore::ContentExtensions::HashableActionList::HashableActionList):
* Source/WebCore/platform/SharedStringHash.cpp:
(WebCore::computeSharedStringHashInline):
Canonical link: https://commits.webkit.org/308927@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications