fitzgen opened issue #13707:
Not 100% sure exactly what this would look like yet, but we very mechanically repeat ourselves in multiple places:
- We define the
VM*types themselves incrates/wasmtime/src/runtime/vm/vmcontext.rs- We define their layouts and field offsets in
crates/environ/src/vmoffsets.rs- We define helpers to emit loads/stores of these types/fields with the proper alias regions in
crates/cranelift/src/alias_regions.rsAnd all of those need to be kept in-sync.
Probably want some kind of
for_each_vm_type!macro defined inwasmtime-environ, and then use that to define theVMOffsetsinwasmtime-environ, the types themselves inwasmtime::runtime::vm, and the emit helpers inwasmtime-cranelift.
fitzgen added the cranelift label to Issue #13707.
fitzgen added the cleanup label to Issue #13707.
fitzgen added the wasmtime label to Issue #13707.
fitzgen assigned fitzgen to issue #13707.
Last updated: Jul 29 2026 at 05:03 UTC