Expand description
Helper functions to gather information for each of the non-function sections of a WebAssembly module.
The code of these helper functions is straightforward since they only read metadata about linear memories, tables, globals, etc. and store them for later use.
The special case of the initialize expressions for table elements offsets or global variables is handled, according to the semantics of WebAssembly, to only specific expressions that are interpreted on the fly.
Functionsยง
- parse_
data_ section - Parses the Data section of the wasm module.
- parse_
element_ section - Parses the Element section of the wasm module.
- parse_
export_ section - Parses the Export section of the wasm module.
- parse_
function_ section - Parses the Function section of the wasm module.
- parse_
global_ section - Parses the Global section of the wasm module.
- parse_
import_ section - Parses the Import section of the wasm module.
- parse_
memory_ section - Parses the Memory section of the wasm module.
- parse_
name_ section - Parses the Name section of the wasm module.
- parse_
start_ section - Parses the Start section of the wasm module.
- parse_
table_ section - Parses the Table section of the wasm module.
- parse_
tag_ section - Parser the Tag section of the wasm module.
- parse_
type_ section - Parses the Type section of the wasm module.
- read_
elems ๐ - wpheaptype_
to_ type - Converts a wasmparser heap type to a Wasm Type.
- wpreftype_
to_ type - Converts a wasmparser ref type to a Wasm Type.
- wptype_
to_ type - Helper function translating wasmparser types to Wasm Type.