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

Start removing custom translation in wasm-mutate #1794

Merged

Conversation

alexcrichton
Copy link
Member

Now that wasm_encoder::reencode exists that's the better option to use for reencoding modules. This commit removes one of the major users of the equivalent Translator trait in wasm_mutate to start down the path of removing that trait entirely and instead relying on the support in wasm_encoder.

Now that `wasm_encoder::reencode` exists that's the better option to use
for reencoding modules. This commit removes one of the major users of
the equivalent `Translator` trait in `wasm_mutate` to start down the
path of removing that trait entirely and instead relying on the support
in `wasm_encoder`.
alexcrichton added a commit to alexcrichton/wasm-tools that referenced this pull request Sep 17, 2024
  Same as bytecodealliance#1794 except for another use of the `Translator` trait.
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.

Nice!

@fitzgen fitzgen added this pull request to the merge queue Sep 17, 2024
Merged via the queue into bytecodealliance:main with commit 4db76b8 Sep 17, 2024
30 checks passed
@alexcrichton alexcrichton deleted the remove-translator-from-wasm-mutate branch September 17, 2024 23:07
alexcrichton added a commit to alexcrichton/wasm-tools that referenced this pull request Sep 17, 2024
Same as bytecodealliance#1794 except for another use of the `Translator` trait.
github-merge-queue bot pushed a commit that referenced this pull request Sep 17, 2024
Same as #1794 except for another use of the `Translator` trait.
alexcrichton added a commit to alexcrichton/wasm-tools that referenced this pull request Sep 19, 2024
This commit fixes a small regression in reencoding from bytecodealliance#1794 where
element segments subtly changed encoding by accident. This commit
additionally ensures that there's a text format for all element
encodings and updates printing to respect the same defaults. It should
now be possible to represent all formats for element segments in the
text format and have them round-trippable.
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2024
This commit fixes a small regression in reencoding from #1794 where
element segments subtly changed encoding by accident. This commit
additionally ensures that there's a text format for all element
encodings and updates printing to respect the same defaults. It should
now be possible to represent all formats for element segments in the
text format and have them round-trippable.
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