Expand description
WASM Binary Decoder - Converts wasmparser operators to WasmOp sequences
This module bridges the gap between parsed WASM binaries and any backend. It extracts function bodies and converts wasmparser operators to our internal WasmOp format.
Structs§
- Decoded
Module - Decoded WASM module with functions and memory
- Function
Ops - Decoded function with its WasmOp sequence
- Import
Entry - A WASM import entry with full metadata
- Wasm
Global - A WASM global’s declaration — its initial value and mutability (#237).
Needed so the native-pointer ABI can recognize a global whose initializer is
a linear-memory address (e.g.
$__stack_pointer = 65536) and make it__synth_wasm_data-relative, rather than reading it from an R9 globals table the self-contained drop-in object can’t rely on. - Wasm
Memory - WASM linear memory specification
Enums§
- Import
Kind - Kind of a WASM import
Functions§
- decode_
wasm_ functions - Decode a WASM binary and extract all function bodies as WasmOp sequences
- decode_
wasm_ module - Decode a WASM binary and extract functions, memory, and data segments