Bug 302236
| Summary: | [JSC] Add fast path for `Array.from(arguments)` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <aosukeke> |
| Component: | JavaScriptCore | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/53657
EWS
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
<rdar://problem/164531038>