Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b2fa541eceb6ed9cf800c7b1f5fc9fbd5b0ec20
https://github.com/WebKit/WebKit/commit/4b2fa541eceb6ed9cf800c7b1f5fc9fbd5b0ec20
Author: Yusuke Suzuki <[email protected]>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M Source/JavaScriptCore/builtins/TypedArrayPrototype.js
M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototypeFunctions.h
M Source/JavaScriptCore/runtime/JSTypedArrayViewPrototype.cpp
Log Message:
-----------
[JSC] Implement TypedArray#findLast / TypedArray#findLastIndex in C++
https://bugs.webkit.org/show_bug.cgi?id=292064
rdar://problem/150039557
Reviewed by Yijia Huang.
Let's implement TypedArray#findLast / TypedArray#findLastIndex in C++.
We extend typedArrayViewForEachImpl with Forward / Backward option to
make it work with reversed order forEach.
* Source/JavaScriptCore/builtins/TypedArrayPrototype.js:
(findLast): Deleted.
(findLastIndex): Deleted.
* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototypeFunctions.h:
(JSC::typedArrayViewForEachImpl):
(JSC::genericTypedArrayViewProtoFuncForEach):
(JSC::genericTypedArrayViewProtoFuncFind):
(JSC::genericTypedArrayViewProtoFuncFindIndex):
(JSC::genericTypedArrayViewProtoFuncFindLast):
(JSC::genericTypedArrayViewProtoFuncFindLastIndex):
(JSC::genericTypedArrayViewProtoFuncEvery):
(JSC::genericTypedArrayViewProtoFuncSome):
* Source/JavaScriptCore/runtime/JSTypedArrayViewPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::JSTypedArrayViewPrototype::finishCreation):
Canonical link: https://commits.webkit.org/294136@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