Bug 252605 - Support WebAssembly exception handling in BBQ baseline JIT
Summary: Support WebAssembly exception handling in BBQ baseline JIT
Status: RESOLVED DUPLICATE of bug 252959
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebAssembly (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Degazio
URL:
Keywords: InRadar
Depends on:
Blocks: 252209
  Show dependency treegraph
 
Reported: 2023-02-20 13:07 PST by David Degazio
Modified: 2023-03-01 13:44 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Degazio 2023-02-20 13:07:35 PST
rdar://105692614

Currently, the new BBQ baseline JIT for WebAssembly only supports throwing a few niche exceptions, for traps like unreachable instructions or dividing by zero. We need to implement the full WASM exception handling extension (https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/Exceptions.md) for parity with the existing Air backend.

Specifically, this entails implementing the following instructions:
 - `try`
 - `catch`
 - `catch_all`
 - `throw`
 - `rethrow`
 - `delegate`
Comment 1 David Degazio 2023-03-01 13:44:14 PST

*** This bug has been marked as a duplicate of bug 252959 ***