[webkit-changes] [WebKit/WebKit] aeba31: [JSC] Squeeze JSArray::fastSlice fast path

Yusuke Suzuki noreply at github.com
Thu Aug 29 13:31:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: aeba3155349ab6eb3998af4009a304dfb9613f01
      https://github.com/WebKit/WebKit/commit/aeba3155349ab6eb3998af4009a304dfb9613f01
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-08-29 (Thu, 29 Aug 2024)

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

  Log Message:
  -----------
  [JSC] Squeeze JSArray::fastSlice fast path
https://bugs.webkit.org/show_bug.cgi?id=278844
rdar://134912070

Reviewed by Yijia Huang.

JSArray::fastSlice is one of the hottest code in various JS2 subtest. This patch squeezes its fast path
by allocating Butterfly, copying things and creating JSArray carefully.

* Source/JavaScriptCore/runtime/JSArray.cpp:
(JSC::JSArray::fastSlice):

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



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


More information about the webkit-changes mailing list