Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 48d5655a6714c8a3971955591f3f6a5c6a073bfb
      
https://github.com/WebKit/WebKit/commit/48d5655a6714c8a3971955591f3f6a5c6a073bfb
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-10-12 (Mon, 12 Oct 2026)

  Changed paths:
    M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp

  Log Message:
  -----------
  [JSC] Use DirectCall when polymorphic inlining fails
https://bugs.webkit.org/show_bug.cgi?id=327066
rdar://189679934

Reviewed by Dan Hecht.

We gave up polymorphic inlining when we failed to inline one call
variant. But we should just use DirectCall for that and continue using
inlining for the rest. This patch adds
emitDirectCallForPolymorphicCallVariant which tries to use DirectCall
when inlining failed in polymorphic inlining as we already checked the
callee via switch.

* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleInlining):
(JSC::DFG::ByteCodeParser::emitDirectCallForPolymorphicCallVariant):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to