Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 101f7c7836eaa3e6c56d8a6fe1d8812efbb8959f
      
https://github.com/WebKit/WebKit/commit/101f7c7836eaa3e6c56d8a6fe1d8812efbb8959f
  Author: Yusuke Suzuki <[email protected]>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

  Changed paths:
    A JSTests/stress/dfg-compare-less-eq.js
    M Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h

  Log Message:
  -----------
  Abstract Interpreter incorrectly optimized CompareLessEq into Constant True 
when two oprands are undefined.
https://bugs.webkit.org/show_bug.cgi?id=296270
rdar://156361256

Reviewed by Keith Miller.

null <= null and undefined <= undefined are different results (because
ToNumber(null) is 0 while ToNumber(undefined) is NaN). We should not
fold them to true in DFG AI.

* JSTests/stress/dfg-compare-less-eq.js: Added.
(shouldBe):
(opt):
* Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to