Wasm_backend.AbiShared value layout and fixed indices for the compiler, runtime, and JavaScript host. Every value struct extends ty_val, with its tag in field zero. Values with the same layout may have different tags.
val typedefs : Ir.subtype listOrdered types shared by all compiled modules. ty_bytes is a mutable packed-byte array; struct fields are immutable. Reference types are nullable so locals can be default-initialized.
Field one: number, bytes, pair left, label bytes, closure function, or wrapped value, according to the struct type.
Local function indices, excluding imports. Runtime functions precede fn_main; lifted closures follow it.
Host-visible export names paired with local function indices. Includes main, value accessors, and constructors used by host capabilities.