Expand description
The codegen module provides common functions and data structures used by multiple backends during the code generation process.
Structs§
- Breakpoint
Info - Information for a breakpoint
- Debug
Metadata - Useful information for debugging gathered by compiling a Wasm module.
- Event
Sink - A sink for parse events.
- Middleware
Chain - A container for a chain of middlewares.
- Simple
Streaming Compiler Gen - A simple generator for a
StreamingCompiler
. - Streaming
Compiler - A streaming compiler which is designed to generated code for a module based on a stream of wasm parser events.
- Wasm
Span - Type representing an area of Wasm code in bytes as an offset from the beginning of the code section.
Enums§
- Event
- An event generated during parsing of a wasm binary
- Internal
Event - Kinds of
InternalEvent
s created during parsing.
Traits§
- Function
Code Generator - The function-scope code generator trait.
- Function
Middleware - A trait that represents the signature required to implement middleware for a function.
- Module
Code Generator - A trait that represents the functions needed to be implemented to generate code for a module.
Functions§
- validating_
parser_ config - Create a new
ValidatingParserConfig
with the given features.
Type Aliases§
- Breakpoint
Handler - A type that defines a function pointer, which is called when breakpoints occur.
- Breakpoint
Map - Maps instruction pointers to their breakpoint handlers.