alexcrichton opened PR #13444 from alexcrichton:refactor-passive-element-segments to bytecodealliance:main:
This commit is targeted at implementing the bulk of the
table.init,array.init_elem, andarray.new_eleminstructions in compiled wasm code. This means that these instructions can also more naturally insert fuel/epoch checks described in #13387.Support in this commit is heavily built on previous refactorings where the goal here is to a new kind of entity, an element segment, and then just fill out all the various places that
matchis needed. The main refactoring needed to support this is that the element size of the src/dst of a copy can now differ. This is because element segments have a 16-byte element size (ValRaw's size), but tables and arrays have a different size of each element.Closes #13258
<!--
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
-->
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #13444.
alexcrichton requested cfallin for a review on PR #13444.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13444.
alexcrichton updated PR #13444.
:thumbs_up: cfallin submitted PR review:
LGTM!
cfallin added PR #13444 Process passive element segments in compiled code to the merge queue.
:check: cfallin merged PR #13444.
cfallin removed PR #13444 Process passive element segments in compiled code from the merge queue.
Last updated: Jun 01 2026 at 09:49 UTC