Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: db79b71cfdc4b1d72a3c3665dee777fe7ba7249d https://github.com/WebKit/WebKit/commit/db79b71cfdc4b1d72a3c3665dee777fe7ba7249d Author: Sosuke Suzuki <aosuk...@gmail.com> Date: 2025-03-07 (Fri, 07 Mar 2025)
Changed paths: A JSTests/microbenchmarks/array-prototype-copyWithin-contiguous.js A JSTests/microbenchmarks/array-prototype-copyWithin-double.js A JSTests/microbenchmarks/array-prototype-copyWithin-int32.js A JSTests/stress/array-prototype-copyWithin-contiguous.js A JSTests/stress/array-prototype-copyWithin-double.js A JSTests/stress/array-prototype-copyWithin-int32.js M Source/JavaScriptCore/builtins/ArrayPrototype.js M Source/JavaScriptCore/runtime/ArrayPrototype.cpp M Source/JavaScriptCore/runtime/CommonIdentifiers.h M Source/JavaScriptCore/runtime/JSArray.cpp M Source/JavaScriptCore/runtime/JSArray.h Log Message: ----------- [JSC] Implement `Array.prototype.copyWithin` in C++ https://bugs.webkit.org/show_bug.cgi?id=289237 Reviewed by Yusuke Suzuki. This patch implements `Array#copyWithin` in C++ using `memmove`. TipOfTree Patched array-prototype-copyWithin-contiguous 451.9835+-25.0049 ^ 258.7830+-1.3483 ^ definitely 1.7466x faster array-prototype-copyWithin-double 386.9415+-1.3776 ^ 258.2341+-4.6019 ^ definitely 1.4984x faster array-prototype-copyWithin-int32 345.7076+-2.5341 ^ 244.2431+-1.7288 ^ definitely 1.4154x faster * JSTests/microbenchmarks/array-prototype-copyWithin-int32.js: Added. (test): * Source/JavaScriptCore/runtime/ArrayPrototype.cpp: (JSC::ArrayPrototype::finishCreation): (JSC::JSC_DEFINE_HOST_FUNCTION): * Source/JavaScriptCore/runtime/CommonIdentifiers.h: * Source/JavaScriptCore/runtime/JSArray.cpp: (JSC::JSArray::fastCopywithin): * Source/JavaScriptCore/runtime/JSArray.h: Canonical link: https://commits.webkit.org/291766@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes