Update to Cranelift 0.28.0.

Also region 2.0.0 and bindgen 0.47.1.
This commit is contained in:
Dan Gohman
2019-01-23 00:08:45 -08:00
parent 2ac0ceda14
commit 78f89f67a3
5 changed files with 7 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ use cranelift_wasm::{
GlobalIndex, Memory, MemoryIndex, SignatureIndex, Table, TableIndex,
};
use indexmap::IndexMap;
use std::boxed::Box;
use std::string::String;
use std::vec::Vec;
@@ -21,7 +22,7 @@ pub struct TableElements {
/// The offset to add to the base.
pub offset: usize,
/// The values to write into the table elements.
pub elements: Vec<FuncIndex>,
pub elements: Box<[FuncIndex]>,
}
/// An entity to export.

View File

@@ -153,7 +153,7 @@ impl<'data> cranelift_wasm::ModuleEnvironment<'data> for ModuleEnvironment<'data
table_index,
base,
offset,
elements: elements.to_vec(),
elements,
});
}

View File

@@ -18,7 +18,7 @@ cranelift-wasm = "0.28.0"
cranelift-frontend = "0.28.0"
wasmtime-environ = { path = "../environ", default-features = false }
wasmtime-runtime = { path = "../runtime", default-features = false }
region = "1.0.0"
region = "2.0.0"
failure = { version = "0.1.3", default-features = false }
failure_derive = { version = "0.1.3", default-features = false }
target-lexicon = { version = "0.2.0", default-features = false }

View File

@@ -16,7 +16,7 @@ cranelift-codegen = "0.28.0"
cranelift-entity = "0.28.0"
cranelift-wasm = "0.28.0"
wasmtime-environ = { path = "../environ", default-features = false }
region = "1.0.0"
region = "2.0.0"
lazy_static = "1.2.0"
libc = { version = "0.2.44", default-features = false }
errno = "0.2.4"
@@ -31,7 +31,7 @@ winapi = { version = "0.3.6", features = ["winbase", "memoryapi"] }
[build-dependencies]
cmake = "0.1.35"
bindgen = "0.46.0"
bindgen = "0.47.1"
regex = "1.0.6"
[features]

View File

@@ -117,7 +117,7 @@ impl LinearMemory {
new_mmap.as_mut_slice()[..copy_len].copy_from_slice(&self.mmap.as_slice()[..copy_len]);
self.mmap = new_mmap;
} else {
} else if delta_bytes > 0 {
// Make the newly allocated pages accessible.
self.mmap.make_accessible(prev_bytes, delta_bytes).ok()?;
}