Stream: git-wasmtime

Topic: wasmtime / PR #9513 Refactor `WasmparserTypeConverter` to...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 03:06):

abrown opened PR #9513 from abrown:refactor-type-conversion to bytecodealliance:main:

While poking with @alexcrichton at how component core types are translated (or not, as we found), we realized that the WasmparserTypeConverter doesn't need an entire Module in order lookup type indices. In fact, we were previously passing empty Modules in cases where no lookups were needed. This change threads through a closure instead, which should help later with component core types when we certainly won't have a Module.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 03:06):

abrown requested elliottt for a review on PR #9513.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 03:06):

abrown requested wasmtime-compiler-reviewers for a review on PR #9513.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 03:06):

abrown requested wasmtime-core-reviewers for a review on PR #9513.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 03:07):

abrown edited PR #9513:

While around poking with @alexcrichton at how component core types are translated (or not, as we found), we realized that the WasmparserTypeConverter doesn't need an entire Module in order lookup type indices. In fact, we were previously passing empty Modules in cases where no lookups were needed. This change threads through a closure instead, which should help later with component core types when we certainly won't have a Module.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 03:07):

abrown edited PR #9513:

While poking around with @alexcrichton at how component core types are translated (or not, as we found), we realized that the WasmparserTypeConverter doesn't need an entire Module in order lookup type indices. In fact, we were previously passing empty Modules in cases where no lookups were needed. This change threads through a closure instead, which should help later with component core types when we certainly won't have a Module.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 05:44):

github-actions[bot] commented on PR #9513:

Subscribe to Label Action

cc @saulecabrera

<details>
This issue or pull request has been labeled: "winch"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 15:38):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2024 at 15:54):

alexcrichton merged PR #9513.


Last updated: Nov 22 2024 at 16:03 UTC