Struct cretonne_wasm::DummyEnvironment[][src]

pub struct DummyEnvironment {
    pub info: DummyModuleInfo,
    pub func_bytecode_sizes: Vec<usize>,
    // some fields omitted
}

This ModuleEnvironment implementation is a "naïve" one, doing essentially nothing and emitting placeholders when forced to. Don't try to execute code translated for this environment, essentially here for translation debug purposes.

Fields

Module information.

Vector of wasm bytecode size for each function.

Methods

impl DummyEnvironment
[src]

Allocates the data structures with default flags.

Allocates the data structures with the given flags.

Return a DummyFuncEnvironment for translating functions within this DummyEnvironment.

Trait Implementations

impl<'data> ModuleEnvironment<'data> for DummyEnvironment
[src]

Get the flags for the current compilation.

Return the name for the given function index.

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