Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6c4a382a605c9e699e24eb9a1d44251de35137f2
https://github.com/WebKit/WebKit/commit/6c4a382a605c9e699e24eb9a1d44251de35137f2
Author: Darin Adler <[email protected]>
Date: 2024-04-07 (Sun, 07 Apr 2024)
Changed paths:
M Source/JavaScriptCore/parser/Lexer.cpp
M Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
M Source/JavaScriptCore/runtime/LiteralParser.cpp
M Source/WTF/wtf/FastFloat.cpp
M Source/WTF/wtf/FastFloat.h
M Source/WTF/wtf/dtoa.h
M Source/WTF/wtf/text/StringToIntegerConversion.h
M Source/WTF/wtf/text/WTFString.cpp
M Source/WebCore/html/parser/HTMLParserIdioms.cpp
M Source/WebGPU/WGSL/Lexer.cpp
Log Message:
-----------
Move numeric parsing to std::span
https://bugs.webkit.org/show_bug.cgi?id=272291
rdar://126030913
Reviewed by Chris Dumez.
* Source/JavaScriptCore/parser/Lexer.cpp:
(JSC::Lexer<T>::lexWithoutClearingLineTerminator): Use span.
* Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:
(JSC::jsStrDecimalLiteral): Ditto.
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::LiteralParser<CharType>::Lexer::lexNumber): Ditto.
* Source/WTF/wtf/FastFloat.cpp:
(WTF::parseDouble): Ditto.
* Source/WTF/wtf/FastFloat.h: Ditto.
* Source/WTF/wtf/dtoa.h:
(WTF::parseDouble): Ditto.
* Source/WTF/wtf/text/StringToIntegerConversion.h:
(WTF::parseInteger): Ditto.
(WTF::parseIntegerAllowingTrailingJunk): Ditto.
* Source/WTF/wtf/text/WTFString.cpp:
(WTF::toDoubleType): Ditto.
* Source/WebCore/html/parser/HTMLParserIdioms.cpp:
(WebCore::parseValidHTMLFloatingPointNumberInternal): Ditto.
(WebCore::parseValidHTMLFloatingPointNumber): Ditto.
(WebCore::parseHTMLListOfOfFloatingPointNumberValuesInternal): Ditto.
(WebCore::parseHTMLDimensionNumber): Ditto.
* Source/WebGPU/WGSL/Lexer.cpp:
(WGSL::Lexer<T>::lexNumber): Ditto.
Canonical link: https://commits.webkit.org/277178@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