Skip to main content

Module instr

Module instr 

Source
Expand description

Instruction decoding.

Decodes a subset of WebAssembly instructions sufficient to start Phase 1 validation work. Function bodies continue to store raw bytes; decoded instructions are produced on demand from CodeBody.

See Spec §5.4.

Structs§

DecodedInstr
A decoded instruction paired with its absolute byte offset in the module.

Enums§

Instr
A decoded WebAssembly instruction.

Functions§

decode_instr
Decode a single instruction.
decode_instr_sequence
Decode a function-body instruction sequence until its terminating end.
decode_instr_sequence_with_offsets
Decode a function-body instruction sequence until its terminating end, preserving offsets.
decode_instr_with_offset
Decode a single instruction with its absolute module offset.