Function cranelift_wasm::translate_module[][src]

pub fn translate_module<'data>(
    data: &'data [u8],
    environ: &mut ModuleEnvironment<'data>
) -> WasmResult<()>

Translate a sequence of bytes forming a valid Wasm binary into a list of valid Cranelift IR Function. Returns the functions and also the mappings for imported functions and signature between the indexes in the wasm module and the indexes inside each functions.