[webkit-changes] [WebKit/WebKit] 7b6f95: [JSC] Early return from isCanonicalNumericIndexStr...

Yusuke Suzuki noreply at github.com
Fri Jul 14 19:40:13 PDT 2023


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

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

  Log Message:
  -----------
  [JSC] Early return from isCanonicalNumericIndexString when it is definitely not a number
https://bugs.webkit.org/show_bug.cgi?id=259230
rdar://112292849

Reviewed by Alexey Shvayka.

This patch makes isCanonicalNumericIndexString early return for obvious non number cases
so that we avoid super costly number-to-string & string-to-number path.

* Source/JavaScriptCore/runtime/PropertyName.h:
(JSC::isCanonicalNumericIndexString):

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




More information about the webkit-changes mailing list