[webkit-changes] [WebKit/WebKit] f231e1: [JSC] Add `LIKELY` for `isJSArray(this)` in `Array...

SUZUKI Sosuke noreply at github.com
Wed Jan 15 20:38:54 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f231e148292e53700e0ae4bf3216d8fda07b8f16
      https://github.com/WebKit/WebKit/commit/f231e148292e53700e0ae4bf3216d8fda07b8f16
  Author: Sosuke Suzuki <aosukeke at gmail.com>
  Date:   2025-01-15 (Wed, 15 Jan 2025)

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

  Log Message:
  -----------
  [JSC] Add `LIKELY` for `isJSArray(this)` in `ArrayPrototype`
https://bugs.webkit.org/show_bug.cgi?id=285995

Reviewed by Alex Christensen and Keith Miller.

Since we can almost always assume that the this of an
ArrayPrototype function is a JSArray, we should use LIKELY.

* Source/JavaScriptCore/runtime/ArrayPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):

Canonical link: https://commits.webkit.org/288989@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