fitzgen opened PR #11355 from fitzgen:func-translation-state-typed-indices to bytecodealliance:main:
These methods get-or-create various entities given some kind of Wasm index. Those Wasm indices were previously passed as
u32s, but are now typed indices (e.g.MemoryIndexinstead ofu32). This makes it more difficult to pass the wrong index to these methods.I also removed some unused arguments from a few
FuncEnvironmentmethods that the results ofFuncTranslationState::get_*calls were feeding into. These were left over from whenFuncEnvironmentwas a trait and not a single type.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
fitzgen requested abrown for a review on PR #11355.
fitzgen requested wasmtime-compiler-reviewers for a review on PR #11355.
alexcrichton submitted PR review.
fitzgen merged PR #11355.
Last updated: Dec 06 2025 at 06:05 UTC