pub struct DummyFuncEnvironment<'dummy_environment> {
    pub mod_info: &'dummy_environment DummyModuleInfo,
    pub heaps: PrimaryMap<Heap, HeapData>,
    /* private fields */
}
Expand description

The FuncEnvironment implementation for use by the DummyEnvironment.

Fields§

§mod_info: &'dummy_environment DummyModuleInfo

This function environment’s module info.

§heaps: PrimaryMap<Heap, HeapData>

Heaps we have created to implement Wasm linear memories.

Implementations§

Construct a new DummyFuncEnvironment.

Create a signature for sigidx amended with a vmctx argument after the standard wasm arguments.

Trait Implementations§

Set up the necessary preamble definitions in func to access the global variable identified by index. Read more
Get the heaps for this function environment. Read more
Set up the necessary preamble definitions in func to access the linear memory identified by index. Read more
Set up the necessary preamble definitions in func to access the table identified by index. Read more
Set up a signature definition in the preamble of func that can be used for an indirect call with signature index. Read more
Set up an external function definition in the preamble of func that can be used to directly call the function index. Read more
Optional callback for the FunctionEnvironment performing this translation to maintain internal state or prepare custom state for the operator to translate
Optional callback for the FunctionEnvironment performing this translation to maintain internal state or finalize custom state for the operator that was translated
Optional callback for the FunctionEnvironment performing this translation to perform work after the function body is translated.
Translate a call_indirect WebAssembly instruction at pos. Read more
Translate a call WebAssembly instruction at pos. Read more
Translate a memory.grow WebAssembly instruction. Read more
Translates a memory.size WebAssembly instruction. Read more
Translate a memory.copy WebAssembly instruction. Read more
Translate a memory.fill WebAssembly instruction. Read more
Translate a memory.init WebAssembly instruction. Read more
Translate a data.drop WebAssembly instruction.
Translate a table.size WebAssembly instruction.
Translate a table.grow WebAssembly instruction.
Translate a table.get WebAssembly instruction.
Translate a table.set WebAssembly instruction.
Translate a table.copy WebAssembly instruction.
Translate a table.fill WebAssembly instruction.
Translate a table.init WebAssembly instruction.
Translate a elem.drop WebAssembly instruction.
Translate a ref.func WebAssembly instruction.
Translate a global.get WebAssembly instruction at pos for a global that is custom.
Translate a global.set WebAssembly instruction at pos for a global that is custom.
Translate an i32.atomic.wait or i64.atomic.wait WebAssembly instruction. The index provided identifies the linear memory containing the value to wait on, and heap is the heap reference returned by make_heap for the same index. Whether the waited-on value is 32- or 64-bit can be determined by examining the type of expected, which must be only I32 or I64. Read more
Translate an atomic.notify WebAssembly instruction. The index provided identifies the linear memory containing the value to wait on, and heap is the heap reference returned by make_heap for the same index. Read more
Returns the target ISA’s condition to check for unsigned addition overflowing.
Is the given parameter of the given function a wasm-level parameter, as opposed to a hidden parameter added for use by the implementation?
Is the given return of the given function a wasm-level parameter, as opposed to a hidden parameter added for use by the implementation?
Called after the locals for a function have been parsed, and the number of variables defined by this function is provided.
Translate a ref.null T WebAssembly instruction. Read more
Translate a ref.is_null WebAssembly instruction. Read more
Emit code at the beginning of every wasm loop. Read more
Optional callback for the FuncEnvironment performing this translation to maintain, prepare, or finalize custom, internal state when we statically determine that a Wasm memory access will unconditionally trap, rendering the rest of the block unreachable. Called just before the unconditional trap is emitted.
Optional callback for the FunctionEnvironment performing this translation to perform work before the function body is translated.
Get the information needed to produce Cranelift IR for the given target.
Whether to enable Spectre mitigations for heap accesses.
Get the Cranelift integer type to use for native pointers. Read more
Get the size of a native pointer, in bytes.
Get the Cranelift reference type to use for the given Wasm reference type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.