Module interpreter_loop

Module interpreter_loop 

Source
Expand description

This module solely contains the actual interpretation loop that matches instructions, interpreting the WASM bytecode

ยงNote to Developer:

  1. There must be only imports and one impl with one function (run) in it.
  2. This module must only use RuntimeError and never Error.

Modulesยง

control ๐Ÿ”’
dispatch_tables ๐Ÿ”’
memory ๐Ÿ”’
numeric ๐Ÿ”’
parametric ๐Ÿ”’
reference ๐Ÿ”’
table ๐Ÿ”’
variable ๐Ÿ”’
vector ๐Ÿ”’

Macrosยง

define_instruction_fn ๐Ÿ”’

Structsยง

Args ๐Ÿ”’

Enumsยง

InterpreterLoopOutcome
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 with required_fuel, and [Error::RuntimeError] otherwise.
table_init ๐Ÿ”’ โš 
Safety
to_lanes ๐Ÿ”’
unset ๐Ÿ”’ โš 
Safety

Type Aliasesยง

InstructionHandlerFn ๐Ÿ”’