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.
Functionsยง
- calculate_
mem_ ๐address - data_
drop ๐ - do_
sidetable_ ๐control_ transfer - elem_
drop ๐ - from_
lanes ๐ - memory_
init ๐ - run ๐
- Interprets wasm native functions. Wasm parameters and Wasm return values are passed on the stack.
Returns
Ok(None)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 ๐ - to_
lanes ๐