Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 19da6c56338dc6cbd249ef2f76673fc103f0ecbb
      
https://github.com/WebKit/WebKit/commit/19da6c56338dc6cbd249ef2f76673fc103f0ecbb
  Author: Yijia Huang <yijia_hu...@apple.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

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

  Log Message:
  -----------
  [JSC] Explicitly capture `outOfBounds` in lambda to fix structured binding 
issue
rdar://147378241
https://bugs.webkit.org/show_bug.cgi?id=290027

Reviewed by Yusuke Suzuki.

Some older versions of Clang (such as the one in Xcode 13) have a bug where
structured bindings (`auto [x, y] = ...;`) are not captured properly when using
default capture `[=]`. This causes compilation errors when `outOfBounds` is used
inside the lambda.

To resolve this, we explicitly capture `outOfBounds` as `outOfBoundsJump`
inside the lambda. This ensures that the `Jump` object is properly passed down
and avoids potential miscompilation issues. No functional change.

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

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



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

Reply via email to