Stream: git-wasmtime

Topic: wasmtime / PR #5238 winch: Prepare for an update to the `...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2022 at 21:05):

alexcrichton opened PR #5238 from prepare-winch-update to main:

This commit prepares the winch crate for updating wasm-tools, notably changing a bit about how the visitation of operators works. This moves the function body and wasm validator out of the CodeGen structure and into parameters threaded into the emission of the actual function.

Additionally the VisitOperator implementation was updated to remove the explicit calls to the validator, favoring instead a macro-generated solution to guarantee that all validation happens before any translation proceeds. This means that the VisitOperator for CodeGen impl is now infallible and the various methods have been inlined into the trait methods as well as removing the Result<_>.

Finally this commit updates translation to call validator.finish(..) which is required to perform the final validation steps of the function body.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2022 at 23:07):

saulecabrera submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 10 2022 at 11:19):

saulecabrera submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 10 2022 at 20:01):

alexcrichton merged PR #5238.


Last updated: Oct 23 2024 at 20:03 UTC