commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
a08444c4c67904dd8a9ee7086baead5f45681112 | data-pup | 2019-06-27T19:44:41 | fix sections translator doc comment | diff --git a/cranelift/wasm/src/sections_translator.rs b/cranelift/wasm/src/sections_translator.rs
index e3dacc1b3..1236e943d 100644
--- a/cranelift/wasm/src/sections_translator.rs
+++ b/cranelift/wasm/src/sections_translator.rs
@@ -1,8 +1,8 @@
//! Helper functions to gather information for each of the non-function se... | 1 | 2 | 2 |
656112d00b206c4ba0b49353d5dabaeab8987f22 | Jakub Konka | 2019-06-25T10:19:42 | Patch wasmtime-wasi to use this wasi-common version | diff --git a/Cargo.toml b/Cargo.toml
index 8a2c7f17d..1f1b39fae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,12 +27,16 @@ winapi = { version = "0.3", features=["std", "handleapi", "processthreadsapi", "
wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime" }
wasmtime-environ = { git = "https://gith... | 3 | 5 | 1,161 |
b9c04d431f04249a7661c6e6d0b47ebb19b77e01 | Jakub Konka | 2019-06-23T20:08:49 | Move workspace creation outside of runtime instantiation | diff --git a/tests/misc_tests.rs b/tests/misc_tests.rs
index 39c4cc0b2..c7747f03f 100644
--- a/tests/misc_tests.rs
+++ b/tests/misc_tests.rs
@@ -1,78 +1,102 @@
mod runtime;
+mod utils;
+
+use std::path::Path;
+
+fn run_test_with_workspace<P: AsRef<Path>>(path: P) -> Result<(), String> {
+ // Load in the wasm testca... | 3 | 67 | 28 |
ae63b33a234750beda6561dbc5e9e3b47bd40712 | Jakub Konka | 2019-06-20T18:10:59 | Refactor | diff --git a/tests/misc_tests.rs b/tests/misc_tests.rs
index 70e677fb6..23e49b984 100644
--- a/tests/misc_tests.rs
+++ b/tests/misc_tests.rs
@@ -1,66 +1,66 @@
mod runtime;
#[test]
-fn sched_yield() {
+fn sched_yield() -> Result<(), String> {
runtime::run_test("tests/misc-tests/bin/sched_yield.wasm")
}
#[te... | 3 | 93 | 106 |
6ca01ce546211cfcb03877102ef7ebdc8eff3fed | Jakub Konka | 2019-06-19T05:58:02 | Add wasmtime as default runtime for integration tests | diff --git a/Cargo.toml b/Cargo.toml
index 84b5643cd..8b1796c65 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,6 +23,17 @@ nix = "0.13"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features=["std", "handleapi", "processthreadsapi", "winbase", "ws2def", "fileapi"] }
+[dev-dependencies]
+wasmtime... | 4 | 1,333 | 0 |
d52ab02835f06ef3f8efdf2fac256b552eb024fd | Yury Delendik | 2019-06-26T21:19:22 | Fix skipping dead DWARF records | diff --git a/wasmtime-debug/src/transform.rs b/wasmtime-debug/src/transform.rs
index 8a404287f..038be623b 100644
--- a/wasmtime-debug/src/transform.rs
+++ b/wasmtime-debug/src/transform.rs
@@ -515,14 +515,14 @@ where
};
let mut skip_at_depth = None;
while let Some((depth_delta, entry)) = entries.next_dfs... | 1 | 5 | 5 |
19cfec6e8f3c7fd2eae976b6069e02e6957d88f1 | Yury Delendik | 2019-05-15T14:35:43 | Ignore non-existent refs in the transformed DWARF | diff --git a/wasmtime-debug/src/transform.rs b/wasmtime-debug/src/transform.rs
index 114dac3b1..8a404287f 100644
--- a/wasmtime-debug/src/transform.rs
+++ b/wasmtime-debug/src/transform.rs
@@ -568,8 +568,11 @@ where
}
for (die_id, attr_name, offset) in pending_die_refs {
let die = comp_unit.get_mut(d... | 1 | 5 | 2 |
c0ba4753eb8e8bf2733c3a60ef791282780de55d | Dan Gohman | 2019-06-25T09:05:49 | Enable wasi-common by default (#177)
This removes the --wasi-common, as it's now on by default, and adds a
--wasi-c option to enable the wasi-c implementation. | diff --git a/Cargo.toml b/Cargo.toml
index 750b8e7f9..2a17415ef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,6 +31,7 @@ wasmtime-jit = { path = "wasmtime-jit" }
wasmtime-obj = { path = "wasmtime-obj" }
wasmtime-wast = { path = "wasmtime-wast" }
wasmtime-wasi = { path = "wasmtime-wasi" }
+wasmtime-wasi-c = { path ... | 2 | 13 | 14 |
513429f1b8c4aacafafa29b4b179e594f82178c6 | Jakub Konka | 2019-06-17T11:07:04 | Port trace log from wasmtime-wasi-c crate | diff --git a/Cargo.toml b/Cargo.toml
index d937ccd98..84b5643cd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,6 +15,7 @@ failure = "0.1"
libc = "0.2"
rand = "0.6"
cfg-if = "0.1.9"
+log = "0.4"
[target.'cfg(unix)'.dependencies]
nix = "0.13"
diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index ea1059447.... | 4 | 644 | 226 |
dc05d89a0837f43ab6923b53714e675384e6a225 | Jakub Konka | 2019-06-13T20:46:46 | Fix path_readlink: with a 0-sized buffer should succeed | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index 684bd137d..ea1059447 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -580,16 +580,20 @@ pub fn path_readlink(
Ok(slice) => host_impl::path_from_raw(slice).to_owned(),
Err(e) => return enc_errno(e),
};
- let rights = hos... | 2 | 40 | 11 |
7fef91c1e4e5c3a233d9ad5002bfcfb560c8d67f | Jakub Konka | 2019-06-13T17:35:52 | Fix fd_renumber when trying to renumber a preopen | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index 27bbf7417..ac282a209 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -78,6 +78,14 @@ pub(crate) fn fd_renumber(
Some(fe_to) => fe_to,
None => return Err(host::__WASI_EBADF... | 1 | 8 | 0 |
a11f2b1d3a6226ffd30a1c3fa7a219726b7fd8e5 | Jakub Konka | 2019-06-13T14:53:20 | Refactor path_get and fix flags in path_open | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index 0e480346a..27bbf7417 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -337,10 +337,10 @@ pub(crate) fn path_open(
let mut nix_all_oflags = if read && write {
OFlag::O_RDWR
- ... | 2 | 142 | 168 |
b35719fe4aa941e62c4e65ea52e866c158b94362 | Jakub Konka | 2019-06-11T19:25:35 | Add fixes so that misc-tests pass | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index fed19d137..684bd137d 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -492,7 +492,7 @@ pub fn path_open(
Err(e) => return enc_errno(e),
};
- let fe = match hostcalls_impl::path_open(
+ match hostcalls_impl::path_open(
... | 2 | 46 | 13 |
079ccf1f6e1628e2b373a6cac89fcf5284f15194 | Benjamin Bouvier | 2019-06-06T08:14:17 | Remove unused results warnings; | diff --git a/cranelift/codegen/src/verifier/mod.rs b/cranelift/codegen/src/verifier/mod.rs
index fc1a38ed9..7e8d7909c 100644
--- a/cranelift/codegen/src/verifier/mod.rs
+++ b/cranelift/codegen/src/verifier/mod.rs
@@ -580,7 +580,7 @@ impl<'a> Verifier<'a> {
}
for &res in self.func.dfg.inst_results(in... | 1 | 6 | 6 |
2e4d67609358c5c3869721383dc3f72e15ba2e3a | Jef | 2019-06-20T13:21:22 | Fix several miscompilations | diff --git a/src/backend.rs b/src/backend.rs
index e2463fcfe..65f9f6946 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -156,7 +156,7 @@ pub fn ret_locs(types: impl IntoIterator<Item = SignlessType>) -> Vec<CCLoc> {
out
}
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq)]
struct G... | 1 | 96 | 66 |
ce8912abf3d9f32cbc2d3fa4a5c151e4c343e0fc | Jakub Konka | 2019-06-04T06:06:22 | Use preopen_dir handlers exposed in wasi-common | diff --git a/Cargo.toml b/Cargo.toml
index 90202005d..750b8e7f9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,6 +31,7 @@ wasmtime-jit = { path = "wasmtime-jit" }
wasmtime-obj = { path = "wasmtime-obj" }
wasmtime-wast = { path = "wasmtime-wast" }
wasmtime-wasi = { path = "wasmtime-wasi" }
+wasi-common = { git = "ht... | 2 | 2 | 30 |
7ac6666fcbe3b05c19a6c87975a00f3ad2a89d33 | Jakub Konka | 2019-06-09T10:56:54 | Fixes incorrect guest fd encoding
Surfaced when running sunfishcode/misc-tests. When trying to
truncate the file without the __WASI_RIGHT_PATH_FILESTAT_SET_SIZE
right, error __WASI_ENOTCAPABLE was correctly returned, however,
the guest fd pointer was not encoded to -1 in that case. This
commit fixes it by taking out t... | diff --git a/wasmtime-wasi-c/src/syscalls.rs b/wasmtime-wasi-c/src/syscalls.rs
index ab2642fcc..66743c05e 100644
--- a/wasmtime-wasi-c/src/syscalls.rs
+++ b/wasmtime-wasi-c/src/syscalls.rs
@@ -956,10 +956,8 @@ syscalls! {
&mut host_fd,
);
- if u32::from(e) == host::__WASI_ESUCCESS {
- ... | 1 | 2 | 4 |
36870c41c8c5b829f23a5ed2fcead1f921691f32 | Lars T Hansen | 2019-06-18T14:14:32 | Fix a calculation error for rodata_size in memsink | diff --git a/cranelift/codegen/src/binemit/memorysink.rs b/cranelift/codegen/src/binemit/memorysink.rs
index 8e07db01f..170e1a95e 100644
--- a/cranelift/codegen/src/binemit/memorysink.rs
+++ b/cranelift/codegen/src/binemit/memorysink.rs
@@ -142,7 +142,7 @@ impl<'a> CodeSink for MemoryCodeSink<'a> {
}
fn end... | 1 | 1 | 1 |
c113ff32e63ddab5f158d153aefeb3497e5dbc28 | Jakub Konka | 2019-06-04T06:02:01 | Move preopen_dir handlers from wasmtime to wasi-common | diff --git a/src/lib.rs b/src/lib.rs
index 8543a54ab..38c13c546 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -29,3 +29,4 @@ pub mod memory;
pub mod wasm32;
pub use ctx::{WasiCtx, WasiCtxBuilder};
+pub use sys::preopen_dir;
diff --git a/src/sys/unix/mod.rs b/src/sys/unix/mod.rs
index 8d9f70ad3..69ee7e6a1 100644
--- a... | 3 | 29 | 2 |
e2285b543a31979cb44a3eb15a77f8608de4780e | Jef | 2019-06-13T11:24:40 | Fix `div` (makes the euler example pass!) | diff --git a/src/backend.rs b/src/backend.rs
index 9c292f64b..e2463fcfe 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -725,7 +725,7 @@ macro_rules! int_div {
let div = match div {
ValueLocation::Reg(div) => {
- if saved.any(|(_, dst)| dst == div) {
+ ... | 1 | 52 | 64 |
353e6e737b485d01b62586db0d28d4c00d745054 | Jef | 2019-06-09T12:55:09 | Make `not` a no-op for condition codes, only emit constants once | diff --git a/src/backend.rs b/src/backend.rs
index 11fe1aefe..9c292f64b 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -565,7 +565,22 @@ impl<'module, M> CodeGenSession<'module, M> {
}
}
- pub fn into_translated_code_section(self) -> Result<TranslatedCodeSection, Error> {
+ fn finalize(&mut s... | 2 | 28 | 16 |
8dc1d90352121e6e7ef953be9f32e29618a19627 | Ari Lotter | 2019-06-09T08:50:45 | Use `try_from` replacing cast in wasmtime-runtime. | diff --git a/wasmtime-runtime/Cargo.toml b/wasmtime-runtime/Cargo.toml
index 3715e0c01..1d2ae3aaf 100644
--- a/wasmtime-runtime/Cargo.toml
+++ b/wasmtime-runtime/Cargo.toml
@@ -21,7 +21,6 @@ lazy_static = "1.2.0"
libc = { version = "0.2.48", default-features = false }
errno = "0.2.4"
memoffset = "0.3.0"
-cast = { ve... | 4 | 31 | 33 |
f3f6ab05833d5111eb3838c6e3eb336674d43672 | Ari Lotter | 2019-06-09T08:26:46 | Use `try_from` replacing cast in wasmtime-wasi-c. | diff --git a/wasmtime-wasi-c/Cargo.toml b/wasmtime-wasi-c/Cargo.toml
index 9952b4942..3f9683d13 100644
--- a/wasmtime-wasi-c/Cargo.toml
+++ b/wasmtime-wasi-c/Cargo.toml
@@ -17,7 +17,6 @@ cranelift-codegen = "0.30.0"
cranelift-entity = "0.30.0"
cranelift-wasm = "0.30.0"
target-lexicon = "0.3.0"
-cast = { version = "0... | 4 | 19 | 17 |
1158b5bd6cb65377383d9a0da087ce0602753604 | Ari Lotter | 2019-06-08T12:55:16 | Use `try_from` replacing cast in wasmtime-environ.
`try_from` is stable now, so cast is unnecessary. | diff --git a/wasmtime-environ/Cargo.toml b/wasmtime-environ/Cargo.toml
index c500d961c..e75b179db 100644
--- a/wasmtime-environ/Cargo.toml
+++ b/wasmtime-environ/Cargo.toml
@@ -16,7 +16,6 @@ cranelift-codegen = "0.30.0"
cranelift-entity = "0.30.0"
cranelift-wasm = "0.30.0"
lightbeam = { path = "../lightbeam", option... | 4 | 35 | 25 |
ec5dc3384e8f9f1c3b651caacd733249ec166e78 | Lars T Hansen | 2019-06-07T12:37:58 | Handle Reloc::X86PCRelRodata4 in sundry reloc_jt | diff --git a/cranelift/faerie/src/backend.rs b/cranelift/faerie/src/backend.rs
index 9313ddaae..29f3c0480 100644
--- a/cranelift/faerie/src/backend.rs
+++ b/cranelift/faerie/src/backend.rs
@@ -413,7 +413,15 @@ impl<'a> RelocSink for FaerieRelocSink<'a> {
.expect("faerie relocation error");
}
- fn... | 2 | 20 | 4 |
e530a582afe6a2b5735fd7cdf5e2e88391e58669 | Jakub Konka | 2019-05-21T20:59:56 | Fix preopening dirs on Windows | diff --git a/Cargo.toml b/Cargo.toml
index 5731d55c5..90202005d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,6 +45,9 @@ errno = "0.2.4"
[target.'cfg(unix)'.dependencies]
wasmtime-wasi-c = { path = "wasmtime-wasi-c" }
+[target.'cfg(windows)'.dependencies]
+winapi = "0.3"
+
[workspace]
[features]
diff --git a/... | 2 | 32 | 2 |
635be8a0326c2e6c9557deabe21d086d8c776d51 | Dan Gohman | 2019-05-21T12:44:29 | Make the wasmtime-wasi-c dependency conditional on Unix. | diff --git a/Cargo.toml b/Cargo.toml
index 28d9d9e7c..5731d55c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,6 @@ wasmtime-jit = { path = "wasmtime-jit" }
wasmtime-obj = { path = "wasmtime-obj" }
wasmtime-wast = { path = "wasmtime-wast" }
wasmtime-wasi = { path = "wasmtime-wasi" }
-wasmtime-wasi-c = { path ... | 2 | 14 | 3 |
d57fbc7d0c17576095bec77ce54659fac08f37f1 | Jakub Konka | 2019-05-19T08:29:24 | Sync with wasi-common | diff --git a/wasmtime-wasi/src/syscalls.rs b/wasmtime-wasi/src/syscalls.rs
index ce74f544e..c400b3991 100644
--- a/wasmtime-wasi/src/syscalls.rs
+++ b/wasmtime-wasi/src/syscalls.rs
@@ -356,12 +356,7 @@ syscalls! {
Err(e) => return return_encoded_errno(e),
};
- let memory = match get_memor... | 1 | 7 | 48 |
da1baf7481a74785eabe170ae5f99dabf96541ba | Dan Gohman | 2019-05-31T16:51:11 | Use `try_from` instead of the cast crate.
Now that `try_from` is in stable Rust, we can use it here. | diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml
index 2309322ac..0130fcaa7 100644
--- a/cranelift/wasm/Cargo.toml
+++ b/cranelift/wasm/Cargo.toml
@@ -19,7 +19,6 @@ hashmap_core = { version = "0.1.9", optional = true }
failure = { version = "0.1.1", default-features = false, features = ["derive"] }
... | 3 | 4 | 4 |
9a66400cd8cb31badaf4e43d0e27afd76639b3ac | Dan Gohman | 2019-05-31T17:11:22 | Use `try_from` instead of the `cast` crate.
`try_from` is newly stable in the standard library starting in Rust 1.34. | diff --git a/Cargo.toml b/Cargo.toml
index 61fa18dd4..d937ccd98 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,6 @@ license = "Apache-2.0 WITH LLVM-exception"
[dependencies]
wasi-common-cbindgen = { path = "wasi-common-cbindgen" }
-cast = "0.2"
failure = "0.1"
libc = "0.2"
rand = "0.6"
@@ -27,4 +26,4 @@ w... | 3 | 7 | 14 |
51fc39e0e60b25fd2cba0e3fc5166129db4df192 | Jakub Konka | 2019-05-31T06:38:53 | Backport path_get fix discovered in Win branch | diff --git a/src/sys/unix/hostcalls/fs_helpers.rs b/src/sys/unix/hostcalls/fs_helpers.rs
index 5d1c70bd8..94a3b2026 100644
--- a/src/sys/unix/hostcalls/fs_helpers.rs
+++ b/src/sys/unix/hostcalls/fs_helpers.rs
@@ -149,7 +149,7 @@ pub fn path_get<P: AsRef<OsStr>>(
|| (component.ends_with(b"/") && !ne... | 1 | 1 | 1 |
825f1d764a18c273d6fc79621b2d2da9339b4770 | Dan Gohman | 2019-05-30T21:25:20 | Fix a compiler warning.
Fix the following warning from Rust 1.35:
warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
--> wasmtime-runtime/src/instance.rs:473:25
|
465 | } else if let Some(start_export) = self.module.exports.get("_start") {
| ... | diff --git a/wasmtime-runtime/src/instance.rs b/wasmtime-runtime/src/instance.rs
index afa793954..a3dfc102d 100644
--- a/wasmtime-runtime/src/instance.rs
+++ b/wasmtime-runtime/src/instance.rs
@@ -466,11 +466,11 @@ impl Instance {
// As a compatibility measure, if the module doesn't have a start
... | 1 | 6 | 6 |
70f79d23bf9f1682c0a1e4fd9f3cad64060d6344 | Benjamin Bouvier | 2019-05-28T13:01:14 | [meta] Make Builders build() instead of finish(); | diff --git a/cranelift/codegen/meta/src/cdsl/formats.rs b/cranelift/codegen/meta/src/cdsl/formats.rs
index 244564a76..cefcfa162 100644
--- a/cranelift/codegen/meta/src/cdsl/formats.rs
+++ b/cranelift/codegen/meta/src/cdsl/formats.rs
@@ -135,7 +135,7 @@ impl InstructionFormatBuilder {
self
}
- pub fn ... | 19 | 156 | 159 |
feb90e376a3e8782e8580971f6013cc6f7cb0cf3 | Benjamin Bouvier | 2019-04-30T16:14:40 | [meta] Make Instruction name/doc Strings so they can be automatically generated; | diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs
index b469e8b91..9a4f96146 100644
--- a/cranelift/codegen/meta/src/cdsl/instructions.rs
+++ b/cranelift/codegen/meta/src/cdsl/instructions.rs
@@ -54,11 +54,11 @@ pub struct PolymorphicInfo {
pub struct Inst... | 3 | 15 | 14 |
22a6823496c957c4346c18bd101717bc16537d02 | Benjamin Bouvier | 2019-04-30T16:11:45 | [meta] Rename cdsl/inst to cdsl/instructions; | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index ccb9adec0..f4ebea076 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -1,5 +1,5 @@
use crate::cdsl::formats::FormatRegistry;
-use crate::cdsl::inst::{InstSpec, Instructi... | 14 | 14 | 14 |
f427a2b923844260ecdabdac4b3baf0ec8ce3870 | Takanori Ishibashi | 2019-05-28T11:03:10 | Fix url in comments | diff --git a/cranelift/wasm/src/func_translator.rs b/cranelift/wasm/src/func_translator.rs
index 578c12ef3..6842e4f92 100644
--- a/cranelift/wasm/src/func_translator.rs
+++ b/cranelift/wasm/src/func_translator.rs
@@ -45,7 +45,7 @@ impl FuncTranslator {
///
/// See [the WebAssembly specification][wasm].
/... | 1 | 1 | 1 |
1882fc41bb4db4e8ae05ef64f7c2c590664ddd39 | Dan Gohman | 2019-05-27T16:14:29 | Build sandboxed-system-primitives with -std=gnu99. | diff --git a/wasmtime-wasi/build.rs b/wasmtime-wasi/build.rs
index 1ed59201b..4145068a5 100644
--- a/wasmtime-wasi/build.rs
+++ b/wasmtime-wasi/build.rs
@@ -6,7 +6,9 @@ use std::env;
use std::path::PathBuf;
fn main() {
- let dst = Config::new("sandboxed-system-primitives").build();
+ let dst = Config::new("sa... | 1 | 3 | 1 |
dc3a4d7f4a881b38681d0484c6000a3cf47e66d4 | Jef | 2019-05-24T11:21:47 | Fix register cycles, fix a minor issue in pushing | diff --git a/src/backend.rs b/src/backend.rs
index e9648c273..11fe1aefe 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -2329,9 +2329,14 @@ impl<'this, M: ModuleContext> Context<'this, M> {
let end_label = self.create_label();
if count > 0 {
- // TODO: Handle this failing ... | 1 | 28 | 14 |
6935033c9e02710664d0971918858d7b0d5d9f0b | Benjamin Bouvier | 2019-05-23T10:01:25 | [meta] Have bind() be a method of {Bound,}Instruction instead of a static method; | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 37892fc89..ccb9adec0 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -574,7 +574,7 @@ macro_rules! def_rhs {
// inst.type(a, b, c)
($inst:ident.$type:ident($... | 4 | 23 | 19 |
724d1cd2a1fddd489bc3c5949f44140ee23f5e56 | Benjamin Bouvier | 2019-05-23T09:53:06 | [meta] Rename ApplyTarget to InstSpec; | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 46214e2ab..37892fc89 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -1,5 +1,5 @@
use crate::cdsl::formats::FormatRegistry;
-use crate::cdsl::inst::{ApplyTarget, Instru... | 2 | 20 | 19 |
a46b2d71732bcbed7e695f5af662041cd093a8f9 | Benjamin Bouvier | 2019-05-23T09:51:19 | [meta] Move ApplyTarget/bind to cdsl/inst; | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 1df8ea305..46214e2ab 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -1,7 +1,7 @@
use crate::cdsl::formats::FormatRegistry;
-use crate::cdsl::inst::{BoundInstruction, I... | 4 | 63 | 63 |
cbbb7a220e1255196ec1451ffa85dede50236504 | Benjamin Bouvier | 2019-05-21T12:11:48 | [meta] Move x86 registers generation to their own file; | diff --git a/cranelift/codegen/meta/src/isa/x86/mod.rs b/cranelift/codegen/meta/src/isa/x86/mod.rs
index bf59b8d9c..dba573706 100644
--- a/cranelift/codegen/meta/src/isa/x86/mod.rs
+++ b/cranelift/codegen/meta/src/isa/x86/mod.rs
@@ -1,6 +1,5 @@
use crate::cdsl::cpu_modes::CpuMode;
use crate::cdsl::isa::TargetIsa;
-us... | 2 | 44 | 43 |
92109f664ca2a7c383c8f2c97d569eda03086316 | Benjamin Bouvier | 2019-05-21T12:09:58 | [meta] Move x86 settings generation to their own file; | diff --git a/cranelift/codegen/meta/src/isa/x86/mod.rs b/cranelift/codegen/meta/src/isa/x86/mod.rs
index 861553bf8..bf59b8d9c 100644
--- a/cranelift/codegen/meta/src/isa/x86/mod.rs
+++ b/cranelift/codegen/meta/src/isa/x86/mod.rs
@@ -1,7 +1,6 @@
use crate::cdsl::cpu_modes::CpuMode;
use crate::cdsl::isa::TargetIsa;
us... | 2 | 89 | 88 |
48b7f8e44320ee93b0fbbc10409c5539337e906e | afinch7 | 2019-05-21T14:50:40 | detect lzcnt/tzcnt support and use if available | diff --git a/src/backend.rs b/src/backend.rs
index e5fbfcd0a..b17322b02 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -3241,30 +3241,46 @@ impl<'this, M: ModuleContext> Context<'this, M> {
ValueLocation::Stack(offset) => {
let offset = self.adjusted_offset(offset);
l... | 1 | 114 | 58 |
3372e47e5ad2452d031497f0952affc487a3df17 | Dan Gohman | 2019-05-19T15:36:57 | Fix fd_fdstat_set_rights to set the rights.
After checking that no new rights are being added, actually set the
rights, which may be a subset of the original rights. | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index 230be5362..7257b9b95 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -344,13 +344,13 @@ pub fn fd_fdstat_set_flags(
#[wasi_common_cbindgen]
pub fn fd_fdstat_set_rights(
- wasi_ctx: &WasiCtx,
+ wasi_ctx: &mut WasiCtx,
fd: wasm32::_... | 1 | 5 | 2 |
c5bda1f4e16132506804322a1f9cc4af431e5c8b | Dan Gohman | 2019-05-17T23:48:50 | Fix symlink resolution on Linux and FreeBSD.
Linux's open returns ENOTDIR when used with O_DIRECTORY|O_NOFOLLOW and
the path is a symlink. Update the code to expect this.
FreeBSD's open returns EMLINK instead of ELOOP when using O_NOFOLLOW on
symlink. Update the code to expect this. | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index 351473bd7..230be5362 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -737,6 +737,23 @@ pub fn path_open(
return wasm32::__WASI_ENXIO;
}
}
+ // Linux returns ENOTDIR in... | 2 | 21 | 1 |
9823bf6196b64187f0b6132b22cd43dc0f2670af | Dan Gohman | 2019-05-17T22:56:17 | Change path_open to not create files with execute privleges.
WASI currently lacks the ability to specify the full UNIX access control
information when creating files and directories, so for now just avoid
creating executable files and rely on the umask. | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index c49120b35..351473bd7 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -713,11 +713,14 @@ pub fn path_open(
Err(e) => return enc_errno(e),
};
+ // Call openat. Use mode 0o666 so that we follow whatever the user's
+ // umask i... | 1 | 4 | 1 |
32da43f6003fc5cd31ceb5836889edfb527e8bf3 | Dan Gohman | 2019-05-17T22:45:31 | Handle set-size rights correctly when truncating a file.
If a path_open call is requesting __WASI_RIGHT_FD_FILESTAT_SET_SIZE,
interpret that as a request for write privleges. If it is requesting
O_TRUNC, require __WASI_RIGHT_PATH_FILESTAT_SET_SIZE, since this is
a path operation rather than a FD operation. | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index e041b5483..c49120b35 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -658,7 +658,7 @@ pub fn path_open(
& (host::__WASI_RIGHT_FD_DATASYNC
| host::__WASI_RIGHT_FD_WRITE
| host::__WASI_RIGHT_FD_ALLOCATE
- ... | 1 | 2 | 2 |
d20d787bb7196dd766af862635649486bcebe673 | Dan Gohman | 2019-05-17T21:23:01 | Don't grant __WASI_RIGHT_FD_FILESTAT_SET_SIZE for directories.
RIGHTS_DIRECTORY_BASE should not include
__WASI_RIGHT_FD_FILESTAT_SET_SIZE, because that would imply the ability
to set the size of a directory. | diff --git a/src/host.rs b/src/host.rs
index b4b5f13ee..e2f19ab4c 100644
--- a/src/host.rs
+++ b/src/host.rs
@@ -248,7 +248,6 @@ pub const RIGHTS_DIRECTORY_BASE: __wasi_rights_t = __WASI_RIGHT_FD_FDSTAT_SET_FL
| __WASI_RIGHT_PATH_FILESTAT_SET_SIZE
| __WASI_RIGHT_PATH_FILESTAT_SET_TIMES
| __WASI_RIGHT_FD_... | 1 | 0 | 1 |
6b2eee21b95eaaedcd49d4054a5dcaf1e352fb54 | Dan Gohman | 2019-05-19T04:01:14 | Update the description of Cargo.toml. | diff --git a/Cargo.toml b/Cargo.toml
index ea5b99149..0f3dddf96 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,13 +2,12 @@
name = "wasmtime"
authors = ["The Wasmtime Project Developers"]
version = "0.1.0"
-description = "Command-line interface for the wasmtime crate"
+description = "Command-line interface for Wasmti... | 1 | 1 | 2 |
91ec44acbfdd2523c254d7bc9b81a0a9efbaf741 | Julian Seward | 2019-05-02T08:53:19 | Add extensive test cases for integer division-by-constant magic number generation.
This adds test cases to ensure, to a reasonably high degree of certainty, that
the magic-number generators `magic_u32`, `magic_s32`, `magic_u64` and
`magic_s64` work correctly. This is done by iterating through a large number
of `(n, d... | diff --git a/cranelift/codegen/src/divconst_magic_numbers.rs b/cranelift/codegen/src/divconst_magic_numbers.rs
index 0e90fb967..b155496ab 100644
--- a/cranelift/codegen/src/divconst_magic_numbers.rs
+++ b/cranelift/codegen/src/divconst_magic_numbers.rs
@@ -647,4 +647,439 @@ mod tests {
}
assert_eq!(to... | 1 | 435 | 0 |
5aa598520cce3d872f75dfb588150742f46eafa2 | Jakub Konka | 2019-05-15T18:45:00 | Rename C prefix from __wasi to wasi_common_ | diff --git a/wasi-common-cbindgen/src/lib.rs b/wasi-common-cbindgen/src/lib.rs
index c8d780b28..31bd115b2 100644
--- a/wasi-common-cbindgen/src/lib.rs
+++ b/wasi-common-cbindgen/src/lib.rs
@@ -15,7 +15,7 @@ pub fn wasi_common_cbindgen(attr: TokenStream, function: TokenStream) -> TokenSt
// generate C fn name pre... | 6 | 6 | 6 |
006198eb92449eb52301ac8e26512553b64b8452 | Jakub Konka | 2019-05-14T12:33:46 | Generate C bindings for all hostcalls | diff --git a/src/hostcalls.rs b/src/hostcalls.rs
index 1307ea4d3..01cdd1c65 100644
--- a/src/hostcalls.rs
+++ b/src/hostcalls.rs
@@ -68,6 +68,7 @@ pub fn args_get(
.unwrap_or_else(|e| e)
}
+#[wasi_common_cbindgen]
pub fn args_sizes_get(
wasi_ctx: &WasiCtx,
memory: &mut [u8],
@@ -90,6 +91,7 @@ pub... | 2 | 44 | 0 |
9ad16cc702692e0383810a936ce5971a9ad430cc | Jakub Konka | 2019-05-14T11:27:46 | Add sanity tests | diff --git a/wasi-common-cbindgen/Cargo.toml b/wasi-common-cbindgen/Cargo.toml
index 75bb538d4..527a7781e 100644
--- a/wasi-common-cbindgen/Cargo.toml
+++ b/wasi-common-cbindgen/Cargo.toml
@@ -10,3 +10,6 @@ proc-macro = true
[dependencies]
syn = { version = "0.15.34", features = ["full"] }
quote = "0.6.12"
+
+[dev-d... | 7 | 79 | 1 |
7f3c325cdf9c1d37e5f647c2cbb048eeaa8337b0 | Jakub Konka | 2019-05-14T09:55:50 | Dereference pointers and call the hostcall fn | diff --git a/wasi-common-cbindgen/Cargo.toml b/wasi-common-cbindgen/Cargo.toml
index ddb546170..75bb538d4 100644
--- a/wasi-common-cbindgen/Cargo.toml
+++ b/wasi-common-cbindgen/Cargo.toml
@@ -10,4 +10,3 @@ proc-macro = true
[dependencies]
syn = { version = "0.15.34", features = ["full"] }
quote = "0.6.12"
-proc-mac... | 2 | 13 | 8 |
4a5910b4a31a7980e68717e1e514dad232072ecc | Jakub Konka | 2019-05-14T09:37:23 | Capture correct return type | diff --git a/wasi-common-cbindgen/src/lib.rs b/wasi-common-cbindgen/src/lib.rs
index 52cdd7999..310c2cf44 100644
--- a/wasi-common-cbindgen/src/lib.rs
+++ b/wasi-common-cbindgen/src/lib.rs
@@ -2,21 +2,21 @@ extern crate proc_macro;
use proc_macro::TokenStream;
use quote::quote;
-use syn::{FnArg, ArgCaptured, Pat, P... | 1 | 7 | 6 |
7791166859b6f0e01fc227db3b39b508b01df33f | Jakub Konka | 2019-05-14T08:58:49 | Generate C fn name prefixed with __wasi_ | diff --git a/wasi-common-cbindgen/src/lib.rs b/wasi-common-cbindgen/src/lib.rs
index 2fa082a3e..52cdd7999 100644
--- a/wasi-common-cbindgen/src/lib.rs
+++ b/wasi-common-cbindgen/src/lib.rs
@@ -2,7 +2,7 @@ extern crate proc_macro;
use proc_macro::TokenStream;
use quote::quote;
-use syn::{FnArg, ArgCaptured, Pat, Pat... | 1 | 45 | 1 |
e552b19dfe29f106a0b973d5de0781381cae906d | Jakub Konka | 2019-05-14T05:57:04 | Add placeholder for cbindgen proc_macro_attribute | diff --git a/Cargo.toml b/Cargo.toml
index 8169fde72..6ebec5be5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,6 +10,7 @@ edition = "2018"
license = "Apache-2.0 WITH LLVM-exception"
[dependencies]
+wasi-common-cbindgen = { path = "wasi-common-cbindgen" }
cast = "0.2"
failure = "0.1"
libc = "0.2"
@@ -19,3 +20,5 ... | 4 | 37 | 0 |
2563dc53a17e938f89a3ed4ac39e4a829f42a9b1 | afinch7 | 2019-05-15T12:20:23 | fixed registry leak and literal casts | diff --git a/src/backend.rs b/src/backend.rs
index e8479f09a..e5fbfcd0a 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -3236,7 +3236,7 @@ impl<'this, M: ModuleContext> Context<'this, M> {
let out_val = match val {
ValueLocation::Immediate(imm) =>
ValueLocation::Immediate(
- ... | 1 | 8 | 4 |
c27b0a0c3e512b6a1ef07e828573f20d227668bf | bjorn3 | 2019-05-14T17:25:53 | Add note about needing to call `func.dfg.collect_debug_info` for `set_val_label` to have any effect | diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs
index c161b85f5..407d03fec 100644
--- a/cranelift/frontend/src/frontend.rs
+++ b/cranelift/frontend/src/frontend.rs
@@ -334,6 +334,8 @@ impl<'a> FunctionBuilder<'a> {
}
/// Set label for Value
+ ///
+ /// This will no... | 1 | 2 | 0 |
edd2bf12fdd7be176634aa68957a99493a999a48 | bjorn3 | 2019-05-14T13:54:04 | Export ValueLocRange and DisplayFunctionAnnotations::default() | diff --git a/cranelift/codegen/src/ir/function.rs b/cranelift/codegen/src/ir/function.rs
index a07b0318d..6a1d4cdd0 100644
--- a/cranelift/codegen/src/ir/function.rs
+++ b/cranelift/codegen/src/ir/function.rs
@@ -228,7 +228,8 @@ pub struct DisplayFunctionAnnotations<'a> {
}
impl<'a> DisplayFunctionAnnotations<'a> {... | 3 | 6 | 2 |
eb1cf8b0a16e5914f5dc5c04a046fd545299f339 | Dan Gohman | 2019-05-13T22:47:38 | Make users of `dec_slice_of` safe.
Make `dec_slice_of` return a slice rather than a pointer-length pair,
freeing its users from having to call the unsafe `slice::from_raw_parts`.
This requires splitting `dec_slice_of` and `dec_ptr` into mut and
non-mut versions, and reorganizing poll_oneoff a little to avoid
borrow-c... | diff --git a/src/hostcalls.rs b/src/hostcalls.rs
index 89c41d97d..d377dbf90 100644
--- a/src/hostcalls.rs
+++ b/src/hostcalls.rs
@@ -542,13 +542,12 @@ pub fn path_open(
}
let path = match dec_slice_of::<u8>(memory, path_ptr, path_len) {
- Ok((ptr, len)) => OsStr::from_bytes(unsafe { std::slice::from_... | 2 | 82 | 56 |
6740704b74424a60f8a18b633723a5668cfb6094 | Yury Delendik | 2019-05-14T21:00:35 | Expose Module reference from InstanceHandle | diff --git a/wasmtime-runtime/src/instance.rs b/wasmtime-runtime/src/instance.rs
index df069fabc..afa793954 100644
--- a/wasmtime-runtime/src/instance.rs
+++ b/wasmtime-runtime/src/instance.rs
@@ -784,6 +784,16 @@ impl InstanceHandle {
self.instance().vmctx_ptr()
}
+ /// Return a reference-counting p... | 1 | 10 | 0 |
a0ddbf403cd52bc6d1e7f9547b87de3099bd35d1 | Benjamin Bouvier | 2019-05-03T13:38:28 | [wasm] Have the WasmError::User member be a String; | diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml
index 7d9504aa5..2309322ac 100644
--- a/cranelift/wasm/Cargo.toml
+++ b/cranelift/wasm/Cargo.toml
@@ -27,7 +27,7 @@ target-lexicon = "0.4.0"
[features]
default = ["std"]
-std = ["cranelift-codegen/std", "cranelift-frontend/std", "wasmparser/std", "f... | 2 | 3 | 11 |
8a68375f89de6f46c9cd6a5afeeaf87335b1fda2 | Jakub Konka | 2019-05-14T05:26:33 | Move TODO about proc_exit from wasmtime | diff --git a/src/hostcalls.rs b/src/hostcalls.rs
index 6726d3e36..89c41d97d 100644
--- a/src/hostcalls.rs
+++ b/src/hostcalls.rs
@@ -26,6 +26,8 @@ use std::time::SystemTime;
use std::{cmp, slice};
pub fn proc_exit(rval: wasm32::__wasi_exitcode_t) -> () {
+ // TODO: Rather than call std::process::exit here, we sh... | 1 | 2 | 0 |
8b09f321ac230d5ca9d33987c90c76395d44709b | Jakub Konka | 2019-05-12T16:13:43 | Make memory fns safe wherever possible | diff --git a/src/hostcalls.rs b/src/hostcalls.rs
index 3be889e24..6726d3e36 100644
--- a/src/hostcalls.rs
+++ b/src/hostcalls.rs
@@ -42,7 +42,7 @@ pub fn args_get(
let arg_bytes = arg.as_bytes_with_nul();
let arg_ptr = argv_buf + argv_buf_offset;
- if let Err(e) = unsafe { enc_slice_of(memory... | 2 | 108 | 141 |
680473c50c25020ff1cd2bc71578c86ff64b85d2 | Jef | 2019-05-13T13:22:58 | Fix param names | diff --git a/src/backend.rs b/src/backend.rs
index 46cfcc9b1..f2cb1401b 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -4120,6 +4120,7 @@ impl<'this, M: ModuleContext> Context<'this, M> {
I64
);
+ // TODO: Do this without emitting `mov`
fn cleanup_gprs(&mut self, gprs: impl Iterator<Item = ... | 1 | 14 | 13 |
75ad92b0f3f0fbe668967918e377dc0c855e6747 | Jakub Konka | 2019-05-11T08:44:54 | Insulate API from intricacies of memory mgmt of calling runtimes | diff --git a/src/ctx.rs b/src/ctx.rs
index 88d8f7326..6b8d5d0e9 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -1,6 +1,5 @@
use crate::fdentry::FdEntry;
use crate::host;
-use crate::wasm32;
use failure::{bail, format_err, Error};
use nix::unistd::dup;
@@ -11,17 +10,6 @@ use std::io::{stderr, stdin, stdout};
use std... | 5 | 228 | 295 |
751a1a1f7bc8ac0b732a5eae1eec5f1d55b0e923 | Jakub Konka | 2019-05-10T18:13:50 | Add experimental struct with views memory and ctxs
This struct is heavily taking from Lucet's Vmctx struct. | diff --git a/src/ctx.rs b/src/ctx.rs
index 4771d9552..88d8f7326 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -198,6 +198,16 @@ pub struct WasiCtx {
pub env: Vec<CString>,
}
+impl Default for WasiCtx {
+ fn default() -> Self {
+ Self {
+ fds: HashMap::new(),
+ args: Vec::new(),
+ ... | 5 | 202 | 103 |
8f95c51730c8f7f50abf0e0700869de9202da1d0 | Yury Delendik | 2019-03-06T17:20:26 | Reconstruct locations of the original source variable | diff --git a/cranelift/codegen/src/context.rs b/cranelift/codegen/src/context.rs
index 0cd1564c0..493e7a526 100644
--- a/cranelift/codegen/src/context.rs
+++ b/cranelift/codegen/src/context.rs
@@ -29,6 +29,7 @@ use crate::simple_gvn::do_simple_gvn;
use crate::simple_preopt::do_preopt;
use crate::timing;
use crate::u... | 21 | 556 | 31 |
8090f8791ffda7fb3ef95c130a0e63c019acce35 | Jakub Konka | 2019-05-08T06:04:16 | Add stubs for unimplemented hostcalls | diff --git a/src/hostcalls.rs b/src/hostcalls.rs
index 20643e279..ea10f976f 100644
--- a/src/hostcalls.rs
+++ b/src/hostcalls.rs
@@ -10,6 +10,7 @@
#![allow(non_camel_case_types)]
#![allow(unused_unsafe)]
+#![allow(unused)]
use crate::ctx::VmContext;
use crate::fdentry::{determine_type_rights, FdEntry};
use crate... | 1 | 219 | 0 |
5e702fa001c846ec7ffbe963ef86a015e76b911b | Dan Gohman | 2019-05-06T23:26:40 | Update a comment to refer to WASI. | diff --git a/src/host.rs b/src/host.rs
index ec025316a..eea3985ed 100644
--- a/src/host.rs
+++ b/src/host.rs
@@ -224,7 +224,7 @@ pub const RIGHTS_ALL: __wasi_rights_t = __WASI_RIGHT_FD_DATASYNC
| __WASI_RIGHT_SOCK_SHUTDOWN;
// Block and character device interaction is outside the scope of
-// CloudABI. Simply a... | 1 | 1 | 1 |
8335484870cb78527e2333192a7dbb88406addda | Dan Gohman | 2019-05-06T22:25:27 | Update wasm32.rs to name the union fields.
The upstream wasi/core.h header switched from anonymous unions to unions
named `u`. This patch updates wasm32.rs to reflect this, as was done in
wasmtime 5b77f952. | diff --git a/src/memory.rs b/src/memory.rs
index 7d7492d8d..7d65260ee 100644
--- a/src/memory.rs
+++ b/src/memory.rs
@@ -438,7 +438,7 @@ pub fn dec_subscription(
) -> Result<host::__wasi_subscription_t, host::__wasi_errno_t> {
let userdata = dec_userdata(subscription.userdata);
let type_ = dec_eventtype(subs... | 2 | 237 | 81 |
30583954ebc6813ae28d316dc24f4b4cd02239b9 | Jef | 2019-05-06T08:44:13 | Add better debugging tools | diff --git a/src/backend.rs b/src/backend.rs
index a985fe785..46cfcc9b1 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -10,6 +10,7 @@ use std::{
any::{Any, TypeId},
collections::HashMap,
convert::TryFrom,
+ fmt::Display,
iter::{self, FromIterator},
mem,
ops::RangeInclusive,
@@ -518... | 5 | 108 | 32 |
ce6f9cb16533ac7a100499643eea29fdf16f72ce | Jakub Konka | 2019-05-06T06:55:47 | Changes to compile in lucet | diff --git a/src/ctx.rs b/src/ctx.rs
index 6bbd73402..1056d5d0f 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -12,8 +12,8 @@ use std::os::unix::prelude::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
use std::path::{Path, PathBuf};
pub trait VmContext {
- fn as_wasi_ctx(&self) -> &WasiCtx;
- fn as_wasi_ctx_mut(&mut se... | 2 | 51 | 89 |
f335c5c56c7186cbaa1a9fd52bf9de837e1ef76a | Benjamin Bouvier | 2019-04-16T13:20:18 | [meta] Small fixes in the settings generation; | diff --git a/cranelift/codegen/meta/src/gen_settings.rs b/cranelift/codegen/meta/src/gen_settings.rs
index b57e7a4f5..0238ef1ec 100644
--- a/cranelift/codegen/meta/src/gen_settings.rs
+++ b/cranelift/codegen/meta/src/gen_settings.rs
@@ -288,7 +288,8 @@ fn gen_descriptors(group: &SettingGroup, fmt: &mut Formatter) {
... | 4 | 10 | 18 |
390cfb37da677818b8ea2fcd95ea481450c298e1 | Benjamin Bouvier | 2019-04-16T13:24:28 | [meta] Use named predicates for x86 settings in the Rust crate too;
And generate them using the same deterministic order that the Python
code uses. | diff --git a/cranelift/codegen/meta/src/cdsl/mod.rs b/cranelift/codegen/meta/src/cdsl/mod.rs
index 516b04d0b..2d7f545dd 100644
--- a/cranelift/codegen/meta/src/cdsl/mod.rs
+++ b/cranelift/codegen/meta/src/cdsl/mod.rs
@@ -23,6 +23,15 @@ macro_rules! predicate {
($a:ident && $($b:tt)*) => {
PredicateNode::A... | 3 | 62 | 25 |
5cd0724fef55447849713208429359f6ed75abd1 | Lars T Hansen | 2019-05-02T12:33:54 | Clarify that FixedTied constraints are not Tied (#756)
* Clarify that FixedTied constraints are not Tied | diff --git a/cranelift/codegen/src/isa/constraints.rs b/cranelift/codegen/src/isa/constraints.rs
index d6e809738..ce1d2a5fe 100644
--- a/cranelift/codegen/src/isa/constraints.rs
+++ b/cranelift/codegen/src/isa/constraints.rs
@@ -105,13 +105,13 @@ pub struct RecipeConstraints {
/// constraints must be derived from ... | 1 | 3 | 3 |
18a5386c083c1cefed2b486eec754d163e593a45 | Benjamin Bouvier | 2019-04-25T14:54:52 | Remove and reorganize IntCC/FloatCC imports to avoid a build warning; | diff --git a/cranelift/codegen/src/isa/x86/enc_tables.rs b/cranelift/codegen/src/isa/x86/enc_tables.rs
index 0ed238ac1..dd7bf02c8 100644
--- a/cranelift/codegen/src/isa/x86/enc_tables.rs
+++ b/cranelift/codegen/src/isa/x86/enc_tables.rs
@@ -4,7 +4,7 @@ use super::registers::*;
use crate::bitset::BitSet;
use crate::cu... | 1 | 1 | 9 |
f7245f40a157dd8fcf7d7a2e1f2d530167e32423 | Jakub Konka | 2019-05-01T13:23:28 | Port host::__wasi_preopentype_t to Rust | diff --git a/wasmtime-wasi/build.rs b/wasmtime-wasi/build.rs
index fa9d79f17..1ed59201b 100644
--- a/wasmtime-wasi/build.rs
+++ b/wasmtime-wasi/build.rs
@@ -103,7 +103,8 @@ fn main() {
.blacklist_item("__WASI_ETIMEDOUT")
.blacklist_item("__WASI_ETXTBSY")
.blacklist_item("__WASI_EXDEV")
- ... | 3 | 6 | 2 |
b0eab7398d550bbe8577e5de7e1d33206761e2df | Dan Gohman | 2019-04-30T13:42:48 | Don't decode the incoming events to poll_oneoff. (#113)
The events array is an output-only array, so we don't need to decode its
contents. | diff --git a/wasmtime-wasi/src/syscalls.rs b/wasmtime-wasi/src/syscalls.rs
index 93eb3c49e..04241500a 100644
--- a/wasmtime-wasi/src/syscalls.rs
+++ b/wasmtime-wasi/src/syscalls.rs
@@ -3,7 +3,7 @@ use crate::instantiate::WASIState;
use cranelift_codegen::ir::types::{Type, I32, I64};
use host;
use host_impls;
-use st... | 2 | 12 | 50 |
abf0048972239a553a757ed74dd4eff8ac2e5efa | bjorn3 | 2019-04-24T17:58:16 | Merge data alignment | diff --git a/cranelift/module/src/module.rs b/cranelift/module/src/module.rs
index 7451e2fda..3da6c3781 100644
--- a/cranelift/module/src/module.rs
+++ b/cranelift/module/src/module.rs
@@ -203,9 +203,10 @@ impl<B> ModuleData<B>
where
B: Backend,
{
- fn merge(&mut self, linkage: Linkage, writable: bool) {
+ ... | 1 | 3 | 2 |
8216b83c654be4b3581de592fed57e05756298f6 | bjorn3 | 2019-04-24T17:53:24 | Make alignment magic number constants | diff --git a/cranelift/simplejit/src/backend.rs b/cranelift/simplejit/src/backend.rs
index 1c6b0b182..81b44459e 100644
--- a/cranelift/simplejit/src/backend.rs
+++ b/cranelift/simplejit/src/backend.rs
@@ -17,6 +17,10 @@ use target_lexicon::PointerWidth;
#[cfg(windows)]
use winapi;
+const EXECUTABLE_DATA_ALIGNMENT: ... | 1 | 7 | 3 |
cb6268118c982c4b8fb0bb3a6c275fb0737c3c8b | bjorn3 | 2019-03-30T15:45:58 | Make it possible to define data alignment | diff --git a/cranelift/faerie/src/backend.rs b/cranelift/faerie/src/backend.rs
index 0adb564b3..372655f1d 100644
--- a/cranelift/faerie/src/backend.rs
+++ b/cranelift/faerie/src/backend.rs
@@ -127,9 +127,9 @@ impl Backend for FaerieBackend {
.expect("inconsistent declarations");
}
- fn declare_da... | 5 | 33 | 14 |
443e48aee19961b1de50b7c71f90c07b729eb452 | Benjamin Bouvier | 2019-04-29T11:44:01 | [wasm] Raise an error instead of panicking for unhandled function local types; | diff --git a/cranelift/wasm/src/func_translator.rs b/cranelift/wasm/src/func_translator.rs
index 6a003f06f..efa63c15e 100644
--- a/cranelift/wasm/src/func_translator.rs
+++ b/cranelift/wasm/src/func_translator.rs
@@ -5,7 +5,7 @@
//! WebAssembly module and the runtime environment.
use crate::code_translator::transla... | 1 | 5 | 4 |
3ce5d2057dcb3ace77e2585e16234488098e62e7 | Benjamin Bouvier | 2019-04-29T09:34:45 | [wasm] Add the ability to provide a user-defined error; | diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml
index 2309322ac..7d9504aa5 100644
--- a/cranelift/wasm/Cargo.toml
+++ b/cranelift/wasm/Cargo.toml
@@ -27,7 +27,7 @@ target-lexicon = "0.4.0"
[features]
default = ["std"]
-std = ["cranelift-codegen/std", "cranelift-frontend/std", "wasmparser/std"]
+s... | 2 | 14 | 2 |
02e114cf3dcaf158152dca236528277d749d1fdf | Benjamin Bouvier | 2019-04-29T09:27:13 | [wasm] Make FuncEnvironment functions fallible (fixes #752); | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index f83b462ce..6c339f3e1 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -71,7 +71,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
* `get_global` and `s... | 5 | 131 | 91 |
efdb7d86b3ceec27cd6dd4c19e76a9241a821422 | Benjamin Bouvier | 2019-04-30T09:46:54 | Fixes #607: Use a wrapping multiply when computing div/rem magic numbers; (#757) | diff --git a/cranelift/codegen/src/divconst_magic_numbers.rs b/cranelift/codegen/src/divconst_magic_numbers.rs
index 30d828774..0e90fb967 100644
--- a/cranelift/codegen/src/divconst_magic_numbers.rs
+++ b/cranelift/codegen/src/divconst_magic_numbers.rs
@@ -55,7 +55,7 @@ pub fn magic_u32(d: u32) -> MU32 {
q... | 1 | 75 | 19 |
e62607e55271f32a16ce3c0a20465381f43ba3e7 | Dan Gohman | 2019-04-23T19:31:46 | When path_open fails, set the output fd to -1. | diff --git a/wasmtime-wasi/src/syscalls.rs b/wasmtime-wasi/src/syscalls.rs
index 4f61b4fa4..93eb3c49e 100644
--- a/wasmtime-wasi/src/syscalls.rs
+++ b/wasmtime-wasi/src/syscalls.rs
@@ -914,7 +914,7 @@ syscalls! {
let fs_rights_base = decode_rights(fs_rights_base);
let fs_rights_inheriting = decode_rig... | 1 | 1 | 1 |
86b7a5200981a59239d4d34b54a3b887d71794d5 | Jakub Konka | 2019-04-29T09:06:01 | Port host::__wasi_errno_t errors to Rust
They are now blacklisted in the bindgen. | diff --git a/wasmtime-wasi/Cargo.toml b/wasmtime-wasi/Cargo.toml
index f08ac14f7..7b4161cd1 100644
--- a/wasmtime-wasi/Cargo.toml
+++ b/wasmtime-wasi/Cargo.toml
@@ -20,6 +20,7 @@ target-lexicon = "0.3.0"
cast = { version = "0.2.2", default-features = false }
log = { version = "0.4.6", default-features = false }
libc... | 5 | 248 | 134 |
79d6978e2933422731194ac16a17e4b1d5405084 | antoyo | 2019-04-29T14:58:39 | cranelift-simplejit: add a translation mechanism for LibCalls (#747) | diff --git a/cranelift/faerie/src/backend.rs b/cranelift/faerie/src/backend.rs
index 1deb46e07..0adb564b3 100644
--- a/cranelift/faerie/src/backend.rs
+++ b/cranelift/faerie/src/backend.rs
@@ -46,7 +46,7 @@ impl FaerieBuilder {
/// The `libcall_names` function provides a way to translate `cranelift_codegen`'s `ir:... | 6 | 135 | 57 |
e3e66acfb18f1c1f9942f07359a1d0215c24b5c4 | Benjamin Bouvier | 2019-04-18T15:53:10 | [meta] Generate legalizations in the Rust crate; | diff --git a/cranelift/codegen/meta/src/gen_inst.rs b/cranelift/codegen/meta/src/gen_inst.rs
index c975cef96..a93538ca3 100644
--- a/cranelift/codegen/meta/src/gen_inst.rs
+++ b/cranelift/codegen/meta/src/gen_inst.rs
@@ -665,7 +665,7 @@ fn typeset_to_string(ts: &TypeSet) -> String {
}
/// Generate the table of Valu... | 5 | 594 | 4 |
1f21349c4b4196aa9289ce50930c4ab519edea43 | Benjamin Bouvier | 2019-04-18T16:22:43 | [meta] Add CPU modes to the meta crate; | diff --git a/cranelift/codegen/meta/src/cdsl/cpu_modes.rs b/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
new file mode 100644
index 000000000..5e0e5b476
--- /dev/null
+++ b/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
@@ -0,0 +1,84 @@
+use crate::cdsl::types::LaneType;
+use crate::cdsl::xform::{TransformGroup, Transfor... | 7 | 211 | 7 |
d00e42ede37ca85b50372245ff3853af846d63b4 | Benjamin Bouvier | 2019-04-18T16:26:01 | [meta] Port shared and x86 legalizations to the Rust crate; | diff --git a/cranelift/codegen/meta/src/isa/x86/legalize.rs b/cranelift/codegen/meta/src/isa/x86/legalize.rs
new file mode 100644
index 000000000..7a0cd8379
--- /dev/null
+++ b/cranelift/codegen/meta/src/isa/x86/legalize.rs
@@ -0,0 +1,293 @@
+use crate::cdsl::ast::{bind, var, ExprBuilder, Literal};
+use crate::cdsl::in... | 3 | 1,086 | 1 |
dfb27c3402ca1dbc8e2e26394e03559f64ebff36 | Benjamin Bouvier | 2019-04-18T16:38:11 | [meta] Make TypeVar shareable and mutable;
... since its type set can change over time during type inference. Use a
Rc<RefCell> to achieve this. | diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs
index 41d94d67f..3b18d508f 100644
--- a/cranelift/codegen/meta/src/cdsl/typevar.rs
+++ b/cranelift/codegen/meta/src/cdsl/typevar.rs
@@ -30,25 +30,25 @@ pub struct TypeVarContent {
/// Type set associated to the typ... | 1 | 131 | 23 |
b85146e9453f463bc2129210ed145bfb734485a2 | Benjamin Bouvier | 2019-04-18T16:33:33 | [meta] Add helper methods and tests to TypeSet; | diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs
index d144eab48..41d94d67f 100644
--- a/cranelift/codegen/meta/src/cdsl/typevar.rs
+++ b/cranelift/codegen/meta/src/cdsl/typevar.rs
@@ -1,4 +1,7 @@
-use std::collections::BTreeSet;
+use std::cell::RefCell;
+use std::col... | 1 | 305 | 3 |
e71ae7b02ffd1a3bde295183b55aec07e2caa3f7 | Benjamin Bouvier | 2019-04-18T16:29:20 | [meta] Add instruction predicates; | diff --git a/cranelift/codegen/meta/src/cdsl/inst.rs b/cranelift/codegen/meta/src/cdsl/inst.rs
index c3aeed9ac..d219419c7 100644
--- a/cranelift/codegen/meta/src/cdsl/inst.rs
+++ b/cranelift/codegen/meta/src/cdsl/inst.rs
@@ -499,3 +499,102 @@ fn verify_ctrl_typevar(
Ok(other_typevars)
}
+
+/// A basic node in a... | 1 | 99 | 0 |
d92778a19e117f21ce95db0947188e027be1bb84 | Benjamin Bouvier | 2019-04-18T16:27:33 | [meta] Add Instruction helpers and change its representation to make it easily copiable;
- adds helpers used by other parts of the code
- allows cheap copies by having Instruction be a lightweight ref-cloned
wrapper of the actual instruction's content. | diff --git a/cranelift/codegen/meta/src/cdsl/inst.rs b/cranelift/codegen/meta/src/cdsl/inst.rs
index 4199d6424..c3aeed9ac 100644
--- a/cranelift/codegen/meta/src/cdsl/inst.rs
+++ b/cranelift/codegen/meta/src/cdsl/inst.rs
@@ -1,10 +1,15 @@
use crate::cdsl::camel_case;
-use crate::cdsl::formats::{FormatRegistry, Instruc... | 2 | 69 | 26 |
45013a1d2bd7a5c7f61683db6ef914a39ac13fa4 | iximeow | 2019-04-18T23:51:26 | Expose function definitions and populate FaerieCompiledFunction with function lengths | diff --git a/cranelift/faerie/src/backend.rs b/cranelift/faerie/src/backend.rs
index f413879ac..1deb46e07 100644
--- a/cranelift/faerie/src/backend.rs
+++ b/cranelift/faerie/src/backend.rs
@@ -96,7 +96,15 @@ pub struct FaerieBackend {
libcall_names: Box<Fn(ir::LibCall) -> String>,
}
-pub struct FaerieCompiledFu... | 3 | 24 | 6 |
21cdd55cd23da16ad701e313339235b4abb5bd3f | Jef | 2019-04-24T13:00:15 | Fix various panics and miscompilations | diff --git a/src/backend.rs b/src/backend.rs
index 016d96d38..a985fe785 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -632,9 +632,9 @@ impl TranslatedCodeSection {
#[derive(Debug, Default, Clone)]
pub struct BlockState {
- stack: Stack,
- depth: StackDepth,
- regs: Registers,
+ pub stack: Stack,
+... | 2 | 34 | 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.