Expand description
This module solely contains the actual interpretation loop that matches instructions, interpreting the WASM bytecode
ยงNote to Developer:
- There must be only imports and one
implwith one function (run) in it. - This module must only use
RuntimeErrorand neverError.
Modulesยง
- control ๐
- dispatch_
tables ๐ - memory ๐
- numeric ๐
- parametric ๐
- reference ๐
- table ๐
- variable ๐
- vector ๐
Macrosยง
Structsยง
- Args ๐
Enumsยง
- Interpreter
Loop Outcome - A non-error outcome of execution of the interpreter loop
Functionsยง
- calculate_
mem_ ๐address - data_
drop ๐ โ - Safety
- decrement_
fuel ๐ - do_
sidetable_ ๐control_ transfer - elem_
drop ๐ โ - Safety
- fc_
extensions ๐ โ - Safety
- fd_
extensions ๐ โ - Safety
- from_
lanes ๐ - memory_
init ๐ โ - Safety
- run ๐ โ
- Interprets wasm native functions. Wasm parameters and Wasm return values are passed on the stack.
Returns
Ok(ControlFlow::Continue(()))in case execution successfully terminates,Ok(Some(required_fuel))if execution terminates due to insufficient fuel, indicating how much fuel is required to resume withrequired_fuel, and[Error::RuntimeError]otherwise. - table_
init ๐ โ - Safety
- to_
lanes ๐ - unset ๐ โ
- Safety
Type Aliasesยง
- Instruction
Handler ๐Fn