[webkit-changes] [WebKit/WebKit] b2bfdf: [JSC] Fill HostFunction's codePtr from DFG in Dire...

Yusuke Suzuki noreply at github.com
Mon Dec 11 14:27:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b2bfdf22c3b8916595109e38121381bee6afd96e
      https://github.com/WebKit/WebKit/commit/b2bfdf22c3b8916595109e38121381bee6afd96e
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-12-11 (Mon, 11 Dec 2023)

  Changed paths:
    M Source/JavaScriptCore/bytecode/CallLinkInfo.cpp
    M Source/JavaScriptCore/bytecode/CallLinkInfo.h
    M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
    M Source/JavaScriptCore/jit/AssemblyHelpers.cpp

  Log Message:
  -----------
  [JSC] Fill HostFunction's codePtr from DFG in DirectCall
https://bugs.webkit.org/show_bug.cgi?id=266213
rdar://119488497

Reviewed by Justin Michaud.

For NativeExecutables, we do not need to repatch its code after actually running them in DirectCall.
We can embed the target in DFG / FTL.

* Source/JavaScriptCore/bytecode/CallLinkInfo.cpp:
(JSC::OptimizingCallLinkInfo::emitDirectFastPath):
(JSC::OptimizingCallLinkInfo::emitDirectTailCallFastPath):
(JSC::OptimizingCallLinkInfo::initializeDirectCallRepatch):
* Source/JavaScriptCore/bytecode/CallLinkInfo.h:
* Source/JavaScriptCore/jit/AssemblyHelpers.cpp:
(JSC::AssemblyHelpers::emitVirtualCallWithoutMovingGlobalObject):

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




More information about the webkit-changes mailing list