Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1b422914d55f4aa062971939d4c8b515ad3639b6
      
https://github.com/WebKit/WebKit/commit/1b422914d55f4aa062971939d4c8b515ad3639b6
  Author: Shu-yu Guo <[email protected]>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp

  Log Message:
  -----------
  [JSC] Move FTL stack overflow check to prologue
https://bugs.webkit.org/show_bug.cgi?id=172456
rdar://172371127

Reviewed by Yusuke Suzuki.

Move the stack overflow check in FTL to a prologue using a custom prologue
generator. This simplifies to stack overflow logic to not require restoring
state before jumping to the thunk that throws the stack overflow exception.

Also fixes a bug where the patchpoint version was not correctly restoring the
sp.

No new test as it takes too longer to trigger the stack overflow.

* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::lower):

Originally-landed-as: 305413.468@rapid/safari-7624.2.5.110-branch 
(3e734eae0148). rdar://176061369
Canonical link: https://commits.webkit.org/314187@main



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

Reply via email to