[webkit-changes] [WebKit/WebKit] 67ee71: [JSC] Use C++ ArrayIndexOf code instead of inlining

Yusuke Suzuki noreply at github.com
Wed Jun 14 13:55:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 67ee712e66d7b18eaec6c95a30c9320e6a00bb87
      https://github.com/WebKit/WebKit/commit/67ee712e66d7b18eaec6c95a30c9320e6a00bb87
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M Source/JavaScriptCore/dfg/DFGMayExit.cpp
    M Source/JavaScriptCore/dfg/DFGOperations.cpp
    M Source/JavaScriptCore/dfg/DFGOperations.h
    M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
    M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp

  Log Message:
  -----------
  [JSC] Use C++ ArrayIndexOf code instead of inlining
https://bugs.webkit.org/show_bug.cgi?id=258066
rdar://110757702

Reviewed by Alexey Shvayka.

We added super fast SIMD-accelerated searching functions, which can be faster than
inlining naive indexOf in JIT code. This patch moves some particularly typed indexOf
operations from inlined JIT code to C++ function calls to leverage this SIMD functions.

* Source/JavaScriptCore/dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):
* Source/JavaScriptCore/dfg/DFGOperations.h:
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileArrayIndexOf):

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




More information about the webkit-changes mailing list