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§
- Preprocessing
Error - An error emitted by the Wasm preprocessor.
- Wasm
Validation Error - 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.