Trait wasmtime_environ::Compiler
source · [−]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>;
}
Expand description
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>
fn compile_function(
&self,
translation: &ModuleTranslation<'_>,
index: DefinedFuncIndex,
data: FunctionBodyData<'_>,
isa: &dyn TargetIsa,
tunables: &Tunables,
types: &TypeTables
) -> Result<CompiledFunction, CompileError>
Compile a function with the given TargetIsa
.