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
05baddfb2b2d95c048d3edff7dc653fb9da1215c
Alex Crichton
2021-06-03T22:04:07
Add the ability to cache typechecking an instance (#2962) * Add the ability to cache typechecking an instance This commit adds the abilty to cache the type-checked imports of an instance if an instance is going to be instantiated multiple times. This can also be useful to do a "dry run" of instantiation where no ...
diff --git a/crates/wasmtime/src/func.rs b/crates/wasmtime/src/func.rs index 8e6cafac9..e821e5aff 100644 --- a/crates/wasmtime/src/func.rs +++ b/crates/wasmtime/src/func.rs @@ -677,7 +677,7 @@ impl Func { /// initiates a panic. Also panics if `store` does not own this function. pub fn call(&self, mut store: i...
8
459
175
b6483e19d43766aa689d2bb8c11867b8b3093914
Pat Hickey
2021-05-27T23:12:09
global module registry: switch from Mutex to RwLock @acfoltzer identified this on a code walk through wasmtime with me, and it was already noted in a comment that we could change if motivated.
diff --git a/crates/wasmtime/src/module/registry.rs b/crates/wasmtime/src/module/registry.rs index 8d6e6886a..18bc97a1d 100644 --- a/crates/wasmtime/src/module/registry.rs +++ b/crates/wasmtime/src/module/registry.rs @@ -3,7 +3,7 @@ use crate::{signatures::SignatureCollection, Module}; use std::{ collections::BT...
1
6
9
e25bf362aba1652dfc116daa9c28ebe287db3285
Andrew Brown
2021-06-02T20:22:15
Switch to using `TargetFrontendConfig` in the frontend memory tests Commit 7d36fd9a1e070e2d83f8b63e44faae587a138686 avoided these x86-specific tests altogether. This change avoids any dependency on x86 entirely by specifying a frontend configuration (SystemV + U64); this is enough information for the `FunctionBuilder`...
diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs index 8b68e6f62..63ccdcb56 100644 --- a/cranelift/frontend/src/frontend.rs +++ b/cranelift/frontend/src/frontend.rs @@ -854,9 +854,10 @@ mod tests { use cranelift_codegen::ir::{ AbiParam, ExternalName, Function, InstBuild...
1
33
94
7d36fd9a1e070e2d83f8b63e44faae587a138686
Olivier Lemasle
2021-06-01T11:44:38
Restrict running tests dependent of x86_64 These 5 tests fail with the error "This test requires x86_64 support." when executed on another architecture.
diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs index 3b76a4745..8b68e6f62 100644 --- a/cranelift/frontend/src/frontend.rs +++ b/cranelift/frontend/src/frontend.rs @@ -969,6 +969,7 @@ mod tests { } #[test] + #[cfg_attr(not(target_arch = "x86_64"), ignore)] fn mem...
1
5
0
8dc4cc9fe3efd7d20863c19e08486a487e77c421
Andrew Brown
2021-06-01T18:30:15
x64: fix AVX512 flag checks Previously, the multiple flags for certain AVX512 instructions were checked using `OR`: e.g., if the CPU has AVX512VL `OR` AVX512DQ, emit `VPMULLQ`. This is incorrect--the logic should be `AND`. The Intel Software Developer Manual, vol. 1, sec. 15.4, has more information on this (notable th...
diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs index f3cd42f12..c6703b23a 100644 --- a/cranelift/codegen/src/isa/x64/inst/emit.rs +++ b/cranelift/codegen/src/isa/x64/inst/emit.rs @@ -137,7 +137,7 @@ pub(crate) fn emit( // Certain instructions may be present in ...
3
12
11
2a9f458ea323c837420e48f2444e4dbf35733ea5
Andrew Brown
2021-05-24T17:06:33
x64: lower i8x16.shuffle to VPERMI2B when possible When shuffling values from two different registers, the x64 lowering for `i8x16.shuffle` must first shuffle each register separately and then OR the results with SSE instructions. With `VPERMI2B`, available in AVX512VL + AVX512VBMI, this can be done in a single instru...
diff --git a/cranelift/codegen/meta/src/isa/x86/settings.rs b/cranelift/codegen/meta/src/isa/x86/settings.rs index 67071558d..824683bbf 100644 --- a/cranelift/codegen/meta/src/isa/x86/settings.rs +++ b/cranelift/codegen/meta/src/isa/x86/settings.rs @@ -58,6 +58,12 @@ pub(crate) fn define(shared: &SettingGroup) -> Setti...
7
101
36
51edea9e5779aa78cb547657a32e2ddf98478f00
Benjamin Bouvier
2021-06-01T09:29:52
cranelift: introduce a new WasmtimeAppleAarch64 calling convention The previous choice to use the WasmtimeSystemV calling convention for apple-aarch64 devices was incorrect: padding of arguments was incorrectly computed. So we have to use some flavor of the apple-aarch64 ABI there. Since we want to support the wasmti...
diff --git a/cranelift/codegen/src/isa/aarch64/abi.rs b/cranelift/codegen/src/isa/aarch64/abi.rs index f52108756..586d88cab 100644 --- a/cranelift/codegen/src/isa/aarch64/abi.rs +++ b/cranelift/codegen/src/isa/aarch64/abi.rs @@ -183,7 +183,7 @@ impl ABIMachineSpec for AArch64MachineDeps { args_or_rets: ArgsOrR...
6
25
11
eadafb155436ae6a91bc6b6b228b211a09cd3331
Olivier Lemasle
2021-06-01T08:41:59
s390x: Fix import cranelift-codegen's build failed on s390x, with this error: ``` error[E0432]: unresolved import `crate::isa::unwind::systemv` --> cranelift/codegen/src/isa/s390x/mod.rs:6:25 | 6 | use crate::isa::unwind::systemv::RegisterMappingError; | ^^^^^^^ could not find `systemv` i...
diff --git a/cranelift/codegen/src/isa/s390x/mod.rs b/cranelift/codegen/src/isa/s390x/mod.rs index d6629d7fa..c13ac987f 100644 --- a/cranelift/codegen/src/isa/s390x/mod.rs +++ b/cranelift/codegen/src/isa/s390x/mod.rs @@ -3,6 +3,7 @@ use crate::ir::condcodes::IntCC; use crate::ir::Function; use crate::isa::s390x::set...
1
1
0
40d546c420c1e6c4909fc80e048dd1854fda1cd6
Andrew Brown
2021-05-28T14:51:14
Upgrade capstone to v0.8 (#2948)
diff --git a/Cargo.lock b/Cargo.lock index f867fe988..b7cc56dea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -359,9 +359,9 @@ dependencies = [ [[package]] name = "capstone" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f60e7f097987a09a9b678c6214b...
3
6
6
76664fc73e355b70f575bbe3a2ca9ad6cc66af98
Amanieu d'Antras
2021-05-27T16:09:15
Optimize codegen for SecondaryMap indexing (#2940) Moves the slow path which resizes the vector out-of-line. The actual indexing is also done in the out-of-line path which avoids the need for a second bounds check in the fast path after a potential resize.
diff --git a/cranelift/entity/src/map.rs b/cranelift/entity/src/map.rs index 6e04b9684..67cdc1100 100644 --- a/cranelift/entity/src/map.rs +++ b/cranelift/entity/src/map.rs @@ -129,6 +129,13 @@ where pub fn resize(&mut self, n: usize) { self.elems.resize(n, self.default.clone()); } + + /// Slow pa...
1
8
1
459fce3467f118c6626c33d0dca6503f781342a6
Andrew Brown
2021-05-24T18:21:07
x64: lower i8x16.popcnt to VPOPCNTB when possible When AVX512VL or AVX512BITALG are available, Wasm SIMD's `popcnt` instruction can be lowered to a single x64 instruction, `VPOPCNTB`, instead of 8+ instructions.
diff --git a/cranelift/codegen/meta/src/isa/x86/settings.rs b/cranelift/codegen/meta/src/isa/x86/settings.rs index 70b829787..67071558d 100644 --- a/cranelift/codegen/meta/src/isa/x86/settings.rs +++ b/cranelift/codegen/meta/src/isa/x86/settings.rs @@ -40,6 +40,12 @@ pub(crate) fn define(shared: &SettingGroup) -> Setti...
6
110
71
18fabd77005ed4c0b76777da5bbcd70b8aad6fde
Nick Fitzgerald
2021-05-24T23:00:15
bench-api: Allow multiple instantiations per compilation We used to allow at most one instantiation per compilation, but there is no fundamental reason why that should be the case. Allowing multiple instantiations per compilation allows us to, for example, benchmark repeated instantiation within Wasmtime's pooling all...
diff --git a/crates/bench-api/src/lib.rs b/crates/bench-api/src/lib.rs index 5ae6a05ec..711fbd11a 100644 --- a/crates/bench-api/src/lib.rs +++ b/crates/bench-api/src/lib.rs @@ -1,17 +1,34 @@ //! A C API for benchmarking Wasmtime's WebAssembly compilation, instantiation, //! and execution. //! -//! The API expects se...
2
261
131
13741284b34c43b36805e6dbf1808147d4f6a0c8
Nick Fitzgerald
2021-05-24T21:43:13
bench-api: Add a feature for the old x86_64 backend This makes it easier to benchmark old vs new backends.
diff --git a/crates/bench-api/Cargo.toml b/crates/bench-api/Cargo.toml index 11af4b7c7..701fcc767 100644 --- a/crates/bench-api/Cargo.toml +++ b/crates/bench-api/Cargo.toml @@ -31,4 +31,4 @@ wat = "1.0" default = ["shuffling-allocator"] wasi-crypto = ["wasmtime-wasi-crypto"] wasi-nn = ["wasmtime-wasi-nn"] - +old-x86...
1
1
1
800cf25bb586bef6e9f0dd8b7dd82ab8f57a7625
Chris Fallin
2021-05-24T18:16:57
Make the CFG metadata computation conditional on a flag.
diff --git a/cranelift/codegen/meta/src/shared/settings.rs b/cranelift/codegen/meta/src/shared/settings.rs index 2233e85db..b9fa89587 100644 --- a/cranelift/codegen/meta/src/shared/settings.rs +++ b/cranelift/codegen/meta/src/shared/settings.rs @@ -245,6 +245,21 @@ pub(crate) fn define() -> SettingGroup { true...
4
50
23
11a2ef01e7a91bd58f3071455ace57b3ee8352de
Chris Fallin
2021-04-29T00:52:42
Provide BB layout info externally in terms of code offsets. This is sometimes useful when performing analyses on the generated machine code: for example, some kinds of code verifiers will want to do a control-flow analysis, and it is much easier to do this if one does not have to recover the CFG from the machine code ...
diff --git a/cranelift/codegen/src/context.rs b/cranelift/codegen/src/context.rs index 33c205d22..4a28c696b 100644 --- a/cranelift/codegen/src/context.rs +++ b/cranelift/codegen/src/context.rs @@ -258,6 +258,24 @@ impl Context { } } + /// If available, return information about the code layout in the ...
8
81
7
9a5c9607e1629d9ae176b1b0a92fd2cd83fb9538
Johnnie Birch
2021-03-17T05:08:33
Vpopcnt for x64
diff --git a/build.rs b/build.rs index 9ee3b893c..a2289d24d 100644 --- a/build.rs +++ b/build.rs @@ -191,7 +191,6 @@ fn x64_should_panic(testsuite: &str, testname: &str, strategy: &str) -> bool { } match (testsuite, testname) { - ("simd", "simd_i8x16_arith2") => return true, // Unsupported feature: p...
4
397
312
7db94f5869e97ba2c66d3fa969b8a9d1e4ff34f3
Alex Crichton
2021-05-21T21:26:55
Don't verify publishing peepmatic crates (#2923) Using `--no-verify` avoids building z3 which should shave at least 10 minutes off CI where the `verify-publish` builder currently takes ~30 minutes.
diff --git a/scripts/publish.rs b/scripts/publish.rs index e121cedc3..db59990ab 100644 --- a/scripts/publish.rs +++ b/scripts/publish.rs @@ -332,6 +332,7 @@ fn verify(crates: &[Crate]) { if krate.name.contains("lightbeam") || krate.name == "witx" || krate.name.contains("wasi-nn") + ...
1
1
0
ca39f954dafc6bfb78ae2b010c0f8f90d7a58129
Chris Fallin
2021-05-21T21:08:28
Remove reference to non-existent README.md in wasi-tokio crate
diff --git a/crates/wasi-common/tokio/Cargo.toml b/crates/wasi-common/tokio/Cargo.toml index 49c9415af..456beba98 100644 --- a/crates/wasi-common/tokio/Cargo.toml +++ b/crates/wasi-common/tokio/Cargo.toml @@ -7,7 +7,6 @@ license = "Apache-2.0 WITH LLVM-exception" categories = ["wasm"] keywords = ["webassembly", "wasm...
1
0
1
0f5bdc64979a58888e08e743457c4db83dcd4c67
Pat Hickey
2021-05-21T17:59:39
only wasi_cap_std_sync and wasi_tokio need to define WasiCtxBuilders (#2917) * wasmtime-wasi: re-exporting this WasiCtxBuilder was shadowing the right one wasi-common's WasiCtxBuilder is really only useful wasi_cap_std_sync and wasi_tokio to implement their own Builder on top of. This re-export of wasi-common's...
diff --git a/benches/instantiation.rs b/benches/instantiation.rs index 67109d43a..79130d438 100644 --- a/benches/instantiation.rs +++ b/benches/instantiation.rs @@ -11,7 +11,7 @@ fn instantiate(module: &Module) -> Result<Instance> { // As we don't actually invoke Wasm code in this benchmark, we still add // t...
19
114
138
817d72a7b7dc8dc8b4eda03347190917d92af982
theduke
2021-05-21T15:54:47
Implement std::fmt::Debug for InterruptHandle (#2915)
diff --git a/crates/wasmtime/src/store.rs b/crates/wasmtime/src/store.rs index c3737b3bf..4c6eb299d 100644 --- a/crates/wasmtime/src/store.rs +++ b/crates/wasmtime/src/store.rs @@ -942,6 +942,7 @@ impl wasmtime_runtime::ModuleInfoLookup for StoreInner { /// particular `Store`. /// /// This structure is created by th...
1
1
0
b5f29bd3b2a433ed2e8977dcb998afc55fd4e630
Olivier Lemasle
2021-05-17T15:08:17
Update wasm-tools crates (#2908) wasmparser 0.78 adds the Unknown name subsection type.
diff --git a/Cargo.lock b/Cargo.lock index aad4a2bc1..e7b0c1559 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3483,15 +3483,15 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.77.0" +version = "0.78.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b35c86d22e720a07d95...
13
17
16
84b6f0597176bcc080eb0db09b7e93bad4b3f306
Andrew Brown
2021-05-13T22:58:27
cranelift: remove unreachable scalar lowerings of saturating arithmetic Since `uadd_sat`, `sadd_sat`, `usub_sat`, and `ssub_sat` are now only available to vector types, this removes the lowering code for the scalar versions of these instructions in the arm32 and aarch64 backends.
diff --git a/cranelift/codegen/src/isa/aarch64/lower_inst.rs b/cranelift/codegen/src/isa/aarch64/lower_inst.rs index ede66295e..bebb6b77f 100644 --- a/cranelift/codegen/src/isa/aarch64/lower_inst.rs +++ b/cranelift/codegen/src/isa/aarch64/lower_inst.rs @@ -148,70 +148,27 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<...
2
18
63
e676589b0c6e8228c421e18249d4635eb6c4bbe4
Andrew Brown
2021-05-10T23:25:03
x64: lower i64x2.imul to VPMULLQ when possible This adds the machinery to encode the VPMULLQ instruction which is available in AVX512VL and AVX512DQ. When these feature sets are available, we use this instruction instead of a lengthy 12-instruction sequence.
diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs index b54f1b612..6e0d507ab 100644 --- a/cranelift/codegen/src/isa/x64/inst/args.rs +++ b/cranelift/codegen/src/isa/x64/inst/args.rs @@ -462,6 +462,7 @@ pub(crate) enum InstructionSet { BMI2, AVX512F, AVX5...
5
196
92
c982d2be65bfe746591b0cbae2f16035290ea533
Andrew Brown
2021-05-10T21:50:41
x64: move multiplication lowering Since the lowering of `imul` complicated the other ALU operations it was matched with and since future commits will alter the multiplication lowering further, this change moves the `imul` lowering to its own match block.
diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs index a1969d564..3f62b375a 100644 --- a/cranelift/codegen/src/isa/x64/lower.rs +++ b/cranelift/codegen/src/isa/x64/lower.rs @@ -1511,7 +1511,6 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>( | Opcode::Isub | ...
1
228
189
011e94f3fad1321d77f4f8bb11cf0ae6a7c6ffce
Andrew Brown
2021-05-10T18:05:07
x64: add benchmarks for EVEX encoding This change adds a criterion-enabled benchmark, x64-evex-encoding, to compare the performance of the builder pattern used to encode EVEX instructions in the new x64 backend against the function pattern used to encode EVEX instructions in the legacy x86 backend. At face value, the ...
diff --git a/Cargo.lock b/Cargo.lock index 6a2815313..aad4a2bc1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -250,6 +250,18 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bstr" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a40b47ad93e1a5404e6c18dec4...
3
402
11
c89e6b2353b127ca0beac7c252a1de88647227ad
Andrew Brown
2021-05-10T17:55:35
x64: make the x64 module public In order to benchmark portions of the x64 module, this change makes it a public module of cranelift-codegen.
diff --git a/cranelift/codegen/src/isa/mod.rs b/cranelift/codegen/src/isa/mod.rs index f2252e256..481c0c8de 100644 --- a/cranelift/codegen/src/isa/mod.rs +++ b/cranelift/codegen/src/isa/mod.rs @@ -81,8 +81,10 @@ mod riscv; #[cfg(feature = "x86")] mod x86; +// This module is made public here for benchmarking purpose...
1
3
1
02796fc67000c1ca7bd5fe1bcf4b1b74c95454d4
Andrew Brown
2021-05-10T17:50:56
x64: move encodings to a separate module In order to benchmark the encoding code with criterion, the functions and structures must be public. Moving this code to its own module (instead of keeping as a submodule to `inst`), allows `inst` to remain private. This avoids having to expose and document (or ignore documenti...
diff --git a/cranelift/codegen/src/isa/x64/inst/encoding/evex.rs b/cranelift/codegen/src/isa/x64/encoding/evex.rs similarity index 96% rename from cranelift/codegen/src/isa/x64/inst/encoding/evex.rs rename to cranelift/codegen/src/isa/x64/encoding/evex.rs index 9029b9f43..80a3c86bd 100644 --- a/cranelift/codegen/src/is...
7
28
16
05d57d8ded484477fdaef1c4df4b7fad946fc88d
Dan Gohman
2021-05-12T17:28:22
Update to cap-std 0.13.10 and system-interface 0.6.4. This includes fixes for bytecodealliance/cap-std#169, bytecodealliance/system-interface#15, and bytecodealliance/system-interface#16.
diff --git a/Cargo.lock b/Cargo.lock index 8cad37ba6..6a2815313 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,9 +270,9 @@ checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040" [[package]] name = "cap-fs-ext" -version = "0.13.9" +version = "0.13.10" source = "registry+https://github.com/r...
3
20
20
d7053ea9c71b4a240c1966bd1bd9424e36a44f28
Benjamin Bouvier
2021-05-12T15:53:17
Upgrade to the latest versions of gimli, addr2line, object (#2901) * Upgrade to the latest versions of gimli, addr2line, object And adapt to API changes. New gimli supports wasm dwarf, resulting in some simplifications in the debug crate. * upgrade gimli usage in linux-specific profiling too * Add "continue"...
diff --git a/Cargo.lock b/Cargo.lock index f8acaf092..8cad37ba6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "addr2line" -version = "0.14.1" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a55f82cfe485775d02112886f4169bde0...
16
193
188
c81dbe498f7e5401996ec8cca77ccae1d451ba36
Pat Hickey
2021-05-12T00:12:48
try upping 20ms to 50ms timeouts...
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs index 07ac90b79..d9b107a3c 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs @@ -2,7 +2,7 @@...
2
2
2
e66909f710be9cd1dfb1a28088cdd6d3e601e38f
Pat Hickey
2021-05-11T16:24:15
wasi-tokio: increase timeout in poll_oneoff test here as well
diff --git a/crates/wasi-common/tokio/tests/poll_oneoff.rs b/crates/wasi-common/tokio/tests/poll_oneoff.rs index fa04f4604..32c91c335 100644 --- a/crates/wasi-common/tokio/tests/poll_oneoff.rs +++ b/crates/wasi-common/tokio/tests/poll_oneoff.rs @@ -8,6 +8,8 @@ use wasi_common::{ }; use wasi_tokio::{clocks_ctx, sched:...
1
5
3
7ec93cb977457b403a3b43acab0ed8f6c482dbd7
Pat Hickey
2021-05-11T16:22:12
poll_oneoff_stdio test: increase timeout to 20ms
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs index b5c3bad73..07ac90b79 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs @@ -2,6 +2,7 @@...
1
3
2
05b9037bbba80f43ef43f771d85576b775c193cd
bjorn3
2021-05-11T15:11:43
Use .map()
diff --git a/cranelift/jit/src/memory.rs b/cranelift/jit/src/memory.rs index 20f6754eb..afd1a9e05 100644 --- a/cranelift/jit/src/memory.rs +++ b/cranelift/jit/src/memory.rs @@ -42,20 +42,15 @@ impl PtrLen { fn with_size(size: usize) -> io::Result<Self> { let page_size = region::page::size(); let ...
1
9
14
bb769afe6b8fdc4a4c07770dde30d129194e8f13
bjorn3
2021-05-11T10:55:10
Remove errno dependency from cranelift-jit
diff --git a/Cargo.lock b/Cargo.lock index 2551a2e8e..f8acaf092 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -633,7 +633,6 @@ dependencies = [ "cranelift-frontend", "cranelift-module", "cranelift-native", - "errno", "libc", "log", "memmap2", diff --git a/cranelift/jit/Cargo.toml b/cranelift/jit/Cargo.toml in...
3
8
13
bae1a5693dff7f217631336578dac8e99a490fe1
Pat Hickey
2021-05-07T23:19:50
10ms here, and let it timeout in addition to ready?
diff --git a/crates/wasi-common/tokio/tests/poll_oneoff.rs b/crates/wasi-common/tokio/tests/poll_oneoff.rs index bf932325f..fa04f4604 100644 --- a/crates/wasi-common/tokio/tests/poll_oneoff.rs +++ b/crates/wasi-common/tokio/tests/poll_oneoff.rs @@ -40,7 +40,7 @@ async fn empty_file_readable() -> Result<(), Error> { ...
1
9
11
74e9b385df2b0a71de12077c97882da4e7061504
Pat Hickey
2021-05-07T23:07:15
lets try 10ms, macos ci timed out with 5ms
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs index 7caf508c3..b5c3bad73 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs @@ -95,7 +95,7 ...
1
1
1
548b6c5311cb7dafdcd7375df0d025f1befe74e6
Pat Hickey
2021-05-07T22:51:33
windows fixes
diff --git a/crates/wasi-common/cap-std-sync/src/sched/windows.rs b/crates/wasi-common/cap-std-sync/src/sched/windows.rs index 135ec7b4a..41f3f1dda 100644 --- a/crates/wasi-common/cap-std-sync/src/sched/windows.rs +++ b/crates/wasi-common/cap-std-sync/src/sched/windows.rs @@ -25,12 +25,13 @@ use wasi_common::{ }; p...
2
14
4
68fdadde26fd229fe5f9669071da0a4d5cc9c1cb
Pat Hickey
2021-05-07T22:19:02
tokio poll_oneoff test: CI needs more than 1ms to complete it
diff --git a/crates/wasi-common/tokio/tests/poll_oneoff.rs b/crates/wasi-common/tokio/tests/poll_oneoff.rs index 818f7e86c..bf932325f 100644 --- a/crates/wasi-common/tokio/tests/poll_oneoff.rs +++ b/crates/wasi-common/tokio/tests/poll_oneoff.rs @@ -40,7 +40,7 @@ async fn empty_file_readable() -> Result<(), Error> { ...
1
3
3
ec5d8016f7c657dee1c1cc1e2715783e74709461
Dan Gohman
2021-05-07T13:52:54
On Windows, ignore files for which `full_metadata` fails. On Windows, `metadata` computes only partial metadata results, which don't include what WASI needs for the `inode` field in `readdir` results. cap-std has a `full_metadata` function which is able to include this extra information, however it has more strict acc...
diff --git a/crates/wasi-common/cap-std-sync/src/dir.rs b/crates/wasi-common/cap-std-sync/src/dir.rs index 255278790..91126f863 100644 --- a/crates/wasi-common/cap-std-sync/src/dir.rs +++ b/crates/wasi-common/cap-std-sync/src/dir.rs @@ -116,9 +116,9 @@ impl WasiDir for Dir { }, ] .into_it...
1
23
4
ee8a8a2a90d614f41693cca96d1f4575b1f1e0e4
Pat Hickey
2021-05-07T21:27:23
poll_oneoff_stdio test: loosen up contract permit both readable events to be delivered in very short interval, rather than simultaneously.
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs index 19f60d076..3134c10cf 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_stdio.rs @@ -1,3 +1,4 @@...
1
48
42
9b0927293675d29854051538aa10987e76b4b3f4
Pat Hickey
2021-05-07T19:19:51
poll_oneoff: bound tests for time, rather than instant completion
diff --git a/crates/wasi-common/tokio/tests/poll_oneoff.rs b/crates/wasi-common/tokio/tests/poll_oneoff.rs index 10ac82b9b..818f7e86c 100644 --- a/crates/wasi-common/tokio/tests/poll_oneoff.rs +++ b/crates/wasi-common/tokio/tests/poll_oneoff.rs @@ -1,13 +1,17 @@ use anyhow::{Context, Error}; +use cap_std::time::Durati...
1
85
2
e9f410d1dbd2678bedcd746c7714b716a64e1356
Pat Hickey
2021-05-06T23:25:12
run_in_dummy_executor isnt unsafe, its just a bad idea
diff --git a/crates/wasi-common/tokio/src/lib.rs b/crates/wasi-common/tokio/src/lib.rs index 865b99445..e7dc7f42e 100644 --- a/crates/wasi-common/tokio/src/lib.rs +++ b/crates/wasi-common/tokio/src/lib.rs @@ -110,5 +110,5 @@ where Fut: Future<Output = Result<T, Error>>, T: Send + 'static, { - tokio::task:...
3
4
4
b19d86268c35408fed0b23aa8a523e329e15a04e
Pat Hickey
2021-05-06T23:19:33
fix test harness stdio
diff --git a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs index 0d89518df..32aa3cbed 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs @@ -15,7 +1...
2
24
14
ff8bdc390b4f16c3e05637a462893de7e7e188f3
Pat Hickey
2021-05-06T22:45:54
reuse cap-std-syncs windows scheduler without copypaste
diff --git a/crates/wasi-common/cap-std-sync/src/sched.rs b/crates/wasi-common/cap-std-sync/src/sched.rs index 43af68a95..cbda52710 100644 --- a/crates/wasi-common/cap-std-sync/src/sched.rs +++ b/crates/wasi-common/cap-std-sync/src/sched.rs @@ -1,15 +1,40 @@ #[cfg(unix)] -mod unix; +pub mod unix; #[cfg(unix)] -pub us...
4
206
404
3d9b98f1df060343fac6c12d764faec5b20ea9ef
Pat Hickey
2021-05-06T21:34:30
fix example
diff --git a/Cargo.lock b/Cargo.lock index 6ba3fe858..2f9897723 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3135,6 +3135,7 @@ name = "wasi-cap-std-sync" version = "0.26.0" dependencies = [ "anyhow", + "async-trait", "bitflags", "cap-fs-ext", "cap-rand", @@ -3148,7 +3149,6 @@ dependencies = [ "tracing", "...
3
4
5
b0335d3ddf1d87568e9175df5c9d32f967506879
Pat Hickey
2021-05-06T21:27:28
fixes to example
diff --git a/examples/tokio/main.rs b/examples/tokio/main.rs index 03e83b4ac..b8b054895 100644 --- a/examples/tokio/main.rs +++ b/examples/tokio/main.rs @@ -79,6 +79,10 @@ impl Inputs { fn run_wasm(inputs: Inputs) -> impl Future<Output = Result<(), Error>> { use std::pin::Pin; use std::task::{Context, Poll};...
1
5
3
91f64d40d4de5d6d3d459c202d44a2e790a756ac
Peter Huene
2021-05-06T21:19:14
Implement the `allow-unknown-exports` option for the run command. This commit implements the `--allow-unknown-exports` option to the CLI run command that will ignore unknown exports in a command module rather than return an error. Fixes #2587.
diff --git a/crates/wasmtime/src/linker.rs b/crates/wasmtime/src/linker.rs index cd2be6a32..590ff155d 100644 --- a/crates/wasmtime/src/linker.rs +++ b/crates/wasmtime/src/linker.rs @@ -37,6 +37,7 @@ pub struct Linker { strings: Vec<Rc<str>>, map: HashMap<ImportKey, Extern>, allow_shadowing: bool, + al...
3
53
1
e50f1b24a92dbe334945ce3ae084def84aaf2818
Pat Hickey
2021-05-06T18:24:48
better name and comment
diff --git a/crates/wasi-common/tokio/src/dir.rs b/crates/wasi-common/tokio/src/dir.rs index 5ba7d985e..a70b44e18 100644 --- a/crates/wasi-common/tokio/src/dir.rs +++ b/crates/wasi-common/tokio/src/dir.rs @@ -1,4 +1,4 @@ -use crate::{asyncify, file::File}; +use crate::{block_on_dummy_executor, file::File}; use std::an...
4
48
38
76be1959c4fab304662fca000e7b56fdaca97fb1
Pat Hickey
2021-05-06T18:20:38
explain!
diff --git a/crates/wasi-common/tokio/src/sched/unix.rs b/crates/wasi-common/tokio/src/sched/unix.rs index e3028cf61..35e0234f7 100644 --- a/crates/wasi-common/tokio/src/sched/unix.rs +++ b/crates/wasi-common/tokio/src/sched/unix.rs @@ -28,7 +28,8 @@ impl<'a, T> Future for FirstReady<'a, T> { match f.as_mu...
1
2
1
f3ffd74566ba0e0357a3a70ca6f499f662a7dfd2
Pat Hickey
2021-05-06T18:19:25
dont depend on wiggle for just the one func
diff --git a/crates/wasi-common/cap-std-sync/Cargo.toml b/crates/wasi-common/cap-std-sync/Cargo.toml index aa85bf9d5..46b2dd697 100644 --- a/crates/wasi-common/cap-std-sync/Cargo.toml +++ b/crates/wasi-common/cap-std-sync/Cargo.toml @@ -13,7 +13,7 @@ include = ["src/**/*", "LICENSE" ] [dependencies] wasi-common = {...
6
7
7
208013e34e75f119a6ab88e7b6ddb17849f45e0c
Pat Hickey
2021-05-06T18:12:53
de-duplicate code
diff --git a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs index be3a35ac3..0d89518df 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs @@ -5,6 +5,...
3
68
120
f4d851126d516116268444829b9019df86515d95
Pat Hickey
2021-05-06T17:53:25
tests dont need fuel
diff --git a/crates/test-programs/tests/wasm_tests/runtime/tokio.rs b/crates/test-programs/tests/wasm_tests/runtime/tokio.rs index 587ee27f4..88bdb380a 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/tokio.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/tokio.rs @@ -15,7 +15,6 @@ pub fn instantiate(da...
1
0
2
9e04c5333c08cc72457fd8f5ac7a9d200bf97c54
Pat Hickey
2021-05-05T19:55:07
poll oneoff tests: what if we read a non-empty file?
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs index 2e6dfb572..d457a8054 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs @@ -150,16 +150...
3
41
9
3e8ea090c63a29eaef6c9e50fd87346a692e0a89
Pat Hickey
2021-05-05T18:24:27
ci debugging
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs index 3246b5e50..2e6dfb572 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs @@ -125,7 +125,...
1
1
1
f8d1e574287433f907689d3b237236163625ec2d
Pat Hickey
2021-05-05T18:17:30
publish wasi-tokio
diff --git a/scripts/publish.rs b/scripts/publish.rs index 39a7f04e8..e121cedc3 100644 --- a/scripts/publish.rs +++ b/scripts/publish.rs @@ -49,6 +49,7 @@ const CRATES_TO_PUBLISH: &[&str] = &[ // wasi-common "wasi-common", "wasi-cap-std-sync", + "wasi-tokio", // wasmtime "lightbeam", "w...
1
1
0
0faf3b248e4ed1c56811571e444753831594a47b
Pat Hickey
2021-05-05T18:00:59
wasmtime-wasi: keep exporting sync at the top level
diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs index f0ac46811..3edaa3450 100644 --- a/crates/wasi/src/lib.rs +++ b/crates/wasi/src/lib.rs @@ -18,6 +18,11 @@ pub mod sync { super::define_wasi!(block_on); } +/// Sync mode is the "default" of this crate, so we also export it at the top +/// level. +...
1
5
0
e0f3423161d1cdc0fcfd118ff2396a0cb2af3848
Pat Hickey
2021-05-04T21:26:00
support windows
diff --git a/crates/wasi-common/src/clocks.rs b/crates/wasi-common/src/clocks.rs index babf0acff..679759caf 100644 --- a/crates/wasi-common/src/clocks.rs +++ b/crates/wasi-common/src/clocks.rs @@ -5,12 +5,12 @@ pub enum SystemTimeSpec { Absolute(SystemTime), } -pub trait WasiSystemClock { +pub trait WasiSystemC...
3
18
3
686d8c22f978102228c3e2809a088d3ae6a35ff4
Pat Hickey
2021-05-04T18:18:20
fix test harness
diff --git a/crates/test-programs/tests/wasm_tests/runtime/tokio.rs b/crates/test-programs/tests/wasm_tests/runtime/tokio.rs index 11cf28336..587ee27f4 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/tokio.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/tokio.rs @@ -119,6 +119,7 @@ pub fn instantiate_...
1
1
0
82f3ad4f1a412ae94958bb5eb82788bc95082b2a
bjorn3
2021-03-19T15:41:39
Add comment why thiserror is not used
diff --git a/cranelift/codegen/src/data_value.rs b/cranelift/codegen/src/data_value.rs index 8819859f0..a317c7f39 100644 --- a/cranelift/codegen/src/data_value.rs +++ b/cranelift/codegen/src/data_value.rs @@ -103,6 +103,8 @@ pub enum DataValueCastFailure { FromInteger(i64, Type), } +// This is manually implemen...
6
14
0
84c79982e7f89969c1e034e511457b1bbbf4fe83
bjorn3
2021-03-16T11:16:11
Remove unnecessary dependencies Found using cargo-udeps
diff --git a/Cargo.lock b/Cargo.lock index 3fbc57af9..102a12690 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -673,7 +673,6 @@ dependencies = [ "cranelift-codegen", "smallvec", "target-lexicon", - "thiserror", ] [[package]] @@ -3313,7 +3312,6 @@ dependencies = [ name = "wasmtime-environ" version = "0.26.0" d...
4
1
7
03fdbadfb4e2f6e86ac983fecd10d8be069da7e8
bjorn3
2021-03-16T10:51:05
Remove thiserror dependency from cranelift_codegen
diff --git a/Cargo.lock b/Cargo.lock index e1f4a7961..3fbc57af9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -535,7 +535,6 @@ dependencies = [ "smallvec", "souper-ir", "target-lexicon", - "thiserror", "wast 35.0.2", ] diff --git a/cranelift/codegen/Cargo.toml b/cranelift/codegen/Cargo.toml index 9eb990f89..5e...
8
119
37
147cda3b99a4febcd428ee51c89c57bd735aaaa7
bjorn3
2021-03-16T10:09:06
Remove thiserror dependency from cranelift_module
diff --git a/Cargo.lock b/Cargo.lock index 05b1a92bd..e1f4a7961 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -635,7 +635,6 @@ dependencies = [ "cranelift-entity", "hashbrown", "log", - "thiserror", ] [[package]] diff --git a/cranelift/module/Cargo.toml b/cranelift/module/Cargo.toml index 6650714cf..a3fe4a090 1...
3
63
13
5ab8346a05e47a2bf730d12e26c73d378e06d94e
Pat Hickey
2021-05-03T19:23:14
fix windows sync scheduler
diff --git a/crates/wasi-common/cap-std-sync/src/sched/windows.rs b/crates/wasi-common/cap-std-sync/src/sched/windows.rs index 8d11df466..a98e558a7 100644 --- a/crates/wasi-common/cap-std-sync/src/sched/windows.rs +++ b/crates/wasi-common/cap-std-sync/src/sched/windows.rs @@ -23,27 +23,47 @@ impl SyncSched { #[wiggl...
1
44
46
3df9cddf1028f56db291154eff958190c7934d0a
Pat Hickey
2021-05-03T18:58:12
better unit test
diff --git a/crates/wasi-common/src/sched.rs b/crates/wasi-common/src/sched.rs index d8be4deb9..fecac2c5c 100644 --- a/crates/wasi-common/src/sched.rs +++ b/crates/wasi-common/src/sched.rs @@ -5,7 +5,9 @@ use cap_std::time::Instant; pub mod subscription; pub use cap_std::time::Duration; -use subscription::{Monotoni...
2
49
7
8811246a9fe9fc8f4277e9876aec693baaa2f8d3
Benjamin Bouvier
2021-05-03T16:58:40
debug: Avoid underflow when scanning for landing pad bytes (#2866)
diff --git a/crates/debug/src/transform/expression.rs b/crates/debug/src/transform/expression.rs index 57f3cc7a2..556a46090 100644 --- a/crates/debug/src/transform/expression.rs +++ b/crates/debug/src/transform/expression.rs @@ -512,24 +512,28 @@ where } }; } + // Find all landing pads b...
1
16
12
dfb1bc4d02a653ac9bdfd7ba69e0b20ff3796149
Ulrich Weigand
2021-05-03T16:56:18
Trap handler changes to support s390x (#2871) On s390x, SIGILL and SIGFPE are delivered with the PSW address pointing *after* the faulting instruction, while SIGSEGV and SIGBUS are delivered with the PSW address pointing *to* the faulting instruction. In order to support this, the common code trap handler has to ...
diff --git a/crates/runtime/src/traphandlers/unix.rs b/crates/runtime/src/traphandlers/unix.rs index 955d00a62..b4046f094 100644 --- a/crates/runtime/src/traphandlers/unix.rs +++ b/crates/runtime/src/traphandlers/unix.rs @@ -47,8 +47,8 @@ pub unsafe fn platform_init() { // Handle `unreachable` instructions which e...
1
21
4
e1cc1a67d592f64d7ac5ab0e4fb0517c848760fd
Ulrich Weigand
2021-05-03T16:50:00
Object file support for s390x (#2872) Add support for s390x binary format object files. In particular, add support for s390x ELF relocation types (currently only S390xPCRel32Dbl).
diff --git a/cranelift/codegen/src/binemit/mod.rs b/cranelift/codegen/src/binemit/mod.rs index b534ec976..aa3102797 100644 --- a/cranelift/codegen/src/binemit/mod.rs +++ b/cranelift/codegen/src/binemit/mod.rs @@ -60,6 +60,8 @@ pub enum Reloc { Arm64Call, /// RISC-V call target RiscvCall, + /// s390x P...
7
34
0
62c4f0d1f76373eca1adaac2105f77577c3942b6
Pat Hickey
2021-05-01T22:39:09
wasi-tokio kinda sorta working
diff --git a/Cargo.lock b/Cargo.lock index 2ac571fc3..92c5e7611 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -345,6 +345,17 @@ dependencies = [ "unsafe-io", ] +[[package]] +name = "cap-tempfile" +version = "0.13.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d2f6f45ddb06ff26f4cf2...
9
474
76
7f34ccb909cf1d0e6592763302972fd72537791b
Pat Hickey
2021-04-30T22:36:56
various fixes to the design of Poll
diff --git a/crates/wasi-common/cap-std-sync/src/sched/unix.rs b/crates/wasi-common/cap-std-sync/src/sched/unix.rs index abf0338b1..94a8614a6 100644 --- a/crates/wasi-common/cap-std-sync/src/sched/unix.rs +++ b/crates/wasi-common/cap-std-sync/src/sched/unix.rs @@ -22,7 +22,7 @@ impl SyncSched { #[wiggle::async_trait...
5
11
11
b7efcbe80fd5abef0e08ebb4302418a9f8e2ad41
Pat Hickey
2021-04-29T23:44:45
jump through enough hoops for the poll lifetime to work out you program rust for a few years and you think you're done tearing your hair out over lifetimes, well, you'll find yourself wrong
diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs similarity index 100% rename from crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs rename to crates/test-programs/wasi-tests/src/bin/poll_oneoff_files.rs diff --git a/crates/wasi-comm...
8
98
86
ab4f5bb674946ba3d85cf985e486909e7db00036
Pat Hickey
2021-04-29T23:23:36
move dummy executor out to wiggle:: for reuse
diff --git a/crates/wiggle/src/lib.rs b/crates/wiggle/src/lib.rs index 7bcba7c06..602a8c9d1 100644 --- a/crates/wiggle/src/lib.rs +++ b/crates/wiggle/src/lib.rs @@ -953,3 +953,40 @@ impl From<GuestError> for Trap { Trap::String(err.to_string()) } } + +pub unsafe fn run_in_dummy_executor<F: std::future::F...
2
41
55
e4f9eebe3a95275f934fb009008e7205beabd1e9
Alan Egerton
2021-04-29T08:28:29
Expose new `JITModule::read_got_entry` function
diff --git a/cranelift/jit/src/backend.rs b/cranelift/jit/src/backend.rs index 26768ffc7..4389455d8 100644 --- a/cranelift/jit/src/backend.rs +++ b/cranelift/jit/src/backend.rs @@ -285,6 +285,13 @@ impl JITModule { } } + /// Returns the given function's entry in the Global Offset Table. + /// + ...
1
7
0
b3e1ab4553683dd4d097237a9c4c504758f904fa
Pat Hickey
2021-04-28T18:56:48
restructure Poll to hold a Table and fd instead of a RefMut<dyn WasiFile> unfortunately, the borrow checker defeated me: changing the RwSubscription file form a Ref to a RefMut turned into borrow checker errors in the impl of the poll_oneoff trait method. This implementation makes an end run by having Poll hold onto ...
diff --git a/crates/wasi-common/cap-std-sync/src/sched/unix.rs b/crates/wasi-common/cap-std-sync/src/sched/unix.rs index 37fbbc1c0..030c1bcf6 100644 --- a/crates/wasi-common/cap-std-sync/src/sched/unix.rs +++ b/crates/wasi-common/cap-std-sync/src/sched/unix.rs @@ -32,14 +32,14 @@ impl WasiSched for SyncSched { ...
6
72
70
02581ddda0598a84e18998d0137cb7f559c8d99a
Pat Hickey
2021-04-28T00:41:07
poll_oneoff test: don't try to poll same fd for read and write
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 6407a32f3..3246b5e50 100644 --- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs +++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs @@ -55,7 +55,10 @@ unsafe fn test_timeo...
1
40
16
480670e17f3a614cb30efecaeff6a5cb83379b61
Anton Kirilov
2021-04-16T12:10:30
Enable the simd_boolean test for AArch64 Also, enable the simd_i64x2_arith2 test because it doesn't need any code changes. Copyright (c) 2021, Arm Limited.
diff --git a/build.rs b/build.rs index 411593c50..42d786799 100644 --- a/build.rs +++ b/build.rs @@ -220,10 +220,6 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool { }, "Cranelift" => match (testsuite, testname) { ("simd", _) if cfg!(feature = "old-x86-backend") => re...
5
182
35
a532d0f379b44b2dbeb2141be79e1bece918f445
Pat Hickey
2021-04-26T23:06:56
subscribe to mut fds
diff --git a/crates/wasi-common/src/sched.rs b/crates/wasi-common/src/sched.rs index 3434ef62d..b9a8062a4 100644 --- a/crates/wasi-common/src/sched.rs +++ b/crates/wasi-common/src/sched.rs @@ -2,7 +2,7 @@ use crate::clocks::WasiMonotonicClock; use crate::file::WasiFile; use crate::Error; use cap_std::time::Instant; ...
4
39
11
867d2c9a350daef9ed1ae1354c941bac29b177b1
Pat Hickey
2021-04-26T22:49:27
follow the types
diff --git a/Cargo.lock b/Cargo.lock index e7d6bac18..2ac571fc3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1590,6 +1590,28 @@ dependencies = [ "autocfg 1.0.1", ] +[[package]] +name = "mio" +version = "0.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf80d3e903b34e0bd7282b218...
4
88
130
b307dce2abcf24f141d3a63cc48a65dc4b655224
Pat Hickey
2021-04-26T21:43:16
add readable and writable futures to WasiFile trait
diff --git a/crates/wasi-common/cap-std-sync/src/file.rs b/crates/wasi-common/cap-std-sync/src/file.rs index ba9ff2743..751c5f21b 100644 --- a/crates/wasi-common/cap-std-sync/src/file.rs +++ b/crates/wasi-common/cap-std-sync/src/file.rs @@ -119,6 +119,12 @@ impl WasiFile for File { async fn num_ready_bytes(&self) ...
5
39
0
fa44ec2da2e296f61c9a7a4c9f49882d3fa42b98
Pat Hickey
2021-04-26T21:42:22
tokio sched: comment out just to make it compile
diff --git a/crates/wasi-common/tokio/src/sched/unix.rs b/crates/wasi-common/tokio/src/sched/unix.rs index 83ddb2c83..07a1cf0a9 100644 --- a/crates/wasi-common/tokio/src/sched/unix.rs +++ b/crates/wasi-common/tokio/src/sched/unix.rs @@ -97,26 +97,7 @@ pub async fn poll_oneoff<'a>(poll: &'_ Poll<'a>) -> Result<(), Error...
1
1
20
a8c956ede1ee1366035b37bc773392fa590d0f7a
Jubilee Young
2021-04-22T03:15:41
Factor out byteorder in cranelift This removes an existing dependency on the byteorder crate in favor of using std equivalents directly. While not an issue for wasmtime per se, cranelift is now part of the critical path of building and testing Rust, and minimizing dependencies, even small ones, can help reduce the ti...
diff --git a/Cargo.lock b/Cargo.lock index 76c99d6e9..37c27174d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -544,7 +544,6 @@ name = "cranelift-codegen" version = "0.73.0" dependencies = [ "bincode", - "byteorder", "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", @@ -591,7 +590,6 @@ n...
5
26
31
9637bc5a09ac00cbad2b890f455988613c542fb6
StackDoubleFlow
2021-04-21T13:29:02
Fix cranelift `Module` and `ObjectModule` docs links (#2852)
diff --git a/cranelift/codegen/src/ir/entities.rs b/cranelift/codegen/src/ir/entities.rs index 09eaed3be..d8ca7cef3 100644 --- a/cranelift/codegen/src/ir/entities.rs +++ b/cranelift/codegen/src/ir/entities.rs @@ -146,7 +146,7 @@ impl StackSlot { /// [`VmContext`](super::GlobalValueData::VMContext) using /// [`FuncEnv...
2
5
5
801358333dabfb9348aafede7efb4e6dd56eba2f
Ulrich Weigand
2021-04-21T12:14:59
debug: Support big-endian architectures This fixes some hard-coded assumptions in the debug crate that the native ELF files being accessed are little-endian; specifically in create_gdbjit_image as well as in emit_dwarf. In addition, data in WebAssembly memory always uses little-endian byte order. Therefore, if the n...
diff --git a/crates/debug/src/lib.rs b/crates/debug/src/lib.rs index 597ab2e25..b438051b4 100644 --- a/crates/debug/src/lib.rs +++ b/crates/debug/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::cast_ptr_alignment)] use anyhow::{bail, ensure, Error}; +use object::endian::{BigEndian, Endian, Endianness, LittleEndian}; u...
4
79
39
196bcec6cfd495a5c75ea169f75a878b5d78ffaf
Alex Crichton
2021-04-20T21:52:51
Process declared element segments for "possibly exported funcs" (#2851) Now that we're using "possibly exported" as an impactful decision for codegen (which trampolines to generate and which ABI a function has) it's important that we calculate this property of a wasm function correctly! Previously Wasmtime forgot t...
diff --git a/cranelift/wasm/src/environ/spec.rs b/cranelift/wasm/src/environ/spec.rs index ab7974f57..31c8d86a4 100644 --- a/cranelift/wasm/src/environ/spec.rs +++ b/cranelift/wasm/src/environ/spec.rs @@ -948,6 +948,13 @@ pub trait ModuleEnvironment<'data>: TargetEnvironment { elements: Box<[FuncIndex]>, ...
4
42
1
193551a8d6d15559de7f768b901d5452d20524da
Alex Crichton
2021-04-19T23:44:48
Optimize `table.init` instruction and instantiation (#2847) * Optimize `table.init` instruction and instantiation This commit optimizes table initialization as part of instance instantiation and also applies the same optimization to the `table.init` instruction. One part of this commit is to remove some preexisti...
diff --git a/cranelift/wasm/src/environ/dummy.rs b/cranelift/wasm/src/environ/dummy.rs index ea9157e55..6ac82b73f 100644 --- a/cranelift/wasm/src/environ/dummy.rs +++ b/cranelift/wasm/src/environ/dummy.rs @@ -747,7 +747,7 @@ impl<'data> ModuleEnvironment<'data> for DummyEnvironment { &mut self, _table...
8
137
126
27464c85f4d3bb6e7f3c45a04d06a8a095823fc4
Pat Hickey
2021-04-19T23:00:56
cargo.lock
diff --git a/Cargo.lock b/Cargo.lock index 3e6649aa3..e7d6bac18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2763,6 +2763,7 @@ dependencies = [ "pretty_env_logger", "target-lexicon", "tempfile", + "tokio", "wasi-cap-std-sync", "wasi-common", "wasmtime", @@ -3146,17 +3147,22 @@ dependencies = [ name = "wasi...
1
6
0
3d3a2acc1b19d1a2977fd6ea669675f868739d1c
Pat Hickey
2021-04-19T23:00:38
wasi-tokio: WIP need to port the sync scheduler into a spawn_blocking
diff --git a/crates/wasi-common/tokio/Cargo.toml b/crates/wasi-common/tokio/Cargo.toml index f480de063..d67fc7291 100644 --- a/crates/wasi-common/tokio/Cargo.toml +++ b/crates/wasi-common/tokio/Cargo.toml @@ -22,6 +22,15 @@ cap-time-ext = "0.13.7" fs-set-times = "0.3.1" unsafe-io = "0.6.2" system-interface = { versi...
5
464
21
8667d8c244c536318af6256dfc72ec97af5980fd
Pat Hickey
2021-04-19T23:00:27
test-programs: test wasi-tokio
diff --git a/crates/test-programs/Cargo.toml b/crates/test-programs/Cargo.toml index 4cd5bcbc1..7c4d9c3ad 100644 --- a/crates/test-programs/Cargo.toml +++ b/crates/test-programs/Cargo.toml @@ -14,7 +14,7 @@ cfg-if = "1.0" wasi-common = { path = "../wasi-common", version = "0.26.0" } wasi-cap-std-sync = { path = "../w...
4
149
3
675b57936118f2ba03b5fe63074f98923de3d4b0
Pat Hickey
2021-04-19T21:35:46
use AsyncSeek
diff --git a/crates/wasi-common/tokio/src/file.rs b/crates/wasi-common/tokio/src/file.rs index fa63fe8b0..503e2168c 100644 --- a/crates/wasi-common/tokio/src/file.rs +++ b/crates/wasi-common/tokio/src/file.rs @@ -173,7 +173,8 @@ impl WasiFile for File { Ok(n.try_into()?) } async fn seek(&self, pos: s...
1
2
1
8507eb77087a0860d073784123432c55f906e082
Nick Fitzgerald
2021-04-19T21:18:55
Use `map_or` instead of `map` and `unwrap_or` in `TableElement::into_raw`
diff --git a/crates/runtime/src/table.rs b/crates/runtime/src/table.rs index 8c857add4..368fdcd11 100644 --- a/crates/runtime/src/table.rs +++ b/crates/runtime/src/table.rs @@ -69,7 +69,7 @@ impl TableElement { unsafe fn into_raw(self) -> *mut u8 { match self { Self::FuncRef(e) => e as _, - ...
1
1
1
52b1166918d6690dae69b4545b984c76a89774d2
Taiki Endo
2021-04-19T14:08:15
Update iter-enum to 1 (#2846)
diff --git a/Cargo.lock b/Cargo.lock index f61d3abc1..76c99d6e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1368,9 +1368,9 @@ checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135" [[package]] name = "iter-enum" -version = "0.2.7" +version = "1.0.1" source = "registry+https://github.com/rus...
2
3
3
ef2ad6375d0dd22d1122088c47aea01a86305d1d
Peter Huene
2021-04-16T19:28:27
Consolidate module construction. This commit adds `Module::from_parts` as an internal constructor that shared the implementation between `Module::from_binary` and module deserialization.
diff --git a/crates/wasmtime/src/module.rs b/crates/wasmtime/src/module.rs index af108d2ba..e9ae9579e 100644 --- a/crates/wasmtime/src/module.rs +++ b/crates/wasmtime/src/module.rs @@ -320,12 +320,22 @@ impl Module { } }; - let mut modules = CompiledModule::from_artifacts_list( + l...
2
82
87
dfab471ce5bf8b5cbf29d9b542d143930ea5cf05
Peter Huene
2021-04-16T19:26:42
Remove unused file. This file hasn't been used for a while and was mistakenly not deleted.
diff --git a/crates/wasmtime/src/trampoline/create_handle.rs b/crates/wasmtime/src/trampoline/create_handle.rs deleted file mode 100644 index d04d2899f..000000000 --- a/crates/wasmtime/src/trampoline/create_handle.rs +++ /dev/null @@ -1,51 +0,0 @@ -//! Support for a calling of an imported function. - -use crate::trampo...
1
0
51
b775b68cfb623f8dbf0448986cc43e8e5458aa36
Peter Huene
2021-04-16T19:05:38
Make module information lookup from runtime safe. This commit uses a two-phase lookup of stack map information from modules rather than giving back raw pointers to stack maps. First the runtime looks up information about a module from a pc value, which returns an `Arc` it keeps a reference on while completing the sta...
diff --git a/crates/environ/src/vmoffsets.rs b/crates/environ/src/vmoffsets.rs index 20f3b8a29..6fc68f5e2 100644 --- a/crates/environ/src/vmoffsets.rs +++ b/crates/environ/src/vmoffsets.rs @@ -6,7 +6,7 @@ // struct VMContext { // interrupts: *const VMInterrupts, // externref_activations_table: *mut VMExter...
15
118
114
6ac1321162b7a7035082804118d4d1eccbc3259a
Peter Huene
2021-04-16T18:06:24
Minor corrections with latest changes.
diff --git a/crates/runtime/src/externref.rs b/crates/runtime/src/externref.rs index 44a60ce79..0eed6562b 100644 --- a/crates/runtime/src/externref.rs +++ b/crates/runtime/src/externref.rs @@ -750,7 +750,7 @@ impl VMExternRefActivationsTable { /// /// It is the responsibility of the caller to not have the pointer out...
5
5
5
726a936474b9dcf2e4e8406fdb4a877bf6809812
Peter Huene
2021-04-16T17:41:55
Remove ArcModuleCode as it is no longer used.
diff --git a/crates/wasmtime/src/store.rs b/crates/wasmtime/src/store.rs index 6b4c65a1f..8103278b1 100644 --- a/crates/wasmtime/src/store.rs +++ b/crates/wasmtime/src/store.rs @@ -15,7 +15,6 @@ use std::ptr; use std::rc::Rc; use std::sync::Arc; use std::task::{Context, Poll}; -use wasmtime_jit::ModuleCode; use was...
1
0
19
510fc717281327971f35b40879567f1dc9918e9c
Peter Huene
2021-04-16T03:15:24
Code review feedback. * Make `FunctionInfo` public and `CompiledModule::func_info` return it. * Make the `StackMapLookup` trait unsafe. * Add comments for the purpose of `EngineHostFuncs`. * Rework ownership model of shared signatures: `SignatureCollection` in conjunction with `SignatureRegistry` is now used so that...
diff --git a/crates/jit/src/instantiate.rs b/crates/jit/src/instantiate.rs index 5527051ec..3ff67d9c7 100644 --- a/crates/jit/src/instantiate.rs +++ b/crates/jit/src/instantiate.rs @@ -176,11 +176,13 @@ struct FinishedFunctions(PrimaryMap<DefinedFuncIndex, *mut [VMFunctionBody]>); unsafe impl Send for FinishedFunction...
13
336
344
ea72c621f07644609c87252d5fb4454d8d8f0e49
Peter Huene
2021-04-14T20:45:56
Remove the stack map registry. This commit removes the stack map registry and instead uses the existing information from the store's module registry to lookup stack maps. A trait is now used to pass the lookup context to the runtime, implemented by `Store` to do the lookup. With this change, module registration in `...
diff --git a/crates/environ/src/vmoffsets.rs b/crates/environ/src/vmoffsets.rs index e5d660461..20f3b8a29 100644 --- a/crates/environ/src/vmoffsets.rs +++ b/crates/environ/src/vmoffsets.rs @@ -6,7 +6,7 @@ // struct VMContext { // interrupts: *const VMInterrupts, // externref_activations_table: *mut VMExter...
16
158
264
8ab3511b3b0d9a7e0706a617c6b79d71f1a93775
Benjamin Bouvier
2021-04-16T16:05:49
Generate unwind information on Win64 with the old backend Following the new ABI introduced for efficient support of multiple return values, the old-backend test for generating unwind information was incomplete, resulting in no unwind information being generated and traps not being correctly caught by the runtime.
diff --git a/cranelift/codegen/src/isa/x86/unwind/winx64.rs b/cranelift/codegen/src/isa/x86/unwind/winx64.rs index b2da0bc8b..33e5463bb 100644 --- a/cranelift/codegen/src/isa/x86/unwind/winx64.rs +++ b/cranelift/codegen/src/isa/x86/unwind/winx64.rs @@ -2,7 +2,7 @@ use crate::ir::Function; use crate::isa::x86::regis...
1
2
2
50aa6457692fcb319e578ddceaef26536548824e
Benjamin Bouvier
2021-03-23T19:09:06
cranelift: use a deferred display wrapper for logging the vcode's IR
diff --git a/cranelift/codegen/src/lib.rs b/cranelift/codegen/src/lib.rs index 5b80073b7..331c8f81b 100644 --- a/cranelift/codegen/src/lib.rs +++ b/cranelift/codegen/src/lib.rs @@ -97,6 +97,7 @@ mod inst_predicates; mod iterators; mod legalizer; mod licm; +mod log; mod nan_canonicalization; mod partition_slice; m...
3
52
16
d2a98ced535b603c7c075f6da6e121a431db34b7
Pat Hickey
2021-04-15T23:00:11
use some better traits
diff --git a/Cargo.lock b/Cargo.lock index 3f5d294b2..3e6649aa3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -285,6 +285,12 @@ version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b" +[[package]] +name = "bytes" ...
4
45
47