Module wasmer_compiler::translator::sections
source · 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§
- Parses the Data section of the wasm module.
- Parses the Element section of the wasm module.
- Parses the Export section of the wasm module.
- Parses the Function section of the wasm module.
- Parses the Global section of the wasm module.
- Parses the Import section of the wasm module.
- Parses the Memory section of the wasm module.
- Parses the Name section of the wasm module.
- Parses the Start section of the wasm module.
- Parses the Table section of the wasm module.
- Parses the Type section of the wasm module.
- Converts a wasmparser heap type to a Wasm Type.
- Converts a wasmparser ref type to a Wasm Type.
- Helper function translating wasmparser types to Wasm Type.