Module wasm::execution::interpreter_loop
source · 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
impl
with one function (run
) in it. - This module must not use the
Error
enum. - Instead, only the
RuntimeError
enum shall be used- not to be confused with the
Error
enum’sError::RuntimeError
variant, which as per 2., we don not want
- not to be confused with the
Functions§
- run 🔒Interprets a functions. Parameters and return values are passed on the stack.