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ยง

FuncTranslator
WebAssembly to Cranelift IR function translator.

Functionsยง

cur_srcloc ๐Ÿ”’
Get the current source location from a reader.
declare_locals ๐Ÿ”’
Declare count local variables of the same type, starting from next_local.
declare_wasm_parameters ๐Ÿ”’
Declare local variables for the signature parameters that correspond to WebAssembly locals.
parse_function_body ๐Ÿ”’
Parse the function body in reader.
parse_local_decls ๐Ÿ”’
Parse the local variable declarations that precede the function body.