Repository navigation
Update exception handling support to current proposal - #1596
Conversation
051109b to
e16ef19
Compare
binji
left a comment
There was a problem hiding this comment.
lgtm, thanks for doing this! Sorry for the long delay on review
* Restores code for catch, catch_all, and rethrow from a previous
version of the proposal, modified to match the latest spec.
* Adds additional tests and modify existing ones.
* Remove exnref/br_on_exn tests that will start failing.
e16ef19 to
ba3547e
Compare
|
I just noticed (after the discussion in #1604, thanks for pointing it out) that this PR doesn't actually solve the problem that made me notice the opcode problem, (because I was only using the disassembler). Namely |
|
Thanks @takikawa! By the way can I merge this? If the opcode is the issue we can fix it later. |
|
@aheejin Sure, no issues on my end with having it merged. AFAIK I've addressed all the comments in review. Thanks! I'd also be happy to submit a PR afterwards if the opcode changes. |
This PR updates the support of exception handling to the latest proposal (that is compatible with future 2-phase exception handling) described in WebAssembly/exception-handling#137 and WebAssembly/exception-handling#143.
catch $e,catch_all, andrethrow Nfrom a previous version of wabt, but with updates to match the current spec (e.g.,catch_allshares an opcode withelse,rethrow's depth indexes only catch blocks, etc).unwindanddelegateinstructions.exnrefandbr_on_exn.There are some details that could still change (e.g., maybe how
delegate's depth is validated), but I'd be happy to submit further PRs if the spec details change.