Struct wasmtime_environ::ModuleEnvironment[][src]

pub struct ModuleEnvironment<'data, 'module> {
    pub isa: &'module TargetIsa,
    pub module: &'module mut Module,
    pub lazy: LazyContents<'data>,
}

Object containing the standalone environment information. To be passed after creation as argument to compile_module.

Fields

Compilation setting flags.

Module information.

References to information to be decoded later.

Methods

impl<'data, 'module> ModuleEnvironment<'data, 'module>
[src]

Allocates the enironment data structures with the given isa.

Translate the given wasm module data using this environment. This consumes the ModuleEnvironment with its mutable reference to the Module and produces a ModuleTranslation with an immutable reference to the Module (which has become fully populated).

Trait Implementations

impl<'data, 'module> ModuleEnvironment<'data> for ModuleEnvironment<'data, 'module>
[src]

This trait is useful for translate_module because it tells how to translate enironment-dependent wasm instructions. These functions should not be called by the user.

Return the name for the given function index.

Get the flags for the current compilation.

Declares a function signature to the environment.

Return the signature with the given index.

Declares a function import to the environment.

Return the number of imported funcs.

Declares the type (signature) of a local function in the module.

Return the signature index for the given function index.

Declares a global to the environment.

Return the global for the given global index.

Declares a table to the environment.

Fills a declared table with references to functions in the module.

Declares a memory to the environment

Fills a declared memory with bytes at module instantiation.

Declares a function export to the environment.

Declares a table export to the environment.

Declares a memory export to the environment.

Declares a global export to the environment.

Declares a start function.

Provides the contents of a function body.

Auto Trait Implementations

impl<'data, 'module> !Send for ModuleEnvironment<'data, 'module>

impl<'data, 'module> !Sync for ModuleEnvironment<'data, 'module>