Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge initial support for exception handling validation #46

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

dhil
Copy link
Member

@dhil dhil commented Jan 9, 2024

This patch merges in the recent change to upstream, which includes the initial support for exception handling validation.

alexcrichton and others added 3 commits January 9, 2024 00:03
…nce#1333)

* Update the exception-handling validator implementation

This commit updates the implementation of the exception-handling
proposal to the latest version of the proposal. This was already
implemented in the text format but all other crates needed updating. The
changes were:

* A new `exn` heap type is added for `exnref`. Currently this isn't a
  subtype with anything else, and this probably isn't correct but it's
  at least conservative for now.

* The `try`, `delegate`, `catch`, `catch_all`, and `rethrow`
  instructions were all removed as they're no longer present.

* New `try_table` and `throw_ref` instructions were added.

* Support for the name section subsection for tags has been added along
  with printing tag names in the text format.

* All exception-handling spec tests are now re-enabled.

* Update error message

* Restore old text format

Continue to parse the old exception opcodes both in the text and binary
format. Additionally print them too. Don't validate them, however, and
additionally don't restore the sugared paren-style parsing of the old
text format. This should enable the ability to print out old binaries
and reassemble them but will likely render handwritten examples
un-workable due to the removal of the parentheses-based form.

* No tests need skipping at this time

* Fix a bit of mixing old and new syntax
…smfx-merge

This patch merges in the initial support for the exception handling
validation.
@dhil dhil merged commit 1baeb76 into wasmfx:main Jan 9, 2024
6 checks passed
@dhil dhil deleted the wasmfx-merge branch January 9, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants