Trait wasmtime_environ::Compiler[][src]

pub trait Compiler: Send + Sync {
    fn compile_function(
        &self,
        translation: &ModuleTranslation<'_>,
        index: DefinedFuncIndex,
        data: FunctionBodyData<'_>,
        isa: &dyn TargetIsa,
        tunables: &Tunables,
        types: &TypeTables
    ) -> Result<CompiledFunction, CompileError>; }

An implementation of a compiler from parsed WebAssembly module to native code.

Required methods

fn compile_function(
    &self,
    translation: &ModuleTranslation<'_>,
    index: DefinedFuncIndex,
    data: FunctionBodyData<'_>,
    isa: &dyn TargetIsa,
    tunables: &Tunables,
    types: &TypeTables
) -> Result<CompiledFunction, CompileError>
[src]

Compile a function with the given TargetIsa.

Loading content...

Implementors

Loading content...