Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e8eb62b221930f4da595eb5995661b99ee02c05d
      
https://github.com/WebKit/WebKit/commit/e8eb62b221930f4da595eb5995661b99ee02c05d
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-05-22 (Fri, 22 May 2026)

  Changed paths:
    M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
    M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h
    M Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
    M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
    M Source/JavaScriptCore/jit/ThunkGenerators.cpp
    M Source/JavaScriptCore/jit/ThunkGenerators.h
    M Source/JavaScriptCore/runtime/JSString.h

  Log Message:
  -----------
  [JSC] Improve rope-string comparison
https://bugs.webkit.org/show_bug.cgi?id=315229
rdar://177558328

Reviewed by Yijia Huang.

This patch adds StringEqual thunk, which even extracts ropes from
JSString and do string matching. We do not inline this in DFG and FTL
since
it makes code too much bloated. And we use this thunk from DFG /
FTL so that we can handle common cases more efficiently.
Also we add some constant folding for string inputs to extract length
(or even data pointer) at compile time if possible to reduce code
generation size.

* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compileNeitherDoubleNorHeapBigIntToNotDoubleStrictEquality):
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
* Source/JavaScriptCore/jit/ThunkGenerators.cpp:
(JSC::stringEqualThunkGenerator):
* Source/JavaScriptCore/jit/ThunkGenerators.h:
* Source/JavaScriptCore/runtime/JSString.h:

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Dv6K9o5gx5&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzEzNzUyQG1haW4=&emid=6ab80b70-7fec-4ba8-a8cb-4665bc57ddd1&c=11



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

Reply via email to