[][src]Trait wasmtime_environ::Compiler

pub trait Compiler: Send + Sync {
    fn compile_function(
        &self,
        translation: &ModuleTranslation<'_>,
        index: DefinedFuncIndex,
        data: &FunctionBodyData<'_>,
        isa: &dyn TargetIsa
    ) -> 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
) -> Result<CompiledFunction, CompileError>

Compile a function with the given TargetIsa.

Loading content...

Implementors

Loading content...