wasmer_compiler_cranelift::translator

Module func_translator

Source
Expand description

Standalone WebAssembly to Cranelift IR translator.

This module defines the FuncTranslator type which can translate a single WebAssembly function to Cranelift IR guided by a FuncEnvironment which provides information about the WebAssembly module and the runtime environment.

Structs§

Functions§

  • cur_srcloc 🔒
    Get the current source location from a reader.
  • Declare count local variables of the same type, starting from next_local.
  • Declare local variables for the signature parameters that correspond to WebAssembly locals.
  • Parse the function body in reader.
  • Parse the local variable declarations that precede the function body.