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
28a938a62f2ae1a64145080c0014928c901b404f
Alex Crichton
2020-01-10T20:41:49
Remove `allow(improper_ctypes)` (#797) This was a bug on nightly a month or so ago but has since been fixed!
diff --git a/crates/api/src/lib.rs b/crates/api/src/lib.rs index e5196e7e1..7ccf342ca 100644 --- a/crates/api/src/lib.rs +++ b/crates/api/src/lib.rs @@ -6,8 +6,6 @@ //! and there to implement Rust idioms. This crate also defines the actual C API //! itself for consumption from other languages. -#![allow(improper_ct...
6
0
11
2b7d62700746153c357e30d04f5793d23c49efae
Alex Crichton
2020-01-10T20:36:31
Remove `HostRef` as a reexport from `wasmtime` (#794) This continues #788 and literally removes the type from the public API of the `wasmtime` crate, making it inaccessible to the outside world. Now it's purely an implementation detail, yay!
diff --git a/crates/api/src/lib.rs b/crates/api/src/lib.rs index 49622c94f..e5196e7e1 100644 --- a/crates/api/src/lib.rs +++ b/crates/api/src/lib.rs @@ -26,7 +26,7 @@ pub use crate::callable::Callable; pub use crate::externals::*; pub use crate::instance::Instance; pub use crate::module::Module; -pub use crate::r#re...
3
24
33
90db89d327be25806fc1b3c8c26a90ff082ffc69
Alex Crichton
2020-01-10T20:17:49
Refactor the `wasmtime-wast` crate, fix an early return (#798) This commit refactors the `wasmtime-wast` crate to internally make it a bit more concise with less repetition. Additionally it also improves the error messages by guaranteeing that all failed tests have context indicating where the test was defined. ...
diff --git a/build.rs b/build.rs index 10613feef..44428b3e3 100644 --- a/build.rs +++ b/build.rs @@ -43,12 +43,14 @@ fn main() -> anyhow::Result<()> { "simd", strategy, )?; - write_testsuite_tests( - &mut out, - "tests/spec_testsuit...
3
242
301
aa41d4b12bfb18ec34fecfde0f37a426674c63e3
Alex Crichton
2020-01-10T19:18:54
Refactor module creation slightly (#799) A few small updates to module creation in preparation for a future PR which is a bit more invasive here with interface types. * Move `read_imports_and_exports` to an instance method which configures fields directly rather than returning a number of fields. * Call betwee...
diff --git a/crates/api/src/module.rs b/crates/api/src/module.rs index 8ffb3d58d..3704f11e1 100644 --- a/crates/api/src/module.rs +++ b/crates/api/src/module.rs @@ -56,138 +56,6 @@ fn into_table_type(tt: wasmparser::TableType) -> TableType { TableType::new(ty, limits) } -fn read_imports_and_exports( - binary...
1
145
155
6b3ee479159c74c64defa97371c67e0828ae9a95
Alex Crichton
2020-01-10T19:17:41
Only require `str` in `new_with_name` (#796) * Only require `str` in `new_with_name` It's a bit more idiomatic to have APIs require `&str` rather than `String`, and the allocation doesn't matter much here since creating a `Module` is pretty expensive anyway. * Update a test
diff --git a/crates/api/src/instance.rs b/crates/api/src/instance.rs index b78048b89..49a51ba58 100644 --- a/crates/api/src/instance.rs +++ b/crates/api/src/instance.rs @@ -27,7 +27,7 @@ impl Resolver for SimpleResolver<'_> { pub fn instantiate_in_context( data: &[u8], imports: &[Extern], - module_name: O...
4
14
20
250ea0e5dbfbd5cde668e93bcf695bfb5b658a91
data-pup
2020-01-10T18:40:27
Verify that EBBs are non-empty (#1330) Co-authored-by: Joshua Nelson <joshua@yottadb.com>
diff --git a/cranelift/codegen/src/verifier/mod.rs b/cranelift/codegen/src/verifier/mod.rs index 2e58ec414..6d97d9af4 100644 --- a/cranelift/codegen/src/verifier/mod.rs +++ b/cranelift/codegen/src/verifier/mod.rs @@ -1971,6 +1971,9 @@ impl<'a> Verifier<'a> { self.typecheck_function_signature(errors)?; ...
1
17
0
c7b0d495506976f989becd3f5d3ffc29af89d6c3
Andrew Brown
2020-01-10T16:41:11
Fix V128AndNot type mapping (#1319) Prior to this fix, `type_of` could not determine the Cranelift type for the parameters to `V128AndNot`.
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index 68f9cac1b..839a218da 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -1715,6 +1715,7 @@ fn type_of(operator: &Operator) -> Type { | Operator::V128Const { .. } ...
1
3
1
e8c3302bc5b31316b638531386233ae30035a0e0
Andrew Brown
2020-01-09T19:46:21
Fix some additional clippy warnings
diff --git a/cranelift/codegen/src/ir/framelayout.rs b/cranelift/codegen/src/ir/framelayout.rs index 1b914a54f..983b20927 100644 --- a/cranelift/codegen/src/ir/framelayout.rs +++ b/cranelift/codegen/src/ir/framelayout.rs @@ -56,7 +56,7 @@ pub struct FrameLayout { impl FrameLayout { /// Create instance of FrameLay...
4
8
4
71914c7668f05531767aec361d077fc7c90ac00a
Andrew Brown
2020-01-08T18:12:41
Fix clippy warnings in EncodingBits
diff --git a/cranelift/codegen/shared/src/isa/x86/encoding_bits.rs b/cranelift/codegen/shared/src/isa/x86/encoding_bits.rs index ba6418f7c..9edb2a6e6 100644 --- a/cranelift/codegen/shared/src/isa/x86/encoding_bits.rs +++ b/cranelift/codegen/shared/src/isa/x86/encoding_bits.rs @@ -59,20 +59,18 @@ impl EncodingBits { ...
1
7
9
d765677fcc501da10b702f62dae02195fb100f44
Dan Gohman
2020-01-10T12:40:25
Add a `is_wasm_parameter` method to the wasm `FuncEnvironment`. (#1329) This provides a more flexible way to allow embedding to tell cranelift-wasm which function parameters are hidden, and which should be translated as wasm user variables. This replaces https://github.com/bytecodealliance/cranelift/pull/1086.
diff --git a/cranelift/wasm/src/environ/dummy.rs b/cranelift/wasm/src/environ/dummy.rs index 6b6f21016..cb6d78e9f 100644 --- a/cranelift/wasm/src/environ/dummy.rs +++ b/cranelift/wasm/src/environ/dummy.rs @@ -201,6 +201,10 @@ impl<'dummy_environment> TargetEnvironment for DummyFuncEnvironment<'dummy_envir } impl<'d...
3
16
4
43f1e05156bce744ec3d4e57e53497c9bc3bf7af
Philip Craig
2019-12-30T09:31:47
Update target-lexicon to 0.10
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 7f78b3ddd..d446b97f2 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -39,7 +39,7 @@ serde = "1.0.8" term = "0.6.1" capstone = { version = "0.6.0", optional = true } wabt = { version = "0.9.1", optional = true } -target-lexicon = "0.9" +ta...
12
24
19
41780fb1a68a792f113464960149e3c548c2cb91
Alex Crichton
2019-12-05T23:45:57
Handle same-named imports with different signatures This commit fixes the `wasmtime::Instance` instantiation API when imports have the same name but might be imported under different types. This is handled in the API by listing imports as a list instead of as a name map, but they were interpreted as a name map under t...
diff --git a/crates/api/src/externals.rs b/crates/api/src/externals.rs index c5be5b27a..c0b6156c7 100644 --- a/crates/api/src/externals.rs +++ b/crates/api/src/externals.rs @@ -56,7 +56,7 @@ impl Extern { } } - pub(crate) fn get_wasmtime_export(&mut self) -> wasmtime_runtime::Export { + pub(crate)...
8
128
50
4b7677e4dab8dff92815bda8fb978b43e3408d17
Peter Huene
2020-01-09T22:09:56
Additional PR feedback changes. * Add more comments. * Use `contains` from bitflags. * Format wasi-test source. * Remove permission check from Windows `path_open` impl.
diff --git a/crates/test-programs/wasi-tests/src/lib.rs b/crates/test-programs/wasi-tests/src/lib.rs index 008e570bb..0a9bee6f9 100644 --- a/crates/test-programs/wasi-tests/src/lib.rs +++ b/crates/test-programs/wasi-tests/src/lib.rs @@ -25,8 +25,10 @@ pub fn open_scratch_directory(path: &str) -> Result<wasi::Fd, String...
3
18
18
1c4c78ab03a569e17d931bf2700487d1430bf849
Peter Huene
2020-01-09T21:57:32
Add the Cargo.lock for the test programs.
diff --git a/crates/test-programs/wasi-tests/Cargo.lock b/crates/test-programs/wasi-tests/Cargo.lock new file mode 100644 index 000000000..83b94cc7b --- /dev/null +++ b/crates/test-programs/wasi-tests/Cargo.lock @@ -0,0 +1,30 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing...
1
30
0
8fdd776f81cc533468e3112d77f5b67b5e90c1e3
Peter Huene
2019-12-10T22:38:38
Implement fd_fdstat_set_flags for Windows. This commit implements `fd_fdstat_set_flags` for Windows. Additionally, it fixes a problem where `O_APPEND` was not working correctly because `GENERIC_WRITE` was always being set; as a result, `FILE_WRITE_DATA` could not be removed from the permission set to properly enable ...
diff --git a/crates/test-programs/wasi-tests/src/bin/fd_flags_set.rs b/crates/test-programs/wasi-tests/src/bin/fd_flags_set.rs new file mode 100644 index 000000000..e642ca19a --- /dev/null +++ b/crates/test-programs/wasi-tests/src/bin/fd_flags_set.rs @@ -0,0 +1,165 @@ +use std::{env, process}; +use wasi; +use wasi_test...
6
245
16
4197cc562e9e72edb5981ff914334efef64f2280
Alex Crichton
2020-01-09T23:10:05
Don't rebuild the test suite if wast files change (#787) They're read dynamically so there's no need to rebuild the test suite, it'll automatically pick up the changes when it's read while the tests are executed.
diff --git a/build.rs b/build.rs index 4eed5d415..10613feef 100644 --- a/build.rs +++ b/build.rs @@ -139,7 +139,6 @@ fn write_testsuite_tests( strategy: &str, ) -> anyhow::Result<()> { let path = path.as_ref(); - println!("cargo:rerun-if-changed={}", path.display()); let testname = extract_name(path)...
1
0
1
317f5989691203e0c3d816b3a565f166d09964f5
Alex Crichton
2020-01-09T22:22:49
Update `CodeMemory` to be `Send + Sync` (#780) * Update `CodeMemory` to be `Send + Sync` This commit updates the `CodeMemory` type in wasmtime to be both `Send` and `Sync` by updating the implementation of `Mmap` to not store raw pointers. This avoids the need for an `unsafe impl` and leaves the unsafety as it i...
diff --git a/crates/jit/src/code_memory.rs b/crates/jit/src/code_memory.rs index 49dc86a9e..49e6d5ee2 100644 --- a/crates/jit/src/code_memory.rs +++ b/crates/jit/src/code_memory.rs @@ -14,6 +14,11 @@ pub struct CodeMemory { published: usize, } +fn _assert() { + fn _assert_send_sync<T: Send + Sync>() {} + ...
2
29
15
037c9d652b9b0a61980c6a79b10b7f8e203ccd5a
Dan Gohman
2020-01-09T21:26:29
Fix expected trap messages.
diff --git a/tests/custom_signal_handler.rs b/tests/custom_signal_handler.rs index 3bea15adf..0b45f69f0 100644 --- a/tests/custom_signal_handler.rs +++ b/tests/custom_signal_handler.rs @@ -104,7 +104,7 @@ mod tests { println!("calling read_out_of_bounds..."); let trap = invoke_export(&instance...
1
2
2
f83eafd6c29a35235c94e48ec7996f7dd34aedcf
Jakub Konka
2020-01-09T21:04:21
Add missing dev-dependency: wasmtime-runtime
diff --git a/Cargo.lock b/Cargo.lock index a6353468c..b4a44fa79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2006,6 +2006,7 @@ dependencies = [ "wasmtime-interface-types", "wasmtime-jit", "wasmtime-obj", + "wasmtime-runtime", "wasmtime-wasi", "wasmtime-wasi-c", "wasmtime-wast", diff --git a/Cargo.toml b/Car...
2
2
0
64afd0305a2747b8906efddd2de45ab15db1131e
Jakub Konka
2020-01-09T21:01:56
Remove HostRefs in custom_signal_handlers
diff --git a/tests/custom_signal_handler.rs b/tests/custom_signal_handler.rs index 253d62d49..3bea15adf 100644 --- a/tests/custom_signal_handler.rs +++ b/tests/custom_signal_handler.rs @@ -74,11 +74,11 @@ mod tests { #[test] fn test_custom_signal_handler_single_instance() { - let engine = HostRef::ne...
1
10
11
036fd8ead5e3637bc3f9965643313c64d270d473
Jakub Konka
2020-01-09T20:16:31
Fix path_open_read_without_rights test Fixes `path_open_read_without_rights` test making the CI green again.
diff --git a/crates/test-programs/wasi-tests/src/bin/path_open_read_without_rights.rs b/crates/test-programs/wasi-tests/src/bin/path_open_read_without_rights.rs index 47d4c7aaa..26113c08c 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_open_read_without_rights.rs +++ b/crates/test-programs/wasi-tests/src/bin/...
1
8
3
4e0c1c08c18f1943505ffe7b1a257e157f99437c
Dan Gohman
2020-01-09T18:54:47
Update Cargo.lock. Cargo.lock is checked into the repositoryu now, so we need to explicitly keep it up to date.
diff --git a/Cargo.lock b/Cargo.lock index d91401e01..a6353468c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1966,7 +1966,9 @@ name = "wasmtime" version = "0.7.0" dependencies = [ "anyhow", + "cfg-if", "file-per-thread-logger", + "libc", "pretty_env_logger", "rayon", "region", @@ -1979,6 +1981,7 @@ dependen...
1
4
0
f7f10c12b33b2f78107646c76f31c5b9046414a3
Marcin Mielniczuk
2020-01-07T16:19:20
Fix rights checks across the codebase. * Fix path_open granting more rights than requested * Add missing rights checks in: fd_fdstat_set_flags, fd_filestat_get, poll_oneoff * Fix `open_scratch_directory` not requesting any rights. * Properly request needed rights in various tests * Add some extra trace-level logging *...
diff --git a/crates/test-programs/wasi-tests/src/bin/fd_advise.rs b/crates/test-programs/wasi-tests/src/bin/fd_advise.rs index 359f47fbb..408edf349 100644 --- a/crates/test-programs/wasi-tests/src/bin/fd_advise.rs +++ b/crates/test-programs/wasi-tests/src/bin/fd_advise.rs @@ -9,7 +9,11 @@ unsafe fn test_fd_advise(dir_f...
12
71
36
5efa640e232ba7069b44da6daab6e72e80323c6d
Marcin Mielniczuk
2020-01-07T16:08:51
Add a test for path_open read rights
diff --git a/crates/test-programs/wasi-tests/src/bin/path_open_read_without_rights.rs b/crates/test-programs/wasi-tests/src/bin/path_open_read_without_rights.rs new file mode 100644 index 000000000..c3f499bc9 --- /dev/null +++ b/crates/test-programs/wasi-tests/src/bin/path_open_read_without_rights.rs @@ -0,0 +1,88 @@ +...
2
109
0
54a398ad69da917478c175767dd263de844f052d
Marcin Mielniczuk
2020-01-08T18:44:07
Fix writing timeout events. Check that we only return one timeout event.
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs index 1af4ed057..ddfbce0df 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs @@ -65,11 +65,17 @@ unsafe fn test_stdi...
2
15
6
a2b556f1b0a48308c337dd0b4e57c4290d01001a
Marcin Mielniczuk
2019-12-15T18:27:12
Do not loop with nfds=0, timeout=-1
diff --git a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs index b82054cdc..c8c8f34ed 100644 --- a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs +++ b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs @@ -125,18 +125,13 @@ pub(c...
1
6
11
5cd3e9904f5ba05dde9992a08fdf333554a0b34d
Marcin Mielniczuk
2019-12-11T18:35:48
Rename make_read_event to make_rw_event
diff --git a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs index b45e10e08..b82054cdc 100644 --- a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs +++ b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs @@ -81,7 +81,7 @@ fn stdin_...
1
3
3
a8e9b1a0d5960a201fb4f6b7c3c3d0fccd0aeb5f
Marcin Mielniczuk
2019-12-11T18:34:17
Comment on infinite sleep
diff --git a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs index 4df00f4ea..b45e10e08 100644 --- a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs +++ b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs @@ -130,6 +130,7 @@ pub(cra...
1
1
0
7cb8137fae716f78abad14706d9cb464628a45d8
Marcin Mielniczuk
2019-12-11T18:24:25
Avoid issuing syscalls if we're requested to return immediately
diff --git a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs index 3276045a4..4df00f4ea 100644 --- a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs +++ b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs @@ -188,10 +188,9 @@ pub(cr...
1
11
3
40ec01a1e869e79fe59d8c88c956a4f394b8ccc8
Marcin Mielniczuk
2019-12-09T18:44:05
Fix poll_oneoff behavior when fd_events are empty
diff --git a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs index c6f70fb03..3276045a4 100644 --- a/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs +++ b/crates/wasi-common/src/sys/windows/hostcalls_impl/misc.rs @@ -116,8 +116,26 @@ pub(cr...
1
21
6
98e84ae48774bd9f1e2d33fe8e7b8879cd4cfaa0
Marcin Mielniczuk
2019-12-08T19:37:14
Refactor poll_oneoff and return stdin if immediately readable.
diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs index 302d5d76b..821ba0a47 100644 --- a/crates/wasi-common/src/error.rs +++ b/crates/wasi-common/src/error.rs @@ -158,6 +158,7 @@ impl Error { Self::Winx(err) => crate::sys::host_impl::errno_from_win(*err), } } + ...
3
95
66
4695c95374e1f53c5d00ca4c89561046e36bdb58
Marcin Mielniczuk
2019-11-10T15:41:16
WIP implementation of poll_oneoff on Windows
diff --git a/crates/test-programs/build.rs b/crates/test-programs/build.rs index 0f223b1c7..c7c946062 100644 --- a/crates/test-programs/build.rs +++ b/crates/test-programs/build.rs @@ -176,7 +176,6 @@ mod wasi_tests { "dangling_symlink" => true, "symlink_loop" => true, ...
2
150
3
d651408b5abc023716872507786a43ead2d95691
Yury Delendik
2020-01-09T16:02:33
Module name (#775)
diff --git a/crates/api/src/instance.rs b/crates/api/src/instance.rs index dc7a89390..81b2a4cce 100644 --- a/crates/api/src/instance.rs +++ b/crates/api/src/instance.rs @@ -29,6 +29,7 @@ impl Resolver for SimpleResolver { pub fn instantiate_in_context( data: &[u8], imports: Vec<(String, String, Extern)>, + ...
8
149
13
c975a92a3af7acaf6b7ac0f4c0787edd67128693
Alex Crichton
2020-01-08T20:41:47
Remove unsafety from `Trap` API (#779) * Remove unsafety from `Trap` API This commit removes the `unsafe impl Send` for `Trap` by removing the internal `HostRef` and leaving `HostRef` entirely as an implementation detail of the C API. cc #708 * Run rustfmt
diff --git a/Cargo.lock b/Cargo.lock index 0c9041cc3..d91401e01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1971,7 +1971,6 @@ dependencies = [ "rayon", "region", "target-lexicon", - "thiserror", "wasi-common", "wasmparser 0.45.1", "wasmtime-environ", diff --git a/crates/api/Cargo.toml b/crates/api/Cargo.to...
9
72
116
04d233301c56d15b476f19488475847f56fa32af
Alex Crichton
2020-01-08T17:10:53
Require the `Send` trait for `TargetIsa` The `TargetIsa` trait already requires that the implementor is `Sync` to be shared across threads, and this commit adds in an additional restriction of `Send` to ensure that the type can be sent-by-value across threads as well. This is part of an effort to make various data st...
diff --git a/cranelift/codegen/src/isa/mod.rs b/cranelift/codegen/src/isa/mod.rs index 567933339..4b0a3e7de 100644 --- a/cranelift/codegen/src/isa/mod.rs +++ b/cranelift/codegen/src/isa/mod.rs @@ -198,7 +198,7 @@ impl TargetFrontendConfig { /// Methods that are specialized to a target ISA. Implies a Display trait th...
1
1
1
06be4b14956061a4231771912f85a98904b70cec
Jakub Konka
2020-01-08T15:34:38
[wasi-common] Clean up fd_filestat_get implementation (#757) * Clean up fd_filestat_get implementation This commit does 4 things: * Adds `yanix::file::fstat`, a wrapper around `libc::fstat`. * It essentially reverts 89fbde2 for Unix hosts -- in other words, it brings back the use of `fstat` to obtain `libc::st...
diff --git a/crates/wasi-common/src/helpers.rs b/crates/wasi-common/src/helpers.rs index 057540261..f176b8d1f 100644 --- a/crates/wasi-common/src/helpers.rs +++ b/crates/wasi-common/src/helpers.rs @@ -1,15 +1,5 @@ use crate::{Error, Result}; -use std::convert::TryInto; use std::str; -use std::time::{SystemTime, UNIX_...
15
183
216
b46f26361f89d753cfdee79c9cd7cc57d89d14fd
Alex Crichton
2020-01-07T22:29:51
Don't render errors twice, only once (#773) Change a `bail!` macro which renders the debug representation of an error to a call to `context` which preserves the original error object and improves rendering later on down the road.
diff --git a/src/commands/run.rs b/src/commands/run.rs index cafd7f19f..2ddf47fe0 100644 --- a/src/commands/run.rs +++ b/src/commands/run.rs @@ -264,10 +264,10 @@ impl RunCommand { }) .collect::<Result<Vec<_>, _>>()?; - let instance = HostRef::new(match Instance::new(store, &module, &...
1
4
4
296ebc46fd8cd6372399a99ab22b02f34d9327cd
Andrew Brown
2020-01-07T22:21:50
Update wasmparser to 0.45.1 (#776)
diff --git a/Cargo.lock b/Cargo.lock index 973c53d78..0c9041cc3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -443,7 +443,7 @@ dependencies = [ "log", "serde", "thiserror", - "wasmparser 0.45.0", + "wasmparser 0.45.1", ] [[package]] @@ -948,7 +948,7 @@ dependencies = [ "smallvec", "thiserror", "typemap", ...
9
19
19
dd8a1fc90788547a08af06ba42acab89cd68c96a
Andrew Brown
2020-01-07T21:41:26
Update wast to 5.0.1 (#774)
diff --git a/Cargo.lock b/Cargo.lock index e0a39439b..9618f46c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2215,7 +2215,7 @@ version = "0.7.0" dependencies = [ "anyhow", "wasmtime", - "wast 4.0.0", + "wast 5.0.1", ] [[package]] @@ -2236,6 +2236,15 @@ dependencies = [ "leb128", ] +[[package]] +name = "wa...
2
11
2
e2c351ba189e88f26880f0e2e7d0db9f9f4220fb
Peter Huene
2020-01-03T00:32:00
Disable doc tests for the CLI crate.
diff --git a/Cargo.toml b/Cargo.toml index 429813455..3e72c70c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,9 @@ edition = "2018" default-run = "wasmtime" publish = false +[lib] +doctest = false + [dependencies] # Enable all supported architectures by default. wasmtime = { path = "crates/api" }
1
3
0
41528c82bcd01db213409d5b1207c0f76bd92e92
Alex Crichton
2020-01-07T20:07:48
Remove the `Flags` type from `Config` API (#769) * Remove the `Flags` type from `Config` API This commit removes the final foreign type from the `Config` API in the `wasmtime` crate. The cranelift `Flags` type is now expanded into various options on the `Config` structure itself, all prefixed with `cranelift_` s...
diff --git a/Cargo.lock b/Cargo.lock index 5a94f6511..e0a39439b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1991,7 +1991,6 @@ dependencies = [ "wasmtime-interface-types", "wasmtime-jit", "wasmtime-obj", - "wasmtime-runtime", "wasmtime-wasi", "wasmtime-wasi-c", "wasmtime-wast", diff --git a/Cargo.toml b/Car...
10
82
71
8ff6d640d6d7bf64f1f3936c4df4e995db67e711
C Burgos
2020-01-07T18:09:34
Remove unused function and associated tests (#1312) * Remove unused function and associated tests * Removed unused imports
diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs index 67446b21f..5251121cd 100644 --- a/cranelift/codegen/src/dominator_tree.rs +++ b/cranelift/codegen/src/dominator_tree.rs @@ -448,61 +448,6 @@ impl DominatorTree { } } -impl DominatorTree { - /// When splitting...
1
0
117
9ead93684e1539a1d2bac0a8edc07c3e288360d1
Alex Crichton
2020-01-07T17:45:13
Ensure `Trap` is returned for start function traps (#768) * Ensure `Trap` is returned for start function traps Handle another case of errors coming out of instantiation, resolve a FIXME, and remove an unneeded dependency from the wast testsuite crate. * Run rustfmt
diff --git a/Cargo.lock b/Cargo.lock index ea00c661a..5a94f6511 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2216,7 +2216,6 @@ version = "0.7.0" dependencies = [ "anyhow", "wasmtime", - "wasmtime-runtime", "wast 4.0.0", ] diff --git a/crates/api/src/instance.rs b/crates/api/src/instance.rs index f7fc2f599..f8...
5
8
13
787f50e107bbd434e9f28d413ec39ebb14fb88d5
Alex Crichton
2020-01-06T23:34:48
Remove usage of `Features` from `wasmtime::Config` API (#763) Instead expose a number of boolean accessors which doesn't require users to construct a foreign `Features` type and allows us to decouple the API of the `wasmtime` crate from the underlying implementation detail.
diff --git a/Cargo.lock b/Cargo.lock index c5a202d7b..ca5cb311f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2132,7 +2132,6 @@ dependencies = [ "wasmtime", "wasmtime-environ", "wasmtime-interface-types", - "wasmtime-jit", "wasmtime-runtime", "wasmtime-wasi", ] @@ -2160,7 +2159,6 @@ dependencies = [ "anyhow...
11
110
57
e674eee609bd57fe4395ece575a44a60b23d913a
Jakub Konka
2020-01-06T17:44:35
[wasi-common] Use thiserror proc macros for auto From impls (#758) * Use thiserror proc macros for auto From impls This commit refactors `wasi_common::error::Error` by using `#[from]` proc macro to autoderive `From` for wrapped errors. * Back port changes to snapshot0 * Auto impl Display for WasiError * F...
diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs index 1707f180e..302d5d76b 100644 --- a/crates/wasi-common/src/error.rs +++ b/crates/wasi-common/src/error.rs @@ -3,11 +3,12 @@ use crate::wasi; use std::convert::Infallible; use std::num::TryFromIntError; -use std::{ffi, fmt, str}; +use ...
2
24
108
1d810a5de9c812f701f34c4d5bfad4e22d03bc82
Dan Gohman
2020-01-02T10:53:26
Initial support for securing tty I/O. (#684) * Initial support for securing tty I/O. * Update the tests. * Fix warnings * Update crates/wasi-common/src/fdentry.rs Co-Authored-By: Jakub Konka <jakub.konka@golem.network> * Properly sandbox stderr. * Document why the scratch buffer is 4 elements long. ...
diff --git a/crates/wasi-common/src/fdentry.rs b/crates/wasi-common/src/fdentry.rs index 2bad6f79a..73027cda1 100644 --- a/crates/wasi-common/src/fdentry.rs +++ b/crates/wasi-common/src/fdentry.rs @@ -162,6 +162,14 @@ impl FdEntry { Ok(()) } } + + /// Test whether this descriptor is consid...
6
243
16
69683e8b67dd2dffd4c50f2c8d49812280706998
Andrew Brown
2019-12-31T18:24:56
Update Cranelift to 0.52.0 (#710) * Add unimplemented stubs for Cranelift interfaces Cranelift changes to FuncEnvironment, TargetEnvironment, and GlobalInit (see https://github.com/bytecodealliance/cranelift/pull/1073) require these changes to compile wasmtime. * Upgrade Cranelift to 0.52.0
diff --git a/Cargo.lock b/Cargo.lock index 333c610ff..c5a202d7b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -358,18 +358,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.50.0" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd05aac8cefcde...
9
125
39
681445b18b4479aeccf9c77ed5653acb082bd5f4
Yury Delendik
2019-12-30T22:25:16
Fail with Trap in Instance::new() instead of Error (#683)
diff --git a/crates/api/examples/hello.rs b/crates/api/examples/hello.rs index ccf146bea..6d00ed15b 100644 --- a/crates/api/examples/hello.rs +++ b/crates/api/examples/hello.rs @@ -7,7 +7,7 @@ use wasmtime::*; struct HelloCallback; impl Callable for HelloCallback { - fn call(&self, _params: &[Val], _results: &mu...
18
172
86
1eed2b7542ede41acd9644ccbaaa1994480876a6
Sergei Pepyakin
2019-12-24T19:38:01
Make `invoke` public. (#749)
diff --git a/crates/jit/src/lib.rs b/crates/jit/src/lib.rs index 259005625..bc5fc3a2f 100644 --- a/crates/jit/src/lib.rs +++ b/crates/jit/src/lib.rs @@ -35,7 +35,7 @@ mod target_tunables; pub mod native; pub mod trampoline; -pub use crate::action::{ActionError, ActionOutcome, RuntimeValue}; +pub use crate::action::...
1
1
1
9fcd56122044428e6fa2d3941b459ad4ef47cc6d
bjorn3
2019-12-22T06:10:36
Use explicit rex for brz and brnz encodings (#1308) Fixes #1305. This papers over the problem to prevent crashes while we investigate the cause.
diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs index 4fe223250..68cc77be0 100644 --- a/cranelift/codegen/meta/src/isa/x86/encodings.rs +++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs @@ -1368,10 +1368,10 @@ pub(crate) fn define( e.enc_both(brff,...
1
4
4
b486289ab8e1a304cc585f7f94b3375e08ae4665
Andrew Brown
2019-12-18T20:50:12
Translate Wasm's V128AndNot to CLIF's band_not (#1297) The CLIF is already implemented for x86 SIMD.
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index e16b187cb..e15559409 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -1189,6 +1189,10 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( let (a, b) = p...
1
5
2
086ff63e6b38efcb9a69379fb4e3f6ea3a622a9c
Andrew Brown
2019-12-18T16:24:01
Update wasmparser to 0.45.0 (#733)
diff --git a/Cargo.lock b/Cargo.lock index 60df42fbb..333c610ff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -960,7 +960,7 @@ dependencies = [ "smallvec", "thiserror", "typemap", - "wasmparser 0.44.0", + "wasmparser 0.45.0", "wat", ] @@ -1931,9 +1931,9 @@ checksum = "1527c84a5bd585215f29c06b0e2a5274e478ad4dfc...
9
18
18
31472fbb5a6417ea3d9eb10417ff5ea49712998a
data-pup
2019-12-17T21:24:18
fix module environment doc typos (#732)
diff --git a/crates/environ/src/module_environ.rs b/crates/environ/src/module_environ.rs index e84dd4b85..9173d35a7 100644 --- a/crates/environ/src/module_environ.rs +++ b/crates/environ/src/module_environ.rs @@ -58,7 +58,7 @@ pub struct ModuleEnvironment<'data> { } impl<'data> ModuleEnvironment<'data> { - /// A...
1
2
2
887f897c9a148e87a265d16e81c596efe5091c8d
Andrew Brown
2019-12-17T20:07:11
Update wasmparser to 0.45.0 (#1295) Adds many new operators and a few API changes.
diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml index 57230b488..a7476558c 100644 --- a/cranelift/wasm/Cargo.toml +++ b/cranelift/wasm/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["webassembly", "wasm"] edition = "2018" [dependencies] -wasmparser = { version = "0.39.2", default-features = false } +wa...
3
117
91
dc3f88b297b967327ad303a1fdcb3abf599efbb0
Alex Crichton
2019-12-17T15:25:09
Store v128 as `u128` in `wasmtime` crate (#689) As [suggested], this seems like a better and more ergonomic idea than using `[u8; 16]`! [suggested]: https://github.com/bytecodealliance/wasmtime/commit/3d69e04659a9dade78fa80a76e69e3f1b9d1af07#r36326017
diff --git a/crates/api/src/values.rs b/crates/api/src/values.rs index 0d87ea6dd..49a7e3115 100644 --- a/crates/api/src/values.rs +++ b/crates/api/src/values.rs @@ -37,7 +37,7 @@ pub enum Val { FuncRef(HostRef<Func>), /// A 128-bit number - V128([u8; 16]), + V128(u128), } macro_rules! accessors { ...
2
4
4
8db734971274fc3427552a306532b2711f38b100
Y-Nak
2019-12-17T10:28:45
Report when output register annotation is missing (#1289)
diff --git a/cranelift/filetests/src/test_binemit.rs b/cranelift/filetests/src/test_binemit.rs index b291f6144..200251bfa 100644 --- a/cranelift/filetests/src/test_binemit.rs +++ b/cranelift/filetests/src/test_binemit.rs @@ -231,18 +231,8 @@ impl SubTest for TestBinEmit { // Send legal encodings into t...
1
29
25
d1866f0e09661f7dad40340c5c81cbf77f74bfce
Patrick Ventuzelo
2019-12-17T04:51:07
[lightbeam] replace asserts by Errors in module.rs / translate_only (#713) * replace assert by Errors * add better errors message module.rs
diff --git a/crates/lightbeam/src/module.rs b/crates/lightbeam/src/module.rs index 9e93cec5b..02cb9c09e 100644 --- a/crates/lightbeam/src/module.rs +++ b/crates/lightbeam/src/module.rs @@ -7,7 +7,7 @@ use cranelift_codegen::{ isa, }; use memoffset::offset_of; -use more_asserts::assert_le; + use std::{convert::T...
1
16
8
86b66e8edefb9a99e8e2b29150ce060c44328e1f
Philip Craig
2019-12-17T03:38:09
Fix build failure in cranelift-codegen (#1294) error[E0425]: cannot find value `ones` in this scope --> cranelift-codegen/meta/src/isa/x86/legalize.rs:564:33 | 564 | def!(c = vconst(ones)), | ^^^^ not found in this scope
diff --git a/cranelift/codegen/meta/src/isa/x86/legalize.rs b/cranelift/codegen/meta/src/isa/x86/legalize.rs index 8e7c79d81..f62019367 100644 --- a/cranelift/codegen/meta/src/isa/x86/legalize.rs +++ b/cranelift/codegen/meta/src/isa/x86/legalize.rs @@ -561,7 +561,7 @@ pub(crate) fn define(shared: &mut SharedDefinitions...
1
1
1
c2ba419409cbe043ee36bfc35b1ef1813353d535
Dan Gohman
2019-12-16T21:34:22
Misc yanix fixes (#715) * Correctly handle possibly misaligned pointers in readdir This reapplies #615, which was inadvertently reverted. * Tidy up unneeded `self::` qualifiers. * Make Dir's contents private. Also remove the `unsafe` from `impl_iter`. With `Dir`'s field being private, we can rely on the p...
diff --git a/crates/wasi-common/src/host.rs b/crates/wasi-common/src/host.rs index 8af57ec47..2b7900751 100644 --- a/crates/wasi-common/src/host.rs +++ b/crates/wasi-common/src/host.rs @@ -63,12 +63,12 @@ impl Dirent { let sys_dirent = raw.as_mut_ptr() as *mut __wasi_dirent_t; unsafe { - ...
11
40
26
ca36e4040d64422dd064f907f26deb1c5024f3c4
Alex Crichton
2019-12-16T16:37:56
Move the `fuzz` directory into main workspace This'll help us track dependencies and head off issues like #721
diff --git a/Cargo.lock b/Cargo.lock index 6d50b1e27..6497401b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -922,6 +922,15 @@ version = "0.2.66" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d515b1f41455adea1313a4a2ac8a8a477634fbae63cc6100e3aebb207ce61558" +[[package]] +name = "libfuz...
3
26
4
fcb05937964186c6fa7fa0f8e411c4bff59d3c62
Joshua Nelson
2019-12-14T19:33:36
[module] Finalize definitions for the end-user Closes https://github.com/bytecodealliance/cranelift/issues/1288 by calling `module.finalize_definitions` whenever `module.finish` is called.
diff --git a/cranelift/module/src/module.rs b/cranelift/module/src/module.rs index 34964a7b6..56a94b89d 100644 --- a/cranelift/module/src/module.rs +++ b/cranelift/module/src/module.rs @@ -714,7 +714,8 @@ where /// Consume the module and return the resulting `Product`. Some `Backend` /// implementations may p...
1
2
1
77bf76897c276f110d3f98ff4df48fe4103e1dff
Jakub Konka
2019-12-15T19:26:05
Fix wasi-common-cbindgen missing no_mangle attr
diff --git a/crates/wasi-common/wasi-common-cbindgen/src/lib.rs b/crates/wasi-common/wasi-common-cbindgen/src/lib.rs index 66530b99a..2d43c1ec1 100644 --- a/crates/wasi-common/wasi-common-cbindgen/src/lib.rs +++ b/crates/wasi-common/wasi-common-cbindgen/src/lib.rs @@ -141,6 +141,7 @@ pub fn wasi_common_cbindgen_old(att...
1
1
0
d641e6e7b034b4f1c2a7cdf07a5c2cfa41a61a7c
Alex Crichton
2019-12-12T23:19:40
Update some more wasi test programs to 0.9.0 Largely the same as the previous update!
diff --git a/crates/test-programs/wasi-tests/src/bin/dangling_fd.rs b/crates/test-programs/wasi-tests/src/bin/dangling_fd.rs index 23e08d3a3..961f4c0e0 100644 --- a/crates/test-programs/wasi-tests/src/bin/dangling_fd.rs +++ b/crates/test-programs/wasi-tests/src/bin/dangling_fd.rs @@ -1,54 +1,33 @@ use more_asserts::as...
6
109
262
e9c2905795810e278d683aef62b64c88755a6f64
Patrick Ventuzelo
2019-12-13T09:55:21
fix introduced clippy warning
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index 5a5246604..c03442e44 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -346,11 +346,7 @@ impl Registers { let c = &mut scratch_counts.1[gpr as usize]; *c = match c.checked_sub(1) { ...
2
9
11
d4df756acf7f163612d3b1b000e9f7e52207fda6
Andrew Brown
2019-12-13T01:01:31
Remove packed_struct dependency; closes #1271 and #1284 (#1282)
diff --git a/cranelift/codegen/meta/src/isa/x86/recipes.rs b/cranelift/codegen/meta/src/isa/x86/recipes.rs index 92d339e6b..945146048 100644 --- a/cranelift/codegen/meta/src/isa/x86/recipes.rs +++ b/cranelift/codegen/meta/src/isa/x86/recipes.rs @@ -100,7 +100,7 @@ impl<'builder> RecipeGroup<'builder> { /// Given a seq...
5
253
92
054b79427e160b9842983e6c657605b697ec1682
Alex Crichton
2019-12-12T23:19:58
Fix the path_filestat test on Linux (#706) Only very recently in #700 did we actually start running wasi tests again (they weren't running by accident). Just before that landed we also landed #688 which had some refactorings. Unfortunately #688 had a minor issue in it which wasn't caught because tests weren't run. ...
diff --git a/crates/wasi-common/src/old/snapshot_0/sys/unix/linux/filetime.rs b/crates/wasi-common/src/old/snapshot_0/sys/unix/linux/filetime.rs index a28687441..8162b391f 100644 --- a/crates/wasi-common/src/old/snapshot_0/sys/unix/linux/filetime.rs +++ b/crates/wasi-common/src/old/snapshot_0/sys/unix/linux/filetime.rs...
2
2
2
af64187ec7eb4d146bb70e2a07f0d343943eb6f5
Andrew Brown
2019-12-12T21:52:26
Truncate over-large parameters to splat (#1276) See https://github.com/WebAssembly/simd/issues/149 for associated discussion on this.
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index 41f5726cd..efd4d2256 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -1093,15 +1093,16 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( // the v128.c...
1
7
6
4e67ccfbc36e7e9e1b008d74c3356160c759368f
Peter Huene
2019-12-12T00:09:30
Fix WASI test program running. PR #585 moved the execution of a `_start` function to the CLI rather than have it automatically invoked by module instantiation. Unfortunately, this broke the WASI test programs that were relying on this behavior from instantiation. This fixes it by adding an invocation of the `_start`...
diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs index ea631eaab..5de74c0f3 100644 --- a/crates/test-programs/tests/wasm_tests/runtime.rs +++ b/crates/test-programs/tests/wasm_tests/runtime.rs @@ -100,11 +100,27 @@ pub fn instantiate(data: &[u8], bin_name:...
1
17
1
ddd23000106853a62a0159b00a8f7fbb509c0917
XAMPPRocky
2019-12-11T18:46:45
Document Callable, Trap, HostRef, and ValType (#693)
diff --git a/crates/api/src/callable.rs b/crates/api/src/callable.rs index 84026ca3d..c06b76d62 100644 --- a/crates/api/src/callable.rs +++ b/crates/api/src/callable.rs @@ -9,7 +9,84 @@ use wasmtime_environ::ir; use wasmtime_jit::InstanceHandle; use wasmtime_runtime::Export; +/// A trait representing a function tha...
5
140
8
6750605a615bf70d79db5cb8df0793dfdd860b2b
Peter Huene
2019-12-11T07:03:36
Fix AppVerifier check regarding invalid call to VirtualFree. (#697) Calls to `VirtualFree` that pass `MEM_RELEASE` must specify a size of 0 as the OS will be freeing the original range for the given base address. The calls to free `MMap` memory on Windows were silently failing because of an incorrect assertion (o...
diff --git a/crates/runtime/src/mmap.rs b/crates/runtime/src/mmap.rs index 32acabbd8..a5387f870 100644 --- a/crates/runtime/src/mmap.rs +++ b/crates/runtime/src/mmap.rs @@ -255,8 +255,8 @@ impl Drop for Mmap { use winapi::ctypes::c_void; use winapi::um::memoryapi::VirtualFree; use...
1
2
2
0cde30197d959c1b16b17e0f0367e14805aeaef9
Nick Fitzgerald
2019-12-06T23:48:46
fuzzing: Add initial API call fuzzer We only generate *valid* sequences of API calls. To do this, we keep track of what objects we've already created in earlier API calls via the `Scope` struct. To generate even-more-pathological sequences of API calls, we use [swarm testing]: > In swarm testing, the usual practice ...
diff --git a/crates/fuzzing/src/generators.rs b/crates/fuzzing/src/generators.rs index 043ce47ba..1fb6a29c0 100644 --- a/crates/fuzzing/src/generators.rs +++ b/crates/fuzzing/src/generators.rs @@ -8,15 +8,28 @@ //! wrapper over an external tool, such that the wrapper implements the //! `Arbitrary` trait for the wrapp...
6
360
4
a8cef868266196e57856baf85f91df32b2c4dc51
Patrick Ventuzelo
2019-12-10T13:07:50
cargo fmt
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index 3f0cc29a8..5a5246604 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -3178,11 +3178,9 @@ impl<'this, M: ModuleContext> Context<'this, M> { fn pop(&mut self) -> Result<ValueLocation, Error> { ...
1
3
5
9daa8e7f386c30fc20a05c3bb2b13c9146bc74bf
Patrick Ventuzelo
2019-12-10T11:00:48
fix cargo fmt error
diff --git a/crates/lightbeam/src/microwasm.rs b/crates/lightbeam/src/microwasm.rs index 6be287cfe..650ff4749 100644 --- a/crates/lightbeam/src/microwasm.rs +++ b/crates/lightbeam/src/microwasm.rs @@ -1200,8 +1200,12 @@ where sig!((ty) -> (ty)) } - WasmOperator::GlobalGet { gl...
1
12
4
0e2f7600b24cba96469969134662322f16d1d19a
Patrick Ventuzelo
2019-12-10T10:57:21
bump wasmparser to 0.44.0 + fix error due to change wasmparser operator names
diff --git a/crates/lightbeam/Cargo.toml b/crates/lightbeam/Cargo.toml index b3d089682..d9c992815 100644 --- a/crates/lightbeam/Cargo.toml +++ b/crates/lightbeam/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" smallvec = "1.0.0" dynasm = "0.5.1" dynasmrt = "0.5.1" -wasmparser = "0.39.1" +wasmparser = "0.44.0" memoffs...
3
69
77
396eba523580ee75d72df042cb64f8f840da61aa
Andrew Brown
2019-12-09T18:05:47
Bitcast values incoming to `vall_true` and `vany_true` before use in Wasm translation (#1275)
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index c0d1218cc..41f5726cd 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -1226,14 +1226,16 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( | Operator::I16x8...
1
4
2
e13fabb2760b31ee0b6a0976940f9c957c4c4c9b
Alex Crichton
2019-12-09T12:08:47
Start to update the `wasi` crate in wasi tests (#675) * Move `wasi` to `wasi_old` in wasi-tests Leave space for the new `wasi` crate but allow us to incrementally update tests. * Update the big_random_buf test * Update clock_time_get test * Update close_preopen test * Review comments * Update to lat...
diff --git a/crates/test-programs/build.rs b/crates/test-programs/build.rs index 0c453be63..0f223b1c7 100644 --- a/crates/test-programs/build.rs +++ b/crates/test-programs/build.rs @@ -30,6 +30,8 @@ mod wasi_tests { println!("cargo:rerun-if-changed={}", test_file_path); } } + ...
40
137
120
0d8f8bc71fb35b217bdddced2a48c4e2205c5287
llogiq
2019-12-07T17:47:43
Fix some clippy warnings (#1277)
diff --git a/cranelift/codegen/build.rs b/cranelift/codegen/build.rs index f2afc404e..bb1436405 100644 --- a/cranelift/codegen/build.rs +++ b/cranelift/codegen/build.rs @@ -61,7 +61,7 @@ fn main() { process::exit(1); } - if let Ok(_) = env::var("CRANELIFT_VERBOSE") { + if env::var("CRANELIFT_VERBO...
10
24
19
ec8144b87d42a82b254fc18762d1e1557d3e90f6
Andrew Brown
2019-12-07T03:47:29
Add support for SIMD NaN directives (#686) * Add support for SIMD NaN directives * Use is_*_nan helper methods for scalar NaN directives
diff --git a/crates/wast/Cargo.toml b/crates/wast/Cargo.toml index 03b1ba07d..af24b7e51 100644 --- a/crates/wast/Cargo.toml +++ b/crates/wast/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" wasmtime-jit = { path = "../jit" } wasmtime-runtime = { path = "../runtime" } wasmtime-environ = { path = "../environ" } -wast = ...
2
156
5
2c51341888e917c64fdbc0e98fa7997fede5fcfe
Yury Delendik
2019-12-06T23:46:03
Add wasm reference/pointers translation. (#1073)
diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs index 0c6110f02..b40f4d26e 100755 --- a/cranelift/src/clif-util.rs +++ b/cranelift/src/clif-util.rs @@ -119,6 +119,12 @@ fn add_enable_multi_value<'a>() -> clap::Arg<'a, 'a> { .help("Enable WASM's multi-value support") } +fn add_enable_ref...
10
85
44
3d69e04659a9dade78fa80a76e69e3f1b9d1af07
Alex Crichton
2019-12-06T22:19:37
Tweak the API of the `Val` type (#679) * Tweak the API of the `Val` type A few updates to the API of the `Val` type: * Added a payload for `V128`. * Replace existing accessor methods with `Option`-returning versions. * Add `unwrap_xxx` family of methods to extract a value and panic. * Remove `Into` conversion...
diff --git a/crates/api/examples/memory.rs b/crates/api/examples/memory.rs index 3c72d87bb..2b84d81d0 100644 --- a/crates/api/examples/memory.rs +++ b/crates/api/examples/memory.rs @@ -51,7 +51,7 @@ macro_rules! call { ($func:expr, $($p:expr),*) => { match $func.borrow().call(&[$($p.into()),*]) { Ok(resu...
7
103
107
aabf6559a0434ebaf5ebf4c34f9670cffc03f349
Ryan Hunt
2019-12-06T15:13:53
Add hooks for implementing bulk-memory-operations (#1258)
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index 2f645f500..9bb4b0379 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -987,18 +987,104 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( | Operator::Fence ...
3
262
12
cc6e8e1af25e5f9b64e183970d50f62c8338f259
Yury Delendik
2019-12-05T22:07:34
Move cranelift dependencies to wasmtime-environ (#669) Groups all CL data structures into single dependency to be used accross wasmtime project.
diff --git a/Cargo.toml b/Cargo.toml index da4c51175..f49eea667 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,10 +15,6 @@ publish = false [dependencies] # Enable all supported architectures by default. -cranelift-codegen = { version = "0.50.0", features = ["enable-serde", "all-arch"] } -cranelift-entity = { versi...
65
223
233
8a1b7965d82755d0f0dd5ab41f2339c677cda4c8
Dan Gohman
2019-12-05T22:03:17
Move command function invocation out of wasmtime-instance. (#585) Previously, "_start" was run as part of module instantiation, which meant it was always run, even for wasm modules that weren't being loaded as commands. Now, just invoke it from the wasmtime driver, which for now is the only place that runs wasm mod...
diff --git a/crates/runtime/src/instance.rs b/crates/runtime/src/instance.rs index 70babd8ad..f1ff00195 100644 --- a/crates/runtime/src/instance.rs +++ b/crates/runtime/src/instance.rs @@ -469,37 +469,6 @@ impl Instance { fn invoke_start_function(&mut self) -> Result<(), InstantiationError> { if let Some(...
2
16
32
5793b14dd6b7311578f7d6b6f3e9d7642d461556
Pat Hickey
2019-12-05T21:54:39
wig: update comments per code review
diff --git a/crates/wasi-common/wig/src/raw_types.rs b/crates/wasi-common/wig/src/raw_types.rs index 7168dc3c9..15de007bd 100644 --- a/crates/wasi-common/wig/src/raw_types.rs +++ b/crates/wasi-common/wig/src/raw_types.rs @@ -225,6 +225,7 @@ fn struct_has_union(s: &witx::StructDatatype) -> bool { }) } +/// Test ...
1
3
2
0fce2ac288fbca73628cc8eda43ef5e53c1183c5
Nick Fitzgerald
2019-12-05T19:51:47
deps: Update wasmparser in most places (#670) Doesn't update it in lightbeam.
diff --git a/crates/api/Cargo.toml b/crates/api/Cargo.toml index 9e4689616..73fc3efcb 100644 --- a/crates/api/Cargo.toml +++ b/crates/api/Cargo.toml @@ -21,7 +21,7 @@ cranelift-frontend = "0.50.0" wasmtime-runtime = { path = "../runtime" } wasmtime-environ = { path = "../environ" } wasmtime-jit = { path = "../jit" }...
7
7
7
e4d60d23edcc80e247c9f917605b4c67d866f131
Patrick Ventuzelo
2019-12-05T18:50:41
fix one bug + refactor Option handling in some func
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index a0979bff8..2f612f5dd 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -3215,13 +3215,13 @@ impl<'this, M: ModuleContext> Context<'this, M> { ty: impl Into<Option<GPRType>>, val: &m...
1
32
31
414d4bb4f5ff1166738f8813cd0ba46929a177c0
Patrick Ventuzelo
2019-12-05T14:19:58
add detail br_if error
diff --git a/crates/lightbeam/src/function_body.rs b/crates/lightbeam/src/function_body.rs index cd7294b32..441f67d55 100644 --- a/crates/lightbeam/src/function_body.rs +++ b/crates/lightbeam/src/function_body.rs @@ -468,7 +468,7 @@ where } other => { r...
1
1
1
e968b9313b8b63b3f417f1236a3a186a583c4bf2
Patrick Ventuzelo
2019-12-05T14:18:53
improve format
diff --git a/crates/lightbeam/src/function_body.rs b/crates/lightbeam/src/function_body.rs index 5d5420d03..cd7294b32 100644 --- a/crates/lightbeam/src/function_body.rs +++ b/crates/lightbeam/src/function_body.rs @@ -515,8 +515,9 @@ where let new_cc = block.calling_convention.clone(); ...
1
3
2
2b24d17425bcaa1f087e6bce59a491ddbd8ceba8
Patrick Ventuzelo
2019-12-05T14:17:20
replace assert by if/error in function_body
diff --git a/crates/lightbeam/src/function_body.rs b/crates/lightbeam/src/function_body.rs index 8a1a857b9..5d5420d03 100644 --- a/crates/lightbeam/src/function_body.rs +++ b/crates/lightbeam/src/function_body.rs @@ -173,15 +173,18 @@ where Right(cc) => cc.stack.len(), }); ...
1
18
7
b664428da7c92c0b52ec8e6802d69d008c3e436f
Patrick Ventuzelo
2019-12-05T14:16:32
cargo fmt
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index cd8efe06e..a0979bff8 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -4825,10 +4825,10 @@ impl<'this, M: ModuleContext> Context<'this, M> { self.free_value(divisor)?; if self.bl...
1
2
2
3d6b1876acf69a645f58080cb1f158e5aad80b7a
Patrick Ventuzelo
2019-12-05T13:53:21
replace assert with if - Err
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index 164d4034e..cd8efe06e 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -9,7 +9,7 @@ use dynasm::dynasm; use dynasmrt::x64::Assembler; use dynasmrt::{AssemblyOffset, DynamicLabel, DynasmApi, DynasmL...
1
10
4
f212d9ce6a0c6c2b683a5a6c9f8fe7d3d4506805
Patrick Ventuzelo
2019-12-05T12:47:59
replace expect by Error for backend code
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index 4859125fd..164d4034e 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -104,7 +104,7 @@ impl GPR { } } -pub fn arg_locs(types: impl IntoIterator<Item = SignlessType>) -> Vec<CCLoc> { +pub fn ...
2
57
44
362469e5a915549f81130debdab2ddfa114aea79
Patrick Ventuzelo
2019-12-05T12:24:33
remove unreachable! + cargo fmt
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index 65db2f18a..4859125fd 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -3064,7 +3064,7 @@ impl<'this, M: ModuleContext> Context<'this, M> { Ok(()) } - pub fn apply_cc(&mut self, cc...
1
14
4
b8f33c3c94b90c1b372bec70e88effaec17be736
Patrick Ventuzelo
2019-12-05T09:41:10
remove expect from pop func and add return value other wasm opcode functions
diff --git a/crates/lightbeam/src/backend.rs b/crates/lightbeam/src/backend.rs index e7b12eb11..06a4a7cc2 100644 --- a/crates/lightbeam/src/backend.rs +++ b/crates/lightbeam/src/backend.rs @@ -721,8 +721,8 @@ macro_rules! int_div { // TODO: Fast div using mul for constant divisor? It looks like LLVM doesn't do...
2
108
96
3558d41cea889b4c91a8d2c40a87746fdfcd5e01
Andrew Brown
2019-12-04T23:46:05
Fix wast error line numbers; previously off by one (#666)
diff --git a/crates/wast/src/wast.rs b/crates/wast/src/wast.rs index 2ec0e63d9..d2d530514 100644 --- a/crates/wast/src/wast.rs +++ b/crates/wast/src/wast.rs @@ -152,7 +152,7 @@ impl WastContext { }; let context = |sp: wast::Span| { let (line, col) = sp.linecol_in(wast); - forma...
1
1
1
991592c4ba72a16041bf3fabf002e29d7b33194d
Yury Delendik
2019-12-04T13:57:24
[wasmtime-api] Record original Trap from API callback. (#657) * Record original Trap from API callback. Fixes #645 * use TrapRegistry * comment about magic number
diff --git a/crates/api/src/callable.rs b/crates/api/src/callable.rs index e373d1b69..2659ce06a 100644 --- a/crates/api/src/callable.rs +++ b/crates/api/src/callable.rs @@ -1,7 +1,7 @@ use crate::data_structures::ir; use crate::r#ref::HostRef; use crate::runtime::Store; -use crate::trampoline::generate_func_export; ...
6
170
29
b342cbdd643477598b4f79ab48b2d9f21fe713c9
Mike Hommey
2019-12-04T07:23:43
Sort the list of instruction formats by name This makes opcodes.rs and inst_builders.rs deterministic.
diff --git a/cranelift/codegen/meta/src/shared/mod.rs b/cranelift/codegen/meta/src/shared/mod.rs index 808b6bbc4..121e26b10 100644 --- a/cranelift/codegen/meta/src/shared/mod.rs +++ b/cranelift/codegen/meta/src/shared/mod.rs @@ -92,6 +92,8 @@ impl Definitions { } } - Vec::from_iter(format...
1
3
1
de7c0dddc673950b90d92f762ffe263a28de0da5
Benjamin Bouvier
2019-12-03T10:38:44
Fix #1247: Tweak enable_verifier doc comment so it's true
diff --git a/cranelift/codegen/meta/src/shared/settings.rs b/cranelift/codegen/meta/src/shared/settings.rs index e375a8e66..b039c7bc2 100644 --- a/cranelift/codegen/meta/src/shared/settings.rs +++ b/cranelift/codegen/meta/src/shared/settings.rs @@ -21,8 +21,8 @@ pub(crate) fn define() -> SettingGroup { r#" ...
1
2
2
027f6117d6dc032855ae7f5278a77d6a36d1c4ec
Patrick Ventuzelo
2019-12-03T19:58:29
remove panic, expect and unimplemented from microwasm + use Result as return value for some functions (#652)
diff --git a/crates/environ/src/lightbeam.rs b/crates/environ/src/lightbeam.rs index e3ddb24f4..3123b0f1e 100644 --- a/crates/environ/src/lightbeam.rs +++ b/crates/environ/src/lightbeam.rs @@ -54,13 +54,13 @@ impl crate::compilation::Compiler for Lightbeam { i.as_u32(), &wasmparser::Fu...
4
324
90
5429a9391d5983d3208213ead03af3cd240600bd
Nick Fitzgerald
2019-12-03T19:39:46
fuzzing: Provide dummy imports for instantion oracle
diff --git a/crates/fuzzing/Cargo.toml b/crates/fuzzing/Cargo.toml index a476c3713..152cdeae6 100644 --- a/crates/fuzzing/Cargo.toml +++ b/crates/fuzzing/Cargo.toml @@ -18,6 +18,7 @@ env_logger = { version = "0.7.1", optional = true } log = "0.4.8" wasmparser = "0.42.1" wasmprinter = "0.2.0" +wasmtime = { path = ".....
3
128
11