Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 14ddbfed34e8e1c6a26549f722dd690119bb1266
      
https://github.com/WebKit/WebKit/commit/14ddbfed34e8e1c6a26549f722dd690119bb1266
  Author: Sosuke Suzuki <[email protected]>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    A JSTests/microbenchmarks/array-prototype-concat-empty.js
    M Source/JavaScriptCore/runtime/JSArray.cpp

  Log Message:
  -----------
  [JSC] Skip index-type update in `tryCloneArrayFromFast` when `fillMode` is 
`Empty`
https://bugs.webkit.org/show_bug.cgi?id=294247

Reviewed by Yusuke Suzuki.

`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

Canonical link: https://commits.webkit.org/296082@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to