Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9aa33190dfc1d30ec09060b3d12ec2b5337e86f4
      
https://github.com/WebKit/WebKit/commit/9aa33190dfc1d30ec09060b3d12ec2b5337e86f4
  Author: Shu-yu Guo <[email protected]>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M Source/JavaScriptCore/wasm/WasmOperations.cpp

  Log Message:
  -----------
  [JSC] Always initialize result array in wasm return frame

https://bugs.webkit.org/show_bug.cgi?id=297812
rdar://158847247

Reviewed by Keith Miller.

Allocating uninitialized JSArrays is faster but unsafe. For use in Wasm
multi-value returns, initializing the return array can call into user code and
throws, making use of uninitialized JSArrays error-prone as all exception
return paths have to take care to ensure that array gets fully initialized.

This PR changes the Wasm multi-value return use case to use initialized arrays.
This change is performance neutral on JetStream and Speedometer.

Canonical link: https://commits.webkit.org/299210@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