Move all trampoline compilation to wasmtime-cranelift (#3176)
* Move all trampoline compilation to `wasmtime-cranelift` This commit moves compilation of all the trampolines used in wasmtime behind the `Compiler` trait object to live in `wasmtime-cranelift`. The long-term goal of this is to enable depending on cranelift *only* from the `wasmtime-cranelift` crate, so by moving these dependencies we should make that a little more flexible. * Fix windows build
This commit is contained in:
@@ -1277,7 +1277,7 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
|
||||
index: TypeIndex,
|
||||
) -> WasmResult<ir::SigRef> {
|
||||
let index = self.module.types[index].unwrap_function();
|
||||
let sig = crate::indirect_signature(self.isa, self.types, index);
|
||||
let sig = crate::indirect_signature(self.isa, &self.types.wasm_signatures[index]);
|
||||
Ok(func.import_signature(sig))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user