pub struct TableInitialization {
pub initial_values: PrimaryMap<DefinedTableIndex, TableInitialValue>,
pub segments: Vec<TableSegment>,
}
Expand description
Table initialization data for all tables in the module.
Fields§
§initial_values: PrimaryMap<DefinedTableIndex, TableInitialValue>
Initial values for tables defined within the module itself.
This contains the initial values and initializers for tables defined
within a wasm, so excluding imported tables. This initializer can
represent null-initialized tables, element-initialized tables (e.g. with
the function-references proposal), or precomputed images of table
initialization. For example table initializers to a table that are all
in-bounds will get removed from segment
and moved into
initial_values
here.
segments: Vec<TableSegment>
Element segments present in the initial wasm module which are executed at instantiation time.
These element segments are iterated over during instantiation to apply
any segments that weren’t already moved into initial_values
above.