Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 118076d88138bd4aa22ab1a27737765d4524ca39
https://github.com/WebKit/WebKit/commit/118076d88138bd4aa22ab1a27737765d4524ca39
Author: Sosuke Suzuki <[email protected]>
Date: 2025-12-29 (Mon, 29 Dec 2025)
Changed paths:
A JSTests/microbenchmarks/array-from-cloned-arguments.js
A JSTests/stress/array-from-cloned-arguments.js
M Source/JavaScriptCore/runtime/ArrayConstructor.cpp
Log Message:
-----------
[JSC] Add fast path for `Array.from(arguments)` in strict mode
https://bugs.webkit.org/show_bug.cgi?id=303074
Reviewed by Yusuke Suzuki.
This patch changes to add fast path for `Array.from(arguments)` in strict mode.
TipOfTree Patched
array-from-cloned-arguments 8.3149+-0.0485 ^ 4.0432+-0.1304
^ definitely 2.0565x faster
Tests: JSTests/microbenchmarks/array-from-cloned-arguments.js
JSTests/stress/array-from-cloned-arguments.js
* JSTests/microbenchmarks/array-from-cloned-arguments.js: Added.
(test):
* JSTests/stress/array-from-cloned-arguments.js: Added.
(shouldBe):
(test):
(noInline):
* Source/JavaScriptCore/runtime/ArrayConstructor.cpp:
(JSC::getArgumentsLength):
(JSC::tryCreateArrayFromArguments):
(JSC::tryCreateArrayFromClonedArguments):
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/304978@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications