[webkit-changes] [WebKit/WebKit] e8629c: [JSC] Avoid costly length etc. access for `new Typ...

Yusuke Suzuki noreply at github.com
Sat Jul 15 02:25:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e8629ce0fda3248b52557ee3e3f72a4aac481322
      https://github.com/WebKit/WebKit/commit/e8629ce0fda3248b52557ee3e3f72a4aac481322
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-07-15 (Sat, 15 Jul 2023)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructorInlines.h

  Log Message:
  -----------
  [JSC] Avoid costly length etc. access for `new TypedArray(array)` case
https://bugs.webkit.org/show_bug.cgi?id=259240
rdar://problem/112310821

Reviewed by Ross Kirsling.

Let's use the fast path and array iterator protocol status to skip "length" and Symbol.iterator access
for `new TypedArray(array)` case.

* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructorInlines.h:
(JSC::constructGenericTypedArrayViewWithArguments):

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




More information about the webkit-changes mailing list