diff --git a/Cargo.toml b/Cargo.toml index bbbea71d06..24ebde951f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,10 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cranelift-codegen = "0.24.0" -cranelift-native = "0.24.0" -cranelift-entity = "0.24.0" -cranelift-wasm = "0.24.0" +cranelift-codegen = "0.25.0" +cranelift-native = "0.25.0" +cranelift-entity = "0.25.0" +cranelift-wasm = "0.25.0" wasmtime-environ = { path = "lib/environ" } wasmtime-execute = { path = "lib/execute" } wasmtime-obj = { path = "lib/obj" } diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 6132b43b78..238b9b8a3a 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -10,9 +10,9 @@ cargo-fuzz = true [dependencies] wasmtime-environ = { path = "../lib/environ" } wasmtime-execute = { path = "../lib/execute" } -cranelift-codegen = "0.24.0" -cranelift-wasm = "0.24.0" -cranelift-native = "0.24.0" +cranelift-codegen = "0.25.0" +cranelift-wasm = "0.25.0" +cranelift-native = "0.25.0" libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" } wasmparser = { version = "0.22.0", default-features = false } diff --git a/lib/environ/Cargo.toml b/lib/environ/Cargo.toml index 8de7232bdf..4debd42e60 100644 --- a/lib/environ/Cargo.toml +++ b/lib/environ/Cargo.toml @@ -10,9 +10,9 @@ license = "Apache-2.0 WITH LLVM-exception" readme = "README.md" [dependencies] -cranelift-codegen = "0.24.0" -cranelift-entity = "0.24.0" -cranelift-wasm = "0.24.0" +cranelift-codegen = "0.25.0" +cranelift-entity = "0.25.0" +cranelift-wasm = "0.25.0" memoffset = "0.2.1" [features] diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs index 122c8f84d0..f5c497546e 100644 --- a/lib/environ/src/environ.rs +++ b/lib/environ/src/environ.rs @@ -34,9 +34,6 @@ pub struct ModuleEnvironment<'data, 'module> { /// References to information to be decoded later. pub lazy: LazyContents<'data>, - - /// The ISA's target front-end configuration. - frontend_config: isa::TargetFrontendConfig, } impl<'data, 'module> ModuleEnvironment<'data, 'module> { @@ -46,7 +43,6 @@ impl<'data, 'module> ModuleEnvironment<'data, 'module> { isa, module, lazy: LazyContents::new(), - frontend_config: isa.frontend_config(), } } @@ -148,8 +144,8 @@ impl<'data, 'module> cranelift_wasm::ModuleEnvironment<'data> get_func_name(func_index) } - fn target_config(&self) -> &isa::TargetFrontendConfig { - &self.frontend_config + fn target_config(&self) -> isa::TargetFrontendConfig { + self.isa.frontend_config() } fn declare_signature(&mut self, sig: &ir::Signature) { @@ -191,6 +187,10 @@ impl<'data, 'module> cranelift_wasm::ModuleEnvironment<'data> self.module.functions[func_index] } + fn declare_global_import(&mut self, _global: Global, _module: &str, _field: &str) { + unimplemented!("imported globals"); + } + fn declare_global(&mut self, global: Global) { self.module.globals.push(global); } @@ -199,6 +199,10 @@ impl<'data, 'module> cranelift_wasm::ModuleEnvironment<'data> &self.module.globals[global_index] } + fn declare_table_import(&mut self, _table: Table, _module: &str, _field: &str) { + unimplemented!("imported tables"); + } + fn declare_table(&mut self, table: Table) { self.module.tables.push(table); } @@ -219,6 +223,10 @@ impl<'data, 'module> cranelift_wasm::ModuleEnvironment<'data> }); } + fn declare_memory_import(&mut self, _memory: Memory, _module: &str, _field: &str) { + unimplemented!("imported memories"); + } + fn declare_memory(&mut self, memory: Memory) { self.module.memories.push(memory); } diff --git a/lib/execute/Cargo.toml b/lib/execute/Cargo.toml index 6938ebf9bf..3d32771bf8 100644 --- a/lib/execute/Cargo.toml +++ b/lib/execute/Cargo.toml @@ -10,9 +10,9 @@ license = "Apache-2.0 WITH LLVM-exception" readme = "README.md" [dependencies] -cranelift-codegen = "0.24.0" -cranelift-entity = "0.24.0" -cranelift-wasm = "0.24.0" +cranelift-codegen = "0.25.0" +cranelift-entity = "0.25.0" +cranelift-wasm = "0.25.0" region = "1.0.0" wasmtime-environ = { path = "../environ" } memmap = "0.7.0" diff --git a/lib/obj/Cargo.toml b/lib/obj/Cargo.toml index e64e0eb415..53f8fec53d 100644 --- a/lib/obj/Cargo.toml +++ b/lib/obj/Cargo.toml @@ -8,7 +8,7 @@ categories = ["wasm"] license = "Apache-2.0 WITH LLVM-exception" [dependencies] -cranelift-codegen = "0.24.0" -cranelift-entity = "0.24.0" +cranelift-codegen = "0.25.0" +cranelift-entity = "0.25.0" wasmtime-environ = { path = "../environ" } faerie = "0.6.0"