Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7a78d638b1637b95deaa1750b82e1dc0ca9b7d2d
https://github.com/WebKit/WebKit/commit/7a78d638b1637b95deaa1750b82e1dc0ca9b7d2d
Author: Chris Dumez <[email protected]>
Date: 2025-01-01 (Wed, 01 Jan 2025)
Changed paths:
M Source/JavaScriptCore/API/JSScript.mm
M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
M Source/JavaScriptCore/runtime/CachedTypes.cpp
M Source/JavaScriptCore/runtime/IntlLocale.cpp
M Source/JavaScriptCore/runtime/IntlObject.cpp
M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructor.cpp
M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototype.cpp
M Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
M Source/JavaScriptCore/runtime/JSONObject.cpp
M Source/JavaScriptCore/runtime/JSStringJoiner.cpp
M Source/JavaScriptCore/runtime/ParseInt.h
M Source/WTF/WTF.xcodeproj/project.pbxproj
M Source/WTF/wtf/CMakeLists.txt
M Source/WTF/wtf/DateMath.cpp
A Source/WTF/wtf/text/ParsingUtilities.h
M Source/WebCore/Headers.cmake
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/bindings/js/SerializedScriptValue.cpp
M Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp
M Source/WebCore/css/parser/CSSPropertyParser.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp
M Source/WebCore/html/HTMLFontElement.cpp
M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
M Source/WebCore/html/parser/HTMLParserIdioms.cpp
M Source/WebCore/html/parser/HTMLSrcsetParser.cpp
R Source/WebCore/html/parser/ParsingUtilities.h
M Source/WebCore/html/track/VTTScanner.h
M Source/WebCore/loader/LinkHeader.cpp
M Source/WebCore/loader/ResourceCryptographicDigest.cpp
M Source/WebCore/loader/SubresourceIntegrity.cpp
M Source/WebCore/loader/appcache/ApplicationCacheManifestParser.cpp
M Source/WebCore/page/csp/ContentSecurityPolicy.cpp
M Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp
M Source/WebCore/page/csp/ContentSecurityPolicyMediaListDirective.cpp
M Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp
M Source/WebCore/page/csp/ContentSecurityPolicyTrustedTypesDirective.cpp
M Source/WebCore/platform/DateComponents.cpp
M Source/WebCore/platform/network/RFC8941.cpp
M Source/WebCore/svg/SVGParserUtilities.h
Log Message:
-----------
Reduce use of std::span::subspan() by leveraging ParsingUtilities
https://bugs.webkit.org/show_bug.cgi?id=285271
Reviewed by Darin Adler.
A lot more code can be ported but this is a step in this direction.
* Source/JavaScriptCore/API/JSScript.mm:
(-[JSScript readCache]):
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::CallArguments::CallArguments):
* Source/JavaScriptCore/runtime/CachedTypes.cpp:
(JSC::Encoder::release):
* Source/JavaScriptCore/runtime/IntlLocale.cpp:
(JSC::LocaleIDBuilder::overrideLanguageScriptRegion):
* Source/JavaScriptCore/runtime/IntlObject.cpp:
(JSC::canonicalizeUnicodeExtensionsAfterICULocaleCanonicalization):
* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructor.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:
(JSC::jsBinaryIntegerLiteral):
(JSC::jsOctalIntegerLiteral):
(JSC::jsHexIntegerLiteral):
(JSC::toDouble):
(JSC::parseFloat):
* Source/JavaScriptCore/runtime/JSONObject.cpp:
(JSC::bufferMode>::append):
* Source/JavaScriptCore/runtime/JSStringJoiner.cpp:
(JSC::appendStringToDataWithOneCharacterSeparatorRepeatedly):
* Source/JavaScriptCore/runtime/ParseInt.h:
(JSC::isStrWhiteSpace):
* Source/WTF/WTF.xcodeproj/project.pbxproj:
* Source/WTF/wtf/CMakeLists.txt:
* Source/WTF/wtf/DateMath.cpp:
(WTF::parseES5DatePortion):
(WTF::parseES5TimePortion):
(WTF::parseDate):
* Source/WTF/wtf/text/ParsingUtilities.h: Renamed from
Source/WebCore/html/parser/ParsingUtilities.h.
(WTF::isNotASCIISpace):
(WTF::skipExactly):
(WTF::characterPredicate):
(WTF::skipUntil):
(WTF::skipWhile):
(WTF::skipExactlyIgnoringASCIICase):
(WTF::skipLettersExactlyIgnoringASCIICase):
(WTF::skipCharactersExactly):
(WTF::consumeSingleElement):
(WTF::consumeSpan):
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneDeserializer::readString):
* Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp:
* Source/WebCore/html/HTMLFontElement.cpp:
(WebCore::parseFontSize):
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
* Source/WebCore/html/parser/HTMLParserIdioms.cpp:
(WebCore::parseHTMLIntegerInternal):
(WebCore::isHTMLSpaceOrDelimiter):
(WebCore::parseHTMLListOfOfFloatingPointNumberValuesInternal):
(WebCore::parseHTTPRefreshInternal):
* Source/WebCore/html/parser/HTMLSrcsetParser.cpp:
* Source/WebCore/html/track/VTTScanner.h:
(WebCore::characterPredicate):
(WebCore::VTTScanner::characterPredicate): Deleted.
* Source/WebCore/loader/LinkHeader.cpp:
* Source/WebCore/loader/ResourceCryptographicDigest.cpp:
* Source/WebCore/loader/SubresourceIntegrity.cpp:
* Source/WebCore/loader/appcache/ApplicationCacheManifestParser.cpp:
* Source/WebCore/page/csp/ContentSecurityPolicy.cpp:
* Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp:
* Source/WebCore/page/csp/ContentSecurityPolicyMediaListDirective.cpp:
* Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp:
* Source/WebCore/page/csp/ContentSecurityPolicyTrustedTypesDirective.cpp:
* Source/WebCore/platform/DateComponents.cpp:
* Source/WebCore/platform/network/RFC8941.cpp:
* Source/WebCore/svg/SVGParserUtilities.h:
Canonical link: https://commits.webkit.org/288353@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes