[webkit-changes] [WebKit/WebKit] 4caac8: Use std::span in ASCIIFastPath
Darin Adler
noreply at github.com
Sat Mar 23 03:43:38 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4caac858f636ac96404ec53cda91b6804704702c
https://github.com/WebKit/WebKit/commit/4caac858f636ac96404ec53cda91b6804704702c
Author: Darin Adler <darin at apple.com>
Date: 2024-03-23 (Sat, 23 Mar 2024)
Changed paths:
M Source/JavaScriptCore/API/JSScript.mm
M Source/JavaScriptCore/runtime/StringPrototype.cpp
M Source/JavaScriptCore/wasm/WasmParser.h
M Source/WTF/wtf/text/ASCIIFastPath.h
M Source/WTF/wtf/text/AdaptiveStringSearcher.h
M Source/WTF/wtf/text/StringImpl.h
M Source/WTF/wtf/text/StringView.h
M Source/WTF/wtf/text/WTFString.cpp
M Source/WebCore/bindings/js/ScriptBufferSourceProvider.h
M Source/WebCore/loader/cache/CachedScript.cpp
M Source/WebCore/testing/MockCDMFactory.cpp
Log Message:
-----------
Use std::span in ASCIIFastPath
https://bugs.webkit.org/show_bug.cgi?id=271509
rdar://125271340
Reviewed by Chris Dumez.
* Source/JavaScriptCore/API/JSScript.mm:
(+[JSScript scriptOfType:memoryMappedFromASCIIFile:withSourceURL:andBytecodeCache:inVirtualMachine:error:]):
Use span.
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::normalize): Use StringView::containsOnlyASCII.
* Source/JavaScriptCore/wasm/WasmParser.h:
(JSC::Wasm::Parser<SuccessType>::consumeUTF8String): Use span.
* Source/WTF/wtf/text/ASCIIFastPath.h:
(WTF::charactersAreAllASCII): Take span.
(WTF::charactersAreAllLatin1): Ditto.
* Source/WTF/wtf/text/AdaptiveStringSearcher.h:
(WTF::AdaptiveStringSearcher::AdaptiveStringSearcher): Use span.
* Source/WTF/wtf/text/StringImpl.h:
(WTF::StringImpl::createStaticStringImpl): Use span.
(WTF::StringImpl::containsOnlyASCII const): Ditto.
* Source/WTF/wtf/text/StringView.h:
(WTF::StringView::containsOnlyASCII const): Ditto.
* Source/WTF/wtf/text/WTFString.cpp:
(WTF::fromUTF8Impl): Ditto.
* Source/WebCore/bindings/js/ScriptBufferSourceProvider.h: Ditto.
* Source/WebCore/loader/cache/CachedScript.cpp:
(WebCore::CachedScript::script): Ditto.
* Source/WebCore/testing/MockCDMFactory.cpp:
(WebCore::MockCDM::sanitizeResponse const): Use span and StringView::split.
Canonical link: https://commits.webkit.org/276587@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