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

Remove custom translation framework from wasm-mutate #1796

Merged
merged 11 commits into from
Sep 18, 2024

Conversation

alexcrichton
Copy link
Member

This commit removes the final users of the Translator trait and migrates them to wasm_encoder::reencode. Additionally when fuzzing this some minor issues have additionally been fixed in wasm-mutate.

Don't use cargo features to reinterpret inputs to ensure that test cases
can reproduce more easily when toggling features.
Let this fall through to the "unimplemented opcodes" section below
instead of panicking.
Only used in a minor capacity, easy to transfer over.
* Add another hook in `Reencode` to process just elements
* Change the internal slices to `Cow` instead of `&[T]` to be a bit more
  flexible in terms of ownership
Mostly just updating various bits and pieces here and there.
Returns a first-class error instead of creating an invalid module.
Fall back on empty type info instead of panicking to get the error to
crop up elsewhere for unsupported instructions.
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

@fitzgen fitzgen added this pull request to the merge queue Sep 18, 2024
Merged via the queue into bytecodealliance:main with commit ae473e3 Sep 18, 2024
30 checks passed
@alexcrichton alexcrichton deleted the remove-mutate-translate branch September 18, 2024 00:50
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