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

  Changed paths:
    M Source/JavaScriptCore/bytecode/CodeBlock.cpp
    M Source/JavaScriptCore/bytecode/CodeBlock.h
    M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
    M Source/JavaScriptCore/dfg/DFGCapabilities.cpp
    M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
    M Source/JavaScriptCore/jit/BaselineJITCode.h

  Log Message:
  -----------
  [JSC] Install approximate FTL bytecode cost sooner
https://bugs.webkit.org/show_bug.cgi?id=327210
rdar://189782048

Reviewed by Tadeu Zagallo.

FTL's B3 compilation takes enough long time, but approximate FTL
bytecode cost only requires its compiled FTL node counts. So let's
record it early in BaselineJITCode so that we can use it as soon as
possible.

* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::approximateBytecodeCostForFTLNodes):
(JSC::CodeBlock::bytecodeCost const):
(JSC::CodeBlock::bytecodeCostForFTLInlining const):
* Source/JavaScriptCore/bytecode/CodeBlock.h:
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::InliningPlan::priceCandidate const):
(JSC::DFG::ByteCodeParser::inliningCost):
* Source/JavaScriptCore/dfg/DFGCapabilities.cpp:
(JSC::DFG::mightInlineFunctionForCall):
(JSC::DFG::mightInlineFunctionForClosureCall):
(JSC::DFG::mightInlineFunctionForConstruct):
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::lower):
* Source/JavaScriptCore/jit/BaselineJITCode.h:
(JSC::BaselineJITCode::numberOfCompiledFTLNodes const):
(JSC::BaselineJITCode::setNumberOfCompiledFTLNodes):

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



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

Reply via email to