Update cranelift, faerie, target-lexicon and wasmparser deps
This commit is contained in:
committed by
Dan Gohman
parent
e3c021cc59
commit
fb9d6061e4
@@ -22,8 +22,8 @@ name = "wasm2obj"
|
|||||||
path = "src/wasm2obj.rs"
|
path = "src/wasm2obj.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-native = "0.30.0"
|
cranelift-native = "0.32.0"
|
||||||
wasmtime-debug = { path = "wasmtime-debug" }
|
wasmtime-debug = { path = "wasmtime-debug" }
|
||||||
wasmtime-environ = { path = "wasmtime-environ" }
|
wasmtime-environ = { path = "wasmtime-environ" }
|
||||||
wasmtime-runtime = { path = "wasmtime-runtime" }
|
wasmtime-runtime = { path = "wasmtime-runtime" }
|
||||||
@@ -36,8 +36,8 @@ wasi-common = { git = "https://github.com/CraneStation/wasi-common" }
|
|||||||
docopt = "1.0.1"
|
docopt = "1.0.1"
|
||||||
serde = "1.0.75"
|
serde = "1.0.75"
|
||||||
serde_derive = "1.0.75"
|
serde_derive = "1.0.75"
|
||||||
faerie = "0.9.1"
|
faerie = "0.10.1"
|
||||||
target-lexicon = { version = "0.3.0", default-features = false }
|
target-lexicon = { version = "0.4.0", default-features = false }
|
||||||
pretty_env_logger = "0.3.0"
|
pretty_env_logger = "0.3.0"
|
||||||
file-per-thread-logger = "0.1.1"
|
file-per-thread-logger = "0.1.1"
|
||||||
wabt = "0.7"
|
wabt = "0.7"
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ cargo-fuzz = true
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
wasmtime-environ = { path = "../wasmtime-environ" }
|
wasmtime-environ = { path = "../wasmtime-environ" }
|
||||||
wasmtime-jit = { path = "../wasmtime-jit" }
|
wasmtime-jit = { path = "../wasmtime-jit" }
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
cranelift-native = "0.30.0"
|
cranelift-native = "0.32.0"
|
||||||
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" }
|
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" }
|
||||||
wasmparser = { version = "0.29.2", default-features = false }
|
wasmparser = { version = "0.32.1", default-features = false }
|
||||||
binaryen = "0.5.0"
|
binaryen = "0.5.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
gimli = "0.17.0"
|
gimli = "0.17.0"
|
||||||
wasmparser = { version = "0.29.0" }
|
wasmparser = { version = "0.32.1" }
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
faerie = "0.9.1"
|
faerie = "0.10.1"
|
||||||
wasmtime-environ = { path = "../wasmtime-environ", default-features = false }
|
wasmtime-environ = { path = "../wasmtime-environ", default-features = false }
|
||||||
target-lexicon = { version = "0.3.0", default-features = false }
|
target-lexicon = { version = "0.4.0", default-features = false }
|
||||||
failure = { version = "0.1.3", default-features = false }
|
failure = { version = "0.1.3", default-features = false }
|
||||||
failure_derive = { version = "0.1.3", default-features = false }
|
failure_derive = { version = "0.1.3", default-features = false }
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use gimli::write::{
|
|||||||
};
|
};
|
||||||
use gimli::RunTimeEndian;
|
use gimli::RunTimeEndian;
|
||||||
|
|
||||||
use faerie::artifact::Decl;
|
use faerie::artifact::{Decl, SectionKind};
|
||||||
use faerie::*;
|
use faerie::*;
|
||||||
|
|
||||||
struct DebugReloc {
|
struct DebugReloc {
|
||||||
@@ -21,7 +21,7 @@ macro_rules! decl_section {
|
|||||||
$artifact
|
$artifact
|
||||||
.declare_with(
|
.declare_with(
|
||||||
SectionId::$section.name(),
|
SectionId::$section.name(),
|
||||||
Decl::debug_section(),
|
Decl::section(SectionKind::Debug),
|
||||||
$name.0.writer.into_vec(),
|
$name.0.writer.into_vec(),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ readme = "README.md"
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
lightbeam = { path = "../lightbeam", optional = true }
|
lightbeam = { path = "../lightbeam", optional = true }
|
||||||
failure = { version = "0.1.3", default-features = false }
|
failure = { version = "0.1.3", default-features = false }
|
||||||
failure_derive = { version = "0.1.3", default-features = false }
|
failure_derive = { version = "0.1.3", default-features = false }
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
|
|||||||
self.target_config
|
self.target_config
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_table(&mut self, func: &mut ir::Function, index: TableIndex) -> ir::Table {
|
fn make_table(&mut self, func: &mut ir::Function, index: TableIndex) -> WasmResult<ir::Table> {
|
||||||
let pointer_type = self.pointer_type();
|
let pointer_type = self.pointer_type();
|
||||||
|
|
||||||
let (ptr, base_offset, current_elements_offset) = {
|
let (ptr, base_offset, current_elements_offset) = {
|
||||||
@@ -394,16 +394,16 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
func.create_table(ir::TableData {
|
Ok(func.create_table(ir::TableData {
|
||||||
base_gv,
|
base_gv,
|
||||||
min_size: Uimm64::new(0),
|
min_size: Uimm64::new(0),
|
||||||
bound_gv,
|
bound_gv,
|
||||||
element_size: Uimm64::new(element_size),
|
element_size: Uimm64::new(element_size),
|
||||||
index_type: I32,
|
index_type: I32,
|
||||||
})
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_heap(&mut self, func: &mut ir::Function, index: MemoryIndex) -> ir::Heap {
|
fn make_heap(&mut self, func: &mut ir::Function, index: MemoryIndex) -> WasmResult<ir::Heap> {
|
||||||
let pointer_type = self.pointer_type();
|
let pointer_type = self.pointer_type();
|
||||||
|
|
||||||
let (ptr, base_offset, current_length_offset) = {
|
let (ptr, base_offset, current_length_offset) = {
|
||||||
@@ -473,16 +473,20 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
|
|||||||
global_type: pointer_type,
|
global_type: pointer_type,
|
||||||
readonly: readonly_base,
|
readonly: readonly_base,
|
||||||
});
|
});
|
||||||
func.create_heap(ir::HeapData {
|
Ok(func.create_heap(ir::HeapData {
|
||||||
base: heap_base,
|
base: heap_base,
|
||||||
min_size: 0.into(),
|
min_size: 0.into(),
|
||||||
offset_guard_size,
|
offset_guard_size,
|
||||||
style: heap_style,
|
style: heap_style,
|
||||||
index_type: I32,
|
index_type: I32,
|
||||||
})
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_global(&mut self, func: &mut ir::Function, index: GlobalIndex) -> GlobalVariable {
|
fn make_global(
|
||||||
|
&mut self,
|
||||||
|
func: &mut ir::Function,
|
||||||
|
index: GlobalIndex,
|
||||||
|
) -> WasmResult<GlobalVariable> {
|
||||||
let pointer_type = self.pointer_type();
|
let pointer_type = self.pointer_type();
|
||||||
|
|
||||||
let (ptr, offset) = {
|
let (ptr, offset) = {
|
||||||
@@ -503,28 +507,36 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
GlobalVariable::Memory {
|
Ok(GlobalVariable::Memory {
|
||||||
gv: ptr,
|
gv: ptr,
|
||||||
offset: offset.into(),
|
offset: offset.into(),
|
||||||
ty: self.module.globals[index].ty,
|
ty: self.module.globals[index].ty,
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_indirect_sig(&mut self, func: &mut ir::Function, index: SignatureIndex) -> ir::SigRef {
|
fn make_indirect_sig(
|
||||||
func.import_signature(self.module.signatures[index].clone())
|
&mut self,
|
||||||
|
func: &mut ir::Function,
|
||||||
|
index: SignatureIndex,
|
||||||
|
) -> WasmResult<ir::SigRef> {
|
||||||
|
Ok(func.import_signature(self.module.signatures[index].clone()))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_direct_func(&mut self, func: &mut ir::Function, index: FuncIndex) -> ir::FuncRef {
|
fn make_direct_func(
|
||||||
|
&mut self,
|
||||||
|
func: &mut ir::Function,
|
||||||
|
index: FuncIndex,
|
||||||
|
) -> WasmResult<ir::FuncRef> {
|
||||||
let sigidx = self.module.functions[index];
|
let sigidx = self.module.functions[index];
|
||||||
let signature = func.import_signature(self.module.signatures[sigidx].clone());
|
let signature = func.import_signature(self.module.signatures[sigidx].clone());
|
||||||
let name = get_func_name(index);
|
let name = get_func_name(index);
|
||||||
func.import_function(ir::ExtFuncData {
|
Ok(func.import_function(ir::ExtFuncData {
|
||||||
name,
|
name,
|
||||||
signature,
|
signature,
|
||||||
// We currently allocate all code segments independently, so nothing
|
// We currently allocate all code segments independently, so nothing
|
||||||
// is colocated.
|
// is colocated.
|
||||||
colocated: false,
|
colocated: false,
|
||||||
})
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn translate_call_indirect(
|
fn translate_call_indirect(
|
||||||
|
|||||||
@@ -12,19 +12,19 @@ readme = "README.md"
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
cranelift-frontend = "0.30.0"
|
cranelift-frontend = "0.32.0"
|
||||||
wasmtime-environ = { path = "../wasmtime-environ", default-features = false }
|
wasmtime-environ = { path = "../wasmtime-environ", default-features = false }
|
||||||
wasmtime-runtime = { path = "../wasmtime-runtime", default-features = false }
|
wasmtime-runtime = { path = "../wasmtime-runtime", default-features = false }
|
||||||
wasmtime-debug = { path = "../wasmtime-debug", default-features = false }
|
wasmtime-debug = { path = "../wasmtime-debug", default-features = false }
|
||||||
region = "2.0.0"
|
region = "2.0.0"
|
||||||
failure = { version = "0.1.3", default-features = false }
|
failure = { version = "0.1.3", default-features = false }
|
||||||
failure_derive = { version = "0.1.3", default-features = false }
|
failure_derive = { version = "0.1.3", default-features = false }
|
||||||
target-lexicon = { version = "0.3.0", default-features = false }
|
target-lexicon = { version = "0.4.0", default-features = false }
|
||||||
hashbrown = { version = "0.1.8", optional = true }
|
hashbrown = { version = "0.1.8", optional = true }
|
||||||
wasmparser = "0.29.2"
|
wasmparser = "0.32.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ impl Context {
|
|||||||
enable_reference_types: false,
|
enable_reference_types: false,
|
||||||
enable_bulk_memory: false,
|
enable_bulk_memory: false,
|
||||||
enable_simd: false,
|
enable_simd: false,
|
||||||
|
enable_multi_value: false,
|
||||||
},
|
},
|
||||||
mutable_global_imports: true,
|
mutable_global_imports: true,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ readme = "README.md"
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
wasmtime-environ = { path = "../wasmtime-environ" }
|
wasmtime-environ = { path = "../wasmtime-environ" }
|
||||||
faerie = "0.9.1"
|
faerie = "0.10.1"
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ readme = "README.md"
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
wasmtime-environ = { path = "../wasmtime-environ", default-features = false }
|
wasmtime-environ = { path = "../wasmtime-environ", default-features = false }
|
||||||
region = "2.0.0"
|
region = "2.0.0"
|
||||||
lazy_static = "1.2.0"
|
lazy_static = "1.2.0"
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ readme = "README.md"
|
|||||||
wasmtime-runtime = { path = "../wasmtime-runtime" }
|
wasmtime-runtime = { path = "../wasmtime-runtime" }
|
||||||
wasmtime-environ = { path = "../wasmtime-environ" }
|
wasmtime-environ = { path = "../wasmtime-environ" }
|
||||||
wasmtime-jit = { path = "../wasmtime-jit" }
|
wasmtime-jit = { path = "../wasmtime-jit" }
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
target-lexicon = "0.3.0"
|
target-lexicon = "0.4.0"
|
||||||
log = { version = "0.4.6", default-features = false }
|
log = { version = "0.4.6", default-features = false }
|
||||||
libc = "0.2.50"
|
libc = "0.2.50"
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ wasmtime-runtime = { path = "../wasmtime-runtime" }
|
|||||||
wasmtime-environ = { path = "../wasmtime-environ" }
|
wasmtime-environ = { path = "../wasmtime-environ" }
|
||||||
wasmtime-jit = { path = "../wasmtime-jit" }
|
wasmtime-jit = { path = "../wasmtime-jit" }
|
||||||
wasi-common = { git = "https://github.com/CraneStation/wasi-common" }
|
wasi-common = { git = "https://github.com/CraneStation/wasi-common" }
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
target-lexicon = "0.3.0"
|
target-lexicon = "0.4.0"
|
||||||
log = { version = "0.4.6", default-features = false }
|
log = { version = "0.4.6", default-features = false }
|
||||||
|
|
||||||
[badges]
|
[badges]
|
||||||
|
|||||||
@@ -12,15 +12,15 @@ readme = "README.md"
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cranelift-codegen = "0.30.0"
|
cranelift-codegen = "0.32.0"
|
||||||
cranelift-native = "0.30.0"
|
cranelift-native = "0.32.0"
|
||||||
cranelift-wasm = "0.30.0"
|
cranelift-wasm = "0.32.0"
|
||||||
cranelift-entity = "0.30.0"
|
cranelift-entity = "0.32.0"
|
||||||
wasmtime-jit = { path = "../wasmtime-jit" }
|
wasmtime-jit = { path = "../wasmtime-jit" }
|
||||||
wasmtime-runtime = { path = "../wasmtime-runtime" }
|
wasmtime-runtime = { path = "../wasmtime-runtime" }
|
||||||
wasmtime-environ = { path = "../wasmtime-environ" }
|
wasmtime-environ = { path = "../wasmtime-environ" }
|
||||||
wabt = "0.7"
|
wabt = "0.7"
|
||||||
target-lexicon = "0.3.0"
|
target-lexicon = "0.4.0"
|
||||||
failure = { version = "0.1.3", default-features = false }
|
failure = { version = "0.1.3", default-features = false }
|
||||||
failure_derive = { version = "0.1.3", default-features = false }
|
failure_derive = { version = "0.1.3", default-features = false }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user