RESOLVED FIXED294247
[JSC] Skip index-type update in `tryCloneArrayFromFast` when `fillMode` is `Empty`
https://bugs.webkit.org/show_bug.cgi?id=294247
Summary [JSC] Skip index-type update in `tryCloneArrayFromFast` when `fillMode` is `E...
Sosuke Suzuki
Reported 2025-06-10 04:29:12 PDT
`tryCloneArrayFromFast` adjusts the result’s index type if the source array contains holes, on the assumption that the holes will be filled with `undefined`. This adjustment is valid only when `fillMode` is `Undefined`, but the current implementation also performs it when `fillMode` is `Empty`. This patch changes to prevents the index-type update when `fillMode` is `Empty`. TipOfTree Patched array-prototype-concat-empty 7.7375+-0.1340 ^ 5.3688+-0.1247 ^ definitely 1.4412x faster
Attachments
Sosuke Suzuki
Comment 1 2025-06-10 04:29:59 PDT
EWS
Comment 2 2025-06-11 04:02:47 PDT
Committed 296082@main (14ddbfed34e8): <https://commits.webkit.org/296082@main> Reviewed commits have been landed. Closing PR #46536 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-06-11 04:03:22 PDT
Note You need to log in before you can comment on or make changes to this bug.