Module runtime

Source
Expand description

This module contains executor state of the WASM code.

Re-exports§

pub use stack::RuntimeStack;
pub use stack::RuntimeStackFrame;
pub use stack::RuntimeStackOverflow;

Modules§

cryptography
Cryptography module containing hashing functions used internally by the execution engine
stack
Runtime stacks.

Structs§

Runtime
Represents the runtime properties of a WASM execution.

Enums§

PreprocessingError
An error emitted by the Wasm preprocessor.
WasmValidationError
An error emitted by the Wasm preprocessor.

Constants§

DEFAULT_BR_TABLE_MAX_SIZE
Maximum number of elements that can appear as immediate value to the br_table instruction.
DEFAULT_MAX_GLOBALS
Maximum number of global a module is allowed to declare.
DEFAULT_MAX_PARAMETER_COUNT
Maximum number of parameters a function can have.
DEFAULT_MAX_TABLE_SIZE
We only allow maximum of 4k function pointers in a table section.

Functions§

cycles_for_instruction
Returns the cost of executing a single instruction.
preprocess
Preprocesses Wasm bytes and returns a module.