Stream: git-wasmtime

Topic: wasmtime / PR #13444 Process passive element segments in ...


view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 21:54):

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, and array.new_elem instructions 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 match is 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:

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 (May 21 2026 at 21:54):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #13444.

view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 21:54):

alexcrichton requested cfallin for a review on PR #13444.

view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 21:54):

alexcrichton requested wasmtime-core-reviewers for a review on PR #13444.

view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 21:56):

alexcrichton updated PR #13444.

view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 22:55):

:thumbs_up: cfallin submitted PR review:

LGTM!

view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 22:55):

cfallin added PR #13444 Process passive element segments in compiled code to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 23:20):

:check: cfallin merged PR #13444.

view this post on Zulip Wasmtime GitHub notifications bot (May 21 2026 at 23:20):

cfallin removed PR #13444 Process passive element segments in compiled code from the merge queue.


Last updated: Jun 01 2026 at 09:49 UTC