Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c6900eb698938600bebd834b0409f4e7c5073527
      
https://github.com/WebKit/WebKit/commit/c6900eb698938600bebd834b0409f4e7c5073527
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSPromiseConstructor.cpp

  Log Message:
  -----------
  [JSC] Promise combinator's array should get vector-hint based on iterable size
https://bugs.webkit.org/show_bug.cgi?id=316548
rdar://179020924

Reviewed by Marcus Plutowski.

Add vector-hint when creating an array for Promise combinators (e.g.
Promise.all) based on length of iterable. So this avoids repeated
extension of JSArray.

* Source/JavaScriptCore/runtime/JSPromiseConstructor.cpp:
(JSC::vectorLengthHintForCombinator):
(JSC::promiseAllSlow):
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::promiseAllSettledSlow):
(JSC::promiseAnySlow):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to