[webkit-changes] [WebKit/WebKit] ec9483: Update computeHashImpl() to use a span

Chris Dumez noreply at github.com
Wed Mar 20 08:13:57 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ec9483a7d0e3850cee94dd22f1635397c6a1c764
      https://github.com/WebKit/WebKit/commit/ec9483a7d0e3850cee94dd22f1635397c6a1c764
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
    M Source/WTF/wtf/text/AtomStringImpl.cpp
    M Source/WTF/wtf/text/StringHash.h
    M Source/WTF/wtf/text/StringHasher.h
    M Source/WTF/wtf/text/StringHasherInlines.h
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/StringImpl.h
    M Source/WTF/wtf/text/StringView.h
    M Source/WTF/wtf/text/SuperFastHash.h
    M Source/WTF/wtf/text/WYHash.h
    M Source/WebCore/bindings/js/ScriptBufferSourceProvider.h
    M Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp
    M Source/WebCore/loader/cache/CachedScript.cpp
    M Source/WebCore/platform/graphics/WidthCache.h
    M Tools/TestWebKitAPI/Tests/WTF/StringHasher.cpp
    M Tools/TestWebKitAPI/Tests/WTF/SuperFastHash.cpp
    M Tools/TestWebKitAPI/Tests/WTF/WYHash.cpp

  Log Message:
  -----------
  Update computeHashImpl() to use a span
https://bugs.webkit.org/show_bug.cgi?id=271215

Reviewed by Darin Adler and Sam Weinig.

* Source/WTF/wtf/text/AtomStringImpl.cpp:
(WTF::SubstringTranslator8::hash):
(WTF::SubstringTranslator16::hash):
* Source/WTF/wtf/text/StringHash.h:
(WTF::ASCIICaseInsensitiveHash::hash):
(WTF::HashTranslatorASCIILiteral::hash):
* Source/WTF/wtf/text/StringHasher.h:
* Source/WTF/wtf/text/StringHasherInlines.h:
(WTF::StringHasher::computeHashAndMaskTop8Bits):
(WTF::StringHasher::computeLiteralHashAndMaskTop8Bits):
(WTF::StringHasher::hashWithTop8BitsMasked):
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::hashSlowCase const):
(WTF::StringImpl::concurrentHash const):
* Source/WTF/wtf/text/StringImpl.h:
(WTF::HashTranslatorCharBuffer::HashTranslatorCharBuffer):
(WTF::StringImpl::setHash const):
(WTF::StringImpl::assertHashIsCorrect const):
* Source/WTF/wtf/text/StringView.h:
(WTF::StringView::hash const):
* Source/WTF/wtf/text/SuperFastHash.h:
(WTF::SuperFastHash::computeHashAndMaskTop8Bits):
(WTF::SuperFastHash::computeHash):
(WTF::SuperFastHash::computeHashImpl):
* Source/WTF/wtf/text/WYHash.h:
(WTF::WYHash::computeHashAndMaskTop8Bits):
(WTF::WYHash::hash):
(WTF::WYHash::computeHashImpl):
* Source/WebCore/bindings/js/ScriptBufferSourceProvider.h:
* Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp:
(WebCore::urlHostHash):
* Source/WebCore/loader/cache/CachedScript.cpp:
(WebCore::CachedScript::script):
* Source/WebCore/platform/graphics/WidthCache.h:
(WebCore::WidthCache::SmallStringKey::SmallStringKey):

Canonical link: https://commits.webkit.org/276406@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list