Bug 252605

Summary: Support WebAssembly exception handling in BBQ baseline JIT
Product: WebKit Reporter: David Degazio <d_degazio>
Component: WebAssemblyAssignee: David Degazio <d_degazio>
Status: RESOLVED DUPLICATE    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 252209    

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 ***