Skip to main content

Module runtime

Module runtime 

Source
Expand description

Minimal register-IR execution core.

This is the first Phase 2 runtime slice: execute straight-line lowered IR independently from validation. Broader control flow, calls, memory, tables, traps, and host integration are added in later checkpoints.

Re-exports§

pub use host::HostFunction;

Modules§

gpu
Optional GPU backend slot for bulk SIMD offload.
host
Host functions: native callables registered with a Store that WASM modules can import and call.
verify
Numerical correctness verification for GPU offload kernels (Layer 2).

Structs§

Imports
Entities provided by the host to satisfy a module’s state imports (memories, globals, tables), resolved eagerly at instantiation. Function imports resolve separately and lazily via Store::register_host_func.
RuntimeError
Runtime execution error.
Store
Mutable state of an instantiated module.
Table
A WebAssembly table instance.

Enums§

RuntimeErrorKind
Specific runtime execution failures.
RuntimeTrap
WebAssembly runtime traps surfaced by the interpreter.
Value
A runtime WebAssembly value.

Constants§

PAGE_SIZE
Size of one WebAssembly memory page in bytes.

Functions§

execute_export
Execute an exported lowered function by name.
execute_func
Execute a single lowered function with positional arguments.

Type Aliases§

LinkGroup
A link group: instances that can reach each other’s funcref values by instance id. Created per link cluster (e.g. one per spec test file).