Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b1220971257099a3337168c7759392b62317e79a
https://github.com/WebKit/WebKit/commit/b1220971257099a3337168c7759392b62317e79a
Author: Darin Adler <[email protected]>
Date: 2025-09-27 (Sat, 27 Sep 2025)
Changed paths:
M Source/JavaScriptCore/parser/Lexer.cpp
M Source/JavaScriptCore/runtime/JSONObject.cpp
M Source/JavaScriptCore/runtime/LiteralParser.cpp
M Source/WTF/wtf/SIMDHelpers.h
M Source/WTF/wtf/SortedArrayMap.h
M Source/WTF/wtf/text/StringCommon.h
Log Message:
-----------
Remove reliance on std::make_unsigned_t in our optimized SIMD code paths
https://bugs.webkit.org/show_bug.cgi?id=299670
rdar://161486686
Reviewed by Yusuke Suzuki.
* Source/JavaScriptCore/parser/Lexer.cpp:
(JSC::Lexer<T>::parseString): Use SIMD::SameSizeUnsignedInteger.
(JSC::Lexer<T>::parseStringSlowCase): Remove static assertion that requires T
be an unsigned
scalar type.
(JSC::Lexer<T>::lexWithoutClearingLineTerminator): Use
SIMD::SameSizeUnsignedInteger.
* Source/JavaScriptCore/runtime/JSONObject.cpp:
(JSC::stringCopySameType): Ditto.
(JSC::stringCopyUpconvert): Ditto.
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::reviverMode>::Lexer::lexString): Ditto.
* Source/WTF/wtf/SIMDHelpers.h: Added SizedUnsignedTrait and
SameSizeUnsignedInteger.
(WTF::SIMD::find): Use SIMD::SameSizeUnsignedInteger.
(WTF::SIMD::count): Ditto.
* Source/WTF/wtf/SortedArrayMap.h:
(WTF::foldForComparison): Ditto.
* Source/WTF/wtf/text/StringCommon.h:
(WTF::compareEach): Cast a bool to an int before using it with the | operator.
This silences
a warning on some compilers that will otherwise start happening after we make
changes to the
Latin1Character type.
(WTF::charactersContain): Use SIMD::SameSizeUnsignedInteger.
(WTF::countMatchedCharacters): Ditto.
Canonical link: https://commits.webkit.org/300656@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