Expand description
Per-user-subtype Wasm subtype, vtable, and method emission for structural object shapes.
Structs§
- User
Subtype - Emitted artifacts for one user subtype. The Wasm struct type is shared by arity; the vtable global is shape-specialized and carries the shape-specific behavior.
Functions§
- allocate_
methods - Pre-allocate method indices so vtable globals can reference them via
ref.func. - collect_
object_ shapes - declared_
method_ funcs - Returns all method function indices; must be declared in the element section for
ref.functo be valid. - emit_
method_ bodies - emit_
method_ function_ entries - Must be called after all other function section entries so the pre-allocated indices match.
- emit_
vtable_ globals - field_
index - Payload-array index for a named field.
- needs_
host_ object_ to_ json_ adapter