pub fn compile_and_link_module<'data, 'module>(
    isa: &TargetIsa,
    translation: &ModuleTranslation<'data, 'module>,
) -> Result<Compilation, String> {
    debug_assert!(
        translation.module.start_func.is_none()
            || translation.module.start_func.unwrap() >= translation.module.imported_funcs.len(),
        "imported start functions not supported yet"
    );

    let (mut compilation, relocations) = compile_module(&translation, isa)?;

    // Apply relocations, now that we have virtual addresses for everything.
    relocate(&mut compilation, &relocations);

    Ok(compilation)
}
/// Executes a module that has been translated with the `wasmtime-environ` environment
/// implementation.
Executes a module that has been translated with the `wasmtime-environ` environment
implementation.
Executes a module that has been translated with the ` wasmtime - environ ` environment implementation .
pub fn compile_and_link_module<'data, 'module>(
    isa: &TargetIsa,
    translation: &ModuleTranslation<'data, 'module>,
) -> Result<Compilation, String> {
    debug_assert!(
        translation.module.start_func.is_none()
            || translation.module.start_func.unwrap() >= translation.module.imported_funcs.len(),
        "imported start functions not supported yet"
    );
    let (mut compilation, relocations) = compile_module(&translation, isa)?;
    // Apply relocations, now that we have virtual addresses for everything.
    relocate(&mut compilation, &relocations);
    Ok(compilation)
}
pub fn compile_and_link_module < ' data , ' module > ( isa : & TargetIsa , translation : & ModuleTranslation < ' data , ' module > , ) -> Result < Compilation , String > { debug_assert ! ( translation module start_func is_none ( ) translation module start_func unwrap ( ) translation module imported_funcs len ( ) " " ) ; let ( mut compilation , relocations ) = compile_module ( & translation , isa ) ? ; // Apply relocations, now that we have virtual addresses for everything. relocate ( & mut compilation , & relocations ) ; Ok ( compilation ) }
Executes a module that has been translated with the `wasmtime-environ` environment
implementation.
Executes a module that has been translated with the ` wasmtime - environ ` environment implementation .
isa
&TargetIsa
translation
&ModuleTranslation<'data, 'module>
isa
&TargetIsa
translation
&ModuleTranslation<'data, 'module>