As described here: https://github.com/WebAssembly/design/pull/1089 This is a post-MVP feature.
*** Bug 210300 has been marked as a duplicate of this bug. ***
Created attachment 419538 [details] WIP Patch
This patch modifies one of the wasm.json files. Please ensure that any changes in one have been mirrored to the other. You can find the wasm.json files at "Source/JavaScriptCore/wasm/wasm.json" and "JSTests/wasm/wasm.json".
Created attachment 420006 [details] WIP saturate float-to-int conversions
Created attachment 420459 [details] Patch
Created attachment 420460 [details] Patch
Created attachment 420461 [details] Patch
Created attachment 420463 [details] Patch
Created attachment 420469 [details] Patch
Comment on attachment 420469 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=420469&action=review r=me > Source/JavaScriptCore/llint/WebAssembly.asm:1376 > + move 0xcf000000, t0 # INT32_MIN (Note that INT32_MIN - 1.0 in float is the same as INT32_MIN in float). why not use constexpr here?
Comment on attachment 420469 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=420469&action=review >> Source/JavaScriptCore/llint/WebAssembly.asm:1376 >> + move 0xcf000000, t0 # INT32_MIN (Note that INT32_MIN - 1.0 in float is the same as INT32_MIN in float). > > why not use constexpr here? This is because we cannot use bitwise_cast / union in constexpr. This is bit pattern of float in INTT32_MIN.
Committed r272933 (234166@main): <https://commits.webkit.org/234166@main>
<rdar://problem/74409614>