Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 56453fdfe0b0ca6258c23e6453b34f70b885d13f
      
https://github.com/WebKit/WebKit/commit/56453fdfe0b0ca6258c23e6453b34f70b885d13f
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-07-19 (Sun, 19 Jul 2026)

  Changed paths:
    M Source/JavaScriptCore/dfg/DFGSpeculativeJIT32_64.cpp
    M Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
    M Source/JavaScriptCore/jit/AssemblyHelpers.cpp

  Log Message:
  -----------
  [JSC] Converting Double -> Bool should be branchless
https://bugs.webkit.org/show_bug.cgi?id=319790
rdar://182662714

Reviewed by Keith Miller.

Converting Double -> Boolean can be done with branchless JIT code
(compareDouble). This patch applies it. FTL is already doing so, so we
do not need to have additional change in FTL.

* Source/JavaScriptCore/dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compileToBoolean):
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compileToBoolean):
* Source/JavaScriptCore/jit/AssemblyHelpers.cpp:
(JSC::AssemblyHelpers::emitConvertValueToBoolean):

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



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

Reply via email to