Bug 302236

Summary: [JSC] Add fast path for `Array.from(arguments)`
Product: WebKit Reporter: Sosuke Suzuki <aosukeke>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sosuke Suzuki
Reported 2025-11-09 19:45:28 PST
This patch changes to add fast path for `Array.from(arguments)`. note: This patch only supports `DirectArguments` and `ScopedArguments`. I'll add support for `ClonedArguments` in next patch. TipOfTree Patched array-from-scoped-arguments 9.1958+-0.1530 ^ 3.6832+-0.2937 ^ definitely 2.4967x faster array-from-direct-arguments 8.2003+-0.1391 ^ 2.8755+-0.0549 ^ definitely 2.8518x faster
Attachments
Sosuke Suzuki
Comment 1 2025-11-09 19:47:33 PST
EWS
Comment 2 2025-11-11 19:43:29 PST
Committed 302891@main (12bbbd4b4f3c): <https://commits.webkit.org/302891@main> Reviewed commits have been landed. Closing PR #53657 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-11-11 19:44:11 PST
Note You need to log in before you can comment on or make changes to this bug.