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 |
|---|---|---|---|---|---|---|---|
4f6a002f704e4d0023d122836bc6468e7376e7c1 | Benjamin Bouvier | 2020-06-18T10:21:19 | cranelift-filetests: tell when a run test is skipped (fixes #1558); | diff --git a/cranelift/filetests/src/runone.rs b/cranelift/filetests/src/runone.rs
index 531179164..56675a3b0 100644
--- a/cranelift/filetests/src/runone.rs
+++ b/cranelift/filetests/src/runone.rs
@@ -75,6 +75,7 @@ pub fn run(path: &Path, passes: Option<&[String]>, target: Option<&str>) -> Test
Some(t) => t,
... | 3 | 17 | 8 |
92137179174a56a75ded7085a4d94ae8f85d75d0 | Alexandru Ene | 2020-06-18T23:09:33 | Run cc tests if any are found in the examples folder | diff --git a/crates/misc/run-examples/src/main.rs b/crates/misc/run-examples/src/main.rs
index f782b929c..d9a44c74f 100644
--- a/crates/misc/run-examples/src/main.rs
+++ b/crates/misc/run-examples/src/main.rs
@@ -51,7 +51,7 @@ fn main() {
.arg("--example")
.arg(&example));
- println!(... | 1 | 34 | 24 |
492000e94571ad4b5be6acf339f5019b9c76cc34 | Chris Fallin | 2020-06-18T18:18:22 | MachInst isel and aarch64 backend: docs / clarity improvements.
From discussion with Julian and Ben, this PR makes a few documentation-
and naming-level changes (no functionality change):
- Document that the `LowerCtx`-provided output register can be used as a
scratch register during the lowered instruction sequenc... | diff --git a/cranelift/codegen/src/isa/aarch64/lower.rs b/cranelift/codegen/src/isa/aarch64/lower.rs
index 831eeec9b..77d96e85b 100644
--- a/cranelift/codegen/src/isa/aarch64/lower.rs
+++ b/cranelift/codegen/src/isa/aarch64/lower.rs
@@ -168,7 +168,7 @@ pub(crate) fn output_to_const_f128<C: LowerCtx<I = Inst>>(
}
//... | 3 | 163 | 159 |
6c05590104bbadcf522875d8db2561d6ce65282e | Andrew Brown | 2020-06-01T17:23:38 | Translate Wasm's i32x4.trunc_sat_f32x4_s instruction to Cranelift's fcvt_to_sint_sat | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index 20c6e3af8..8b73f8dca 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -1548,8 +1548,11 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
let a = pop1_w... | 1 | 5 | 2 |
3740772176be0cd73d5e721456846f3db67bd31a | Andrew Brown | 2020-05-27T00:13:20 | Add encoding for x86 CVTTPS2DQ
This reuses the `x86_cvtt2si` instruction since the packed and scalar versions seem to group together well. | diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs
index d507abc0f..afceebff3 100644
--- a/cranelift/codegen/meta/src/isa/x86/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs
@@ -1635,6 +1635,7 @@ fn define_simd(
let usub_sat = shared.by... | 2 | 12 | 0 |
bbd99c5bfa36fa190dbaebcd1e9ce41f774d4b8a | Nick Fitzgerald | 2020-06-18T13:57:18 | reference types: Implement the `table.size` and `table.grow` instructions (#1894)
Part of #929 | diff --git a/build.rs b/build.rs
index 3118925b7..1fae123f2 100644
--- a/build.rs
+++ b/build.rs
@@ -212,7 +212,8 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
("simd", "simd_const") => return true,
("reference_types", "table_copy_on_imported_tables")
- |... | 8 | 439 | 381 |
90bafae1dc2dbc42da62719961f81570ab622bdd | Anton Kirilov | 2020-06-12T22:19:53 | AArch64: Implement SIMD floating-point comparisons
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 3118925b7..b33f022ad 100644
--- a/build.rs
+++ b/build.rs
@@ -184,6 +184,8 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
("simd", "simd_align") => return false,
("simd", "simd_bitwise") => return false,
("simd", "sim... | 6 | 149 | 66 |
043571fee05ea4cb21e6568cb90e3b81ced29d8c | Johnnie Birch | 2020-06-01T07:39:31 | Adds f32.mul, f32.div for vcode backend for x64.
Adds support for lowering clif instructions Fdiv and Fmul
for new vcode backend. Misc adds lowering and test for
sqrtss and removes a redundant to_string() func for the
SseOpcode struct. | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 10541c86f..fe65145c5 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -291,16 +291,6 @@ impl SseOpcode {
SseOpcode::Insertps | SseOpcode::Rou... | 4 | 31 | 24 |
c2692ecb8a5ea04f2e14c295ad32f93426e7156d | Benjamin Bouvier | 2020-06-15T15:13:10 | Wasmtime: allow using the experimental Cranelift x64 backend in cli;
This introduces two changes:
- first, a Cargo feature is added to make it possible to use the
Cranelift x64 backend directly from wasmtime's CLI.
- second, when passing a `cranelift-flags` parameter, and the given
parameter's name doesn't exist at t... | diff --git a/Cargo.toml b/Cargo.toml
index d7b22090f..147c2d6c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -81,6 +81,10 @@ lightbeam = [
jitdump = ["wasmtime/jitdump"]
vtune = ["wasmtime/vtune"]
+# Try the experimental, work-in-progress new x86_64 backend. This is not stable
+# as of June 2020.
+experimental_x64 =... | 5 | 29 | 6 |
0f462330e0562b78c7565fbc1df9650ff1342a15 | Joey Gouly | 2020-06-17T14:40:51 | arm64: Implement AllTrue and AnyTrue
This enables the simd_boolean WASM SIMD spec test.
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 40b4385b5..fdf21f0e1 100644
--- a/build.rs
+++ b/build.rs
@@ -182,6 +182,7 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
"Cranelift" => match (testsuite, testname) {
("simd", "simd_address") => return false,
("simd", "si... | 7 | 211 | 13 |
b2549d1fde8a708701b2600943ff483e81ea187c | Carlo Kok | 2020-06-17T04:46:58 | Rust fmt fixes | diff --git a/cranelift/faerie/src/backend.rs b/cranelift/faerie/src/backend.rs
index be2ad792c..8fae42a0b 100644
--- a/cranelift/faerie/src/backend.rs
+++ b/cranelift/faerie/src/backend.rs
@@ -215,7 +215,11 @@ impl Backend for FaerieBackend {
} = data_ctx.description();
if let Some((segment, section... | 3 | 9 | 6 |
8f0e330467ceaf48b7988f9d4d8872f1eba2fef8 | Nick Fitzgerald | 2020-06-16T17:03:09 | Add `TODO` comments with link to issue for aarch64 reference types | diff --git a/build.rs b/build.rs
index 40b4385b5..08ac51f65 100644
--- a/build.rs
+++ b/build.rs
@@ -211,8 +211,8 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
("reference_types", "table_copy_on_imported_tables")
| ("reference_types", "externref_id_function") => {
-... | 2 | 3 | 3 |
683dc1538540324ddbe2e833830bb5ac33a4827e | Nick Fitzgerald | 2020-06-15T23:05:51 | Only run reference types tests on x86_64
Cranelift does not support reference types on other targets. | diff --git a/build.rs b/build.rs
index 2cbb4b381..40b4385b5 100644
--- a/build.rs
+++ b/build.rs
@@ -209,9 +209,14 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
// testsuite repo.
("simd", "simd_const") => return true,
+ ("reference_types", "table_copy_on... | 2 | 11 | 3 |
8d671c21e2568fabc22c2f1d34f6e0284d82f970 | Nick Fitzgerald | 2020-06-15T21:55:23 | wasmtime-runtime: Allow tables to internally hold `externref`s (#1882)
This commit enables `wasmtime_runtime::Table` to internally hold elements of
either `funcref` (all that is currently supported) or `externref` (newly
introduced in this commit).
This commit updates `Table`'s API, but does NOT generally propaga... | diff --git a/crates/environ/src/func_environ.rs b/crates/environ/src/func_environ.rs
index 52e4fbb64..c4ee1aa16 100644
--- a/crates/environ/src/func_environ.rs
+++ b/crates/environ/src/func_environ.rs
@@ -1192,7 +1192,7 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
_table:... | 5 | 124 | 51 |
0b613caad159dd38d85dc6f1bacb719766c76610 | Carlo Kok | 2020-06-15T18:46:04 | Address concerns in pullrequests. | diff --git a/Cargo.lock b/Cargo.lock
index 8d73830f4..0e769ed75 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -489,6 +489,7 @@ dependencies = [
name = "cranelift-object"
version = "0.64.0"
dependencies = [
+ "anyhow",
"cranelift-codegen",
"cranelift-module",
"object",
diff --git a/cranelift/faerie/src/backend.rs... | 6 | 21 | 15 |
618c278e419f58fd1a5df0edfcb332402fdd9e16 | Nick Fitzgerald | 2020-06-11T21:29:30 | externref: implement a canary for GC stack walking
This allows us to detect when stack walking has failed to walk the whole stack,
and we are potentially missing on-stack roots, and therefore it would be unsafe
to do a GC because we could free objects too early, leading to use-after-free.
When we detect this scenario,... | diff --git a/crates/runtime/src/externref.rs b/crates/runtime/src/externref.rs
index dba09a801..92d7105a8 100644
--- a/crates/runtime/src/externref.rs
+++ b/crates/runtime/src/externref.rs
@@ -499,6 +499,14 @@ pub struct VMExternRefActivationsTable {
/// is just part of this struct so that we can reuse the allocat... | 3 | 195 | 26 |
357fb11f4603afc5f81eb087e00ca9e543ab4db7 | Benjamin Bouvier | 2020-06-11T16:46:46 | Review comments; | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index b92b3d0cc..10541c86f 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -216,6 +216,8 @@ pub enum SseOpcode {
Addsd,
Comiss,
Comisd,
+ Cmp... | 2 | 126 | 112 |
28c40ba0f7222b5a68d721c318cb8b578a84872a | Benjamin Bouvier | 2020-06-11T15:48:46 | machinst x64: refactor lowering too; | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 35f113a32..b92b3d0cc 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -5,6 +5,7 @@ use std::string::{String, ToString};
use regalloc::{RealRegUniverse,... | 2 | 111 | 112 |
48fb9291bc38c408e48ed0415511b5d231e00878 | Benjamin Bouvier | 2020-06-11T14:51:44 | machinst x64: refactor REX prefix emission; | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index 3f625a245..c7528bc1c 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -76,17 +76,38 @@ impl Rex {
self
}
- /// Return whether the W bit... | 1 | 29 | 33 |
be4102b2056affbaf76b21343e36e8d2ab7e399d | Benjamin Bouvier | 2020-06-11T14:37:11 | machinst x64: create a Rex wrapper to avoid flags for the REX prefix; | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index b2036ce90..3f625a245 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -51,16 +51,43 @@ fn reg_enc(reg: Reg) -> u8 {
reg.get_hw_encoding()
}
-// F_... | 1 | 146 | 114 |
d9ca9741335fb4cc0e65b3c5d457baa856a6dc8e | Benjamin Bouvier | 2020-06-11T13:54:16 | machinst x64: renamings in the emit functions;
This gets closer to Rust naming standards, and shorten a few names. | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index 681dec6ce..b2036ce90 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -1,12 +1,12 @@
use crate::isa::x64::inst::*;
use regalloc::Reg;
-fn low8willSXto... | 1 | 259 | 265 |
ef5de04d3216c715749d53188c242a39b2f422dc | Benjamin Bouvier | 2020-06-10T16:37:45 | machinst/x64: teach regalloc what FP instructions are moves;
and cosmetic changes after #1665 landed. | diff --git a/cranelift/codegen/src/isa/x64/abi.rs b/cranelift/codegen/src/isa/x64/abi.rs
index 2505286e0..3ac4633ce 100644
--- a/cranelift/codegen/src/isa/x64/abi.rs
+++ b/cranelift/codegen/src/isa/x64/abi.rs
@@ -315,9 +315,7 @@ impl ABIBody for X64ABIBody {
from_reg.to_reg(),
... | 3 | 9 | 9 |
03038340821a563e3354d906659b18a3e0c50dc4 | SlightlyOutOfPhase | 2020-06-15T14:05:26 | Fix lightbeam compilation by updating staticvec dependency to version 0.10 (#1878)
* Update StaticVec dependency from 0.9 to 0.10
* Update lockfile also | diff --git a/Cargo.lock b/Cargo.lock
index db92d0197..0298e2d04 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1896,9 +1896,9 @@ checksum = "dba1a27d3efae4351c8051072d619e3ade2820635c3958d826bfea39d59b54c8"
[[package]]
name = "staticvec"
-version = "0.9.3"
+version = "0.10.0"
source = "registry+https://github.com/ru... | 2 | 3 | 3 |
238ae3bf2111847f60089656eb97fc9345295b1f | Benjamin Bouvier | 2020-06-12T17:22:06 | cranelift: tweak condition in safepoint detection to check for resumable traps; | diff --git a/cranelift/codegen/src/ir/instructions.rs b/cranelift/codegen/src/ir/instructions.rs
index 6354b9258..f835bd5f4 100644
--- a/cranelift/codegen/src/ir/instructions.rs
+++ b/cranelift/codegen/src/ir/instructions.rs
@@ -59,6 +59,14 @@ impl Opcode {
pub fn constraints(self) -> OpcodeConstraints {
... | 2 | 10 | 6 |
dad56a2488e7a715db77b45bedea72b83cd3770c | Benjamin Bouvier | 2020-06-12T10:58:36 | cranelift: add a new resumable_trapnz instruction;
This is useful to have to allow resumable_trap to happen in loop
headers, for instance. This is the correct way to implement interrupt
checks in Spidermonkey, which are effectively resumable traps. Previous
implementation was using traps, which is wrong, since traps s... | diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs
index 62cd1ebeb..7a30a755e 100644
--- a/cranelift/codegen/meta/src/shared/instructions.rs
+++ b/cranelift/codegen/meta/src/shared/instructions.rs
@@ -340,7 +340,21 @@ fn define_control_flow(
... | 4 | 36 | 12 |
60d55a3483165c0b31503edebab5ce8c0294990c | Jakub Konka | 2020-06-11T21:48:38 | Remove a runaway explicit drop | diff --git a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
index 49ae8270e..a6d3d97d4 100644
--- a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
+++ b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
@@ -223,7 +223,6 @@ imp... | 1 | 0 | 1 |
f1e773dc85d76780eaa30053f3e6bc59b518f7b3 | Andrew Brown | 2020-05-26T22:21:24 | Translate Wasm's f32x4.convert_i32x4_u instruction to Cranelift's fcvt_from_uint | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index df6eda176..20c6e3af8 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -1544,9 +1544,12 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
let a = pop1_w... | 1 | 4 | 1 |
23ed48f269905cb57977d9d1d5ab358f4453fba8 | Andrew Brown | 2020-05-26T21:53:59 | Add AVX512F flag | diff --git a/cranelift/codegen/meta/src/isa/x86/settings.rs b/cranelift/codegen/meta/src/isa/x86/settings.rs
index 0ef36b668..0059bf086 100644
--- a/cranelift/codegen/meta/src/isa/x86/settings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/settings.rs
@@ -23,7 +23,12 @@ pub(crate) fn define(shared: &SettingGroup) -> Setti... | 2 | 13 | 1 |
9788b02dd512f9e3f88b528a6cddf4cb89ba876f | bjorn3 | 2020-06-12T20:37:04 | Bump object to 0.19.0 (#1767)
* Bump object to 0.19.0 | diff --git a/Cargo.lock b/Cargo.lock
index 8e84398ce..db92d0197 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -490,6 +490,7 @@ dependencies = [
name = "cranelift-object"
version = "0.65.0"
dependencies = [
+ "anyhow",
"cranelift-codegen",
"cranelift-module",
"object",
@@ -1223,13 +1224,12 @@ checksum = "17b02fc0... | 9 | 109 | 26 |
544c5dece5f282203f2a00f7c2e28d4b36ecc2ad | Joey Gouly | 2020-06-11T16:30:55 | arm64: Implement SIMD bitwise operations
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 8792f6e4d..2cbb4b381 100644
--- a/build.rs
+++ b/build.rs
@@ -181,6 +181,7 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
},
"Cranelift" => match (testsuite, testname) {
("simd", "simd_address") => return false,
+ ... | 5 | 223 | 60 |
ed7e410111cab0d265e685dcbeb8d64b0950d3f3 | Chris Fallin | 2020-06-10T19:47:08 | Bugfix: scaled addressing mode: round B1 up to one byte.
Issue uncovered by Ben Bouvier during regalloc work. | diff --git a/cranelift/codegen/src/isa/aarch64/inst/imms.rs b/cranelift/codegen/src/isa/aarch64/inst/imms.rs
index 20a8225e7..6fea5efb5 100644
--- a/cranelift/codegen/src/isa/aarch64/inst/imms.rs
+++ b/cranelift/codegen/src/isa/aarch64/inst/imms.rs
@@ -233,6 +233,9 @@ impl UImm12Scaled {
/// Create a UImm12Scaled ... | 1 | 3 | 0 |
65ebfc3a035a66843e0b1fc2fd03723665f4de88 | Daiki Ueno | 2020-06-10T14:37:42 | wasi-common: don't rely on platform dependent "NUL" device
If stdio is not inherited nor associated with a file, WasiCtxBuilder
tries to open "/dev/null" ("NUL" on Windows) and attach stdio to it.
While most platforms today support those device files, it would be
good to avoid unnecessary access to the host device if ... | diff --git a/crates/wasi-common/src/ctx.rs b/crates/wasi-common/src/ctx.rs
index 3121cb146..05bb0fce9 100644
--- a/crates/wasi-common/src/ctx.rs
+++ b/crates/wasi-common/src/ctx.rs
@@ -2,7 +2,7 @@ use crate::entry::{Entry, EntryHandle};
use crate::fdpool::FdPool;
use crate::handle::Handle;
use crate::sys::osdir::OsD... | 6 | 67 | 38 |
2926725d632b034f9bb72a4b263ea524e76e5eaf | Peter Schwarz | 2020-06-10T22:17:51 | Correct example module doc comment typo
Correct the module doc comment typo of "mulit" to "multi".
Signed-off-by: Peter Schwarz <pschwarz@bitwise.io> | diff --git a/examples/multi.rs b/examples/multi.rs
index ebdbb9101..f39fd2798 100644
--- a/examples/multi.rs
+++ b/examples/multi.rs
@@ -1,4 +1,4 @@
-//! This is an example of working with mulit-value modules and dealing with
+//! This is an example of working with multi-value modules and dealing with
//! multi-value ... | 1 | 1 | 1 |
9d269b01230fb306914702907b4bcdc1db2cb71e | Anton Kirilov | 2020-06-10T14:35:45 | Enable the spec::simd::simd_address test for AArch64
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 4c363c5c8..8792f6e4d 100644
--- a/build.rs
+++ b/build.rs
@@ -180,6 +180,7 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
_ => (),
},
"Cranelift" => match (testsuite, testname) {
+ ("simd", "simd_address") => retur... | 1 | 1 | 0 |
5fa4d36b0d8a099f2523ba265b84cd31b41644b2 | Alex Crichton | 2020-06-10T17:50:21 | Disable Cranelift debug verifier when fuzzing (#1851)
* Add CLI flags for internal cranelift options
This commit adds two flags to the `wasmtime` CLI:
* `--enable-cranelift-debug-verifier`
* `--enable-cranelift-nan-canonicalization`
These previously weren't exposed from the command line but have been
useful... | diff --git a/crates/fuzzing/src/generators.rs b/crates/fuzzing/src/generators.rs
index 221c54e0e..e6e4cc76b 100644
--- a/crates/fuzzing/src/generators.rs
+++ b/crates/fuzzing/src/generators.rs
@@ -102,7 +102,6 @@ impl OptLevel {
#[derive(Arbitrary, Debug)]
pub struct Config {
opt_level: OptLevel,
- debug_veri... | 4 | 12 | 8 |
48f0b10c7a0db45a4578246aab7ac8a440de482c | Johnnie Birch | 2020-05-06T05:05:36 | Add initial scalar FP operations (addss, subss, etc) to x64 backend.
Adds support for addss and subss. This is the first lowering for
sse floating point alu and some move operations. The changes here do
some renaming of data structures and adds a couple of new ones
to support sse specific operations. The work done her... | diff --git a/cranelift/codegen/src/isa/x64/abi.rs b/cranelift/codegen/src/isa/x64/abi.rs
index 4ba75e394..2505286e0 100644
--- a/cranelift/codegen/src/isa/x64/abi.rs
+++ b/cranelift/codegen/src/isa/x64/abi.rs
@@ -48,7 +48,7 @@ pub(crate) struct X64ABIBody {
flags: settings::Flags,
}
-fn in_int_reg(ty: types::Ty... | 10 | 503 | 66 |
e5b81bbc285b3fab96443c9efccab94638be4091 | Yury Delendik | 2020-06-10T16:27:00 | Migrating code to object (from faerie) (#1848)
* Using the "object" library everywhere in wasmtime.
* scroll_derive | diff --git a/Cargo.lock b/Cargo.lock
index 2fbb6a80c..a41b6bf60 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2345,12 +2345,12 @@ version = "0.17.0"
dependencies = [
"anyhow",
"env_logger",
- "faerie",
"file-per-thread-logger",
"filecheck",
"humantime",
"libc",
"more-asserts",
+ "object",
"pretty_env_lo... | 13 | 166 | 77 |
5d01603390f4c1f03dff84d2ef8ea9d4f536cd5a | Benjamin Bouvier | 2020-06-08T15:17:11 | mach backend: allow snapshotting IR graphs with the SNAPSHOT_REGALLOC env variable;
This also requires the serde feature, which isn't enabled by default,
thus it must be passed as a command-line argument to cargo. | diff --git a/Cargo.lock b/Cargo.lock
index ce9b1894c..2fbb6a80c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -368,6 +368,7 @@ dependencies = [
name = "cranelift-codegen"
version = "0.64.0"
dependencies = [
+ "bincode",
"byteorder",
"cranelift-bforest",
"cranelift-codegen-meta",
@@ -1669,6 +1670,7 @@ checksum = ... | 3 | 20 | 0 |
5d5b39d685c87014d149813415435193a02c24bd | Benjamin Bouvier | 2020-06-10T12:24:53 | Allow setting other Cranelift flags when running in Wasmtime. | diff --git a/crates/wasmtime/src/runtime.rs b/crates/wasmtime/src/runtime.rs
index d3915ae29..f6eb0e97e 100644
--- a/crates/wasmtime/src/runtime.rs
+++ b/crates/wasmtime/src/runtime.rs
@@ -355,6 +355,24 @@ impl Config {
self
}
+ /// Allows settings another Cranelift flag defined by a flag name and va... | 2 | 47 | 0 |
d941034c2ec4600f800a31b29db40709b2a4b6bf | Anton Kirilov | 2020-06-06T00:39:57 | Enable the wast::Cranelift::spec::simd::simd_load_splat test for AArch64
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 59db9b276..4c363c5c8 100644
--- a/build.rs
+++ b/build.rs
@@ -181,10 +181,11 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
},
"Cranelift" => match (testsuite, testname) {
("simd", "simd_i8x16_cmp") => return false,
- ... | 6 | 164 | 8 |
4ebbcb82a97eeb7a65f9c32be8a5452961ee63db | Yury Delendik | 2020-06-09T20:09:48 | Refactor CompiledModule to separate compile and linking stages (#1831)
* Refactor how relocs are stored and handled
* refactor CompiledModule::instantiate and link_module
* Refactor DWARF creation: split generation and serialization
* Separate DWARF data transform from instantiation
* rm LinkContext | diff --git a/crates/debug/src/lib.rs b/crates/debug/src/lib.rs
index e831570cf..bf1dd7c92 100644
--- a/crates/debug/src/lib.rs
+++ b/crates/debug/src/lib.rs
@@ -3,117 +3,99 @@
#![allow(clippy::cast_ptr_alignment)]
use anyhow::Error;
-use faerie::{Artifact, Decl};
-use gimli::write::{Address, FrameTable};
+use faeri... | 9 | 401 | 341 |
f47133b229f420d82fa0a2abe06589d172049ec6 | Jakub Konka | 2020-06-09T18:19:20 | Allow different Handles to act as stdio (#1600)
* Allow any type which implements Handle to act as stdio
There have been requests to allow more than just raw OS handles to
act as stdio in `wasi-common`. This commit makes this possible by
loosening the requirement of the `WasiCtxBuilder` to accept any
type `T: Ha... | diff --git a/crates/c-api/src/wasi.rs b/crates/c-api/src/wasi.rs
index 4a7ed6c30..6daad6aae 100644
--- a/crates/c-api/src/wasi.rs
+++ b/crates/c-api/src/wasi.rs
@@ -201,63 +201,77 @@ enum WasiInstance {
Snapshot0(WasiSnapshot0),
}
-macro_rules! config_to_builder {
- ($builder:ident, $config:ident) => {{
- ... | 16 | 234 | 89 |
df2b031b6a85b9f44b31a4819eed2d8da0465d90 | Joey Gouly | 2020-06-09T09:55:55 | arm64: Implement Icmp for I16X8 and I32X4
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 835cc8788..b36501679 100644
--- a/build.rs
+++ b/build.rs
@@ -182,6 +182,8 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
"Cranelift" => match (testsuite, testname) {
("simd", "simd_i8x16_cmp") => return false,
("simd", "... | 8 | 149 | 15 |
7ac19af4982438eb55d63f1af32a87a51a0dca7f | Anton Kirilov | 2020-05-29T16:03:33 | Enable the wast::Cranelift::spec::simd::simd_load_extend test for AArch64
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 835cc8788..c2524832e 100644
--- a/build.rs
+++ b/build.rs
@@ -181,6 +181,7 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
},
"Cranelift" => match (testsuite, testname) {
("simd", "simd_i8x16_cmp") => return false,
+ ... | 6 | 175 | 15 |
858e6f3805abb2cb86d11bc2c0d6e70fd61b71c4 | Maciej Woś | 2020-06-09T13:56:00 | fix memory memory creator reserved_size (#1844)
* fix memory memory creator reserved_size
* update doc comment | diff --git a/crates/wasmtime/src/externals.rs b/crates/wasmtime/src/externals.rs
index 0aed6429f..5e6cf3aca 100644
--- a/crates/wasmtime/src/externals.rs
+++ b/crates/wasmtime/src/externals.rs
@@ -879,7 +879,7 @@ pub unsafe trait MemoryCreator: Send + Sync {
/// The type of memory being created is specified by `ty... | 2 | 11 | 11 |
51a551fb39b3d89590a034b2c0ba20b67c4d5970 | Anton Kirilov | 2020-05-28T16:19:36 | Implement vector element extensions for AArch64
This commit also includes load and extend operations. Both are
prerequisites for enabling further SIMD spec tests.
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index ee794a7b7..835cc8788 100644
--- a/build.rs
+++ b/build.rs
@@ -180,8 +180,8 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
_ => (),
},
"Cranelift" => match (testsuite, testname) {
- ("simd", "simd_store") => return ... | 8 | 164 | 13 |
6d25759c8e2efba7566557df51498bfdbed7d521 | Julian Seward | 2020-06-09T08:36:32 | Rewrite `lower_edge` to produce better phi-translations:
* ensure that all const assignments are placed at the end of the sequence.
This minimises live ranges.
* for the non-const assignments, ignore self-assignments. This can
dramatically reduce the total number of moves generated, because any
self-assignment... | diff --git a/cranelift/codegen/src/machinst/lower.rs b/cranelift/codegen/src/machinst/lower.rs
index a4bd09cfa..f8bff0d05 100644
--- a/cranelift/codegen/src/machinst/lower.rs
+++ b/cranelift/codegen/src/machinst/lower.rs
@@ -408,112 +408,100 @@ impl<'func, I: VCodeInst> Lower<'func, I> {
fn lower_edge(&mut self, p... | 1 | 73 | 85 |
59307625c80fe5e0c023317273865dce4a563f38 | Chris Fallin | 2020-06-05T22:32:24 | Allow ModuleTranslationState to be constructed with signatures.
This is needed to allow SpiderMonkey to provide function signature types
to the wasm translator when it uses Cranelift as a backend without
using the wasm translator to parse the entire module. There is perhaps a
better long-term design here where we allo... | diff --git a/cranelift/wasm/src/state/module_state.rs b/cranelift/wasm/src/state/module_state.rs
index e99730585..4f6ce3539 100644
--- a/cranelift/wasm/src/state/module_state.rs
+++ b/cranelift/wasm/src/state/module_state.rs
@@ -1,6 +1,9 @@
+use crate::environ::{WasmError, WasmResult};
use crate::translation_utils::Si... | 1 | 38 | 0 |
38531b8f426a5eb9c0b96dd2e83fa4e2ca917db5 | Carlo Kok | 2020-06-08T17:56:21 | Rust fmt fixes | diff --git a/cranelift/faerie/src/backend.rs b/cranelift/faerie/src/backend.rs
index 29ae59907..192cf455f 100644
--- a/cranelift/faerie/src/backend.rs
+++ b/cranelift/faerie/src/backend.rs
@@ -211,7 +211,7 @@ impl Backend for FaerieBackend {
ref data_decls,
ref function_relocs,
re... | 3 | 35 | 27 |
7ab5f2a869008bdc123cbe979acc190d17df2719 | Maciej Woś | 2020-06-08T17:33:28 | Remove custom signal handler restrictions (#1843)
* remove custom signal handler origin restriction
* add a test for handling signals from a hostcall
* cargo fmt | diff --git a/crates/runtime/src/traphandlers.rs b/crates/runtime/src/traphandlers.rs
index f96c3c8a7..0bd6f2cd1 100644
--- a/crates/runtime/src/traphandlers.rs
+++ b/crates/runtime/src/traphandlers.rs
@@ -589,11 +589,6 @@ impl<'a> CallThreadState<'a> {
return ptr::null();
}
- // If this f... | 2 | 55 | 9 |
04492983d2c6487d7ff5cae95ff1624f3b485c96 | Carlo Kok | 2020-06-08T17:19:20 | Extra assertions and fix for SimpleJit. | diff --git a/cranelift/simplejit/src/backend.rs b/cranelift/simplejit/src/backend.rs
index fc22d62f9..f4c6af2da 100644
--- a/cranelift/simplejit/src/backend.rs
+++ b/cranelift/simplejit/src/backend.rs
@@ -361,8 +361,11 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
ref data_decls,
... | 1 | 3 | 0 |
4ff01aa8989b5ff10766786b03b020b3e0e71799 | Carlo Kok | 2020-06-08T05:22:36 | Extra assertions and fix for Faerie. | diff --git a/cranelift/faerie/src/backend.rs b/cranelift/faerie/src/backend.rs
index 84352b269..29ae59907 100644
--- a/cranelift/faerie/src/backend.rs
+++ b/cranelift/faerie/src/backend.rs
@@ -211,8 +211,11 @@ impl Backend for FaerieBackend {
ref data_decls,
ref function_relocs,
r... | 2 | 4 | 0 |
6b47079884e9f816b1c4b9790718de6db3fe1bc2 | Carlo Kok | 2020-06-06T14:08:21 | Cranelift: Module data apis should allow specifying the object file section #1640 | diff --git a/cranelift/module/src/data_context.rs b/cranelift/module/src/data_context.rs
index 94dbeb0b9..a20d734cd 100644
--- a/cranelift/module/src/data_context.rs
+++ b/cranelift/module/src/data_context.rs
@@ -46,6 +46,8 @@ pub struct DataDescription {
pub function_relocs: Vec<(CodeOffset, ir::FuncRef)>,
/... | 2 | 32 | 15 |
be20c9220598fc3ea787b01eba3c66b452e8b01b | bjorn3 | 2020-06-05T14:27:06 | Correct version of region dependency of simplejit (#1827) | diff --git a/cranelift/simplejit/Cargo.toml b/cranelift/simplejit/Cargo.toml
index 85924a2b0..042d94677 100644
--- a/cranelift/simplejit/Cargo.toml
+++ b/cranelift/simplejit/Cargo.toml
@@ -13,7 +13,7 @@ edition = "2018"
cranelift-module = { path = "../module", version = "0.64.0" }
cranelift-native = { path = "../nati... | 1 | 1 | 1 |
6f37204f821c115e215629f4d47b360bc04530cf | Yury Delendik | 2020-06-04T19:34:05 | Upgrade gimli to 0.21 (#1819)
* Use gimli 0.21
* rm CFI w Expression
* Don't write .debug_frame twice | diff --git a/Cargo.lock b/Cargo.lock
index b11298f3d..8d73830f4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -923,15 +923,12 @@ dependencies = [
[[package]]
name = "gimli"
-version = "0.20.0"
+version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81dd6190aad0f05ddbbf3245c5... | 14 | 45 | 74 |
cd4a441d883db9445aa08ca4426141f3b2c62cdb | Leonardo Yvens | 2020-06-04T14:00:49 | impl WasmTy for u32 and u64 (#1808)
* impl WasmTy for u32 and u64
* docs: Update Rust to wasm type table | diff --git a/crates/wasmtime/src/func.rs b/crates/wasmtime/src/func.rs
index f89d16b43..119c87ac8 100644
--- a/crates/wasmtime/src/func.rs
+++ b/crates/wasmtime/src/func.rs
@@ -296,7 +296,9 @@ impl Func {
/// | Rust Argument Type | WebAssembly Type |
/// |--------------------|------------------|
/// | `i... | 1 | 99 | 2 |
5db384cd762a34b1c39ecdea7e9e40b32f3d9991 | Andrew Brown | 2020-05-27T16:00:07 | Rename opcode: PMULLQ to VPMULLQ | diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs
index dec0b8784..8afe4e400 100644
--- a/cranelift/codegen/meta/src/isa/x86/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs
@@ -2108,7 +2108,7 @@ fn define_simd(
{
e.enc_32_64_m... | 2 | 2 | 2 |
ce78ee3b327fb85b974c47eca2ca43e95c8cca1a | Andrew Brown | 2020-05-26T18:39:14 | Enable SIMD spec test for i64x2 arithmetic | diff --git a/build.rs b/build.rs
index bf9890fc8..ee794a7b7 100644
--- a/build.rs
+++ b/build.rs
@@ -186,13 +186,12 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
// to be a big chunk of work to implement them all there!
("simd", _) if target.contains("aarch64") => ret... | 1 | 3 | 4 |
aa44e8b2e3e7a765dbe2726d712e72d91a891b8d | Andrew Brown | 2020-05-26T18:38:29 | Translate Wasm's I64x2Mul to Cranelift's imul.i64x2 | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index db9bef598..d11d1fb44 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -1383,7 +1383,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
let a = pop1_wi... | 1 | 4 | 4 |
b3a6985cd5b6e3eeb14d40c16e97128150d2dea3 | Andrew Brown | 2020-05-21T23:46:40 | Re-organize transform groups for x86 legalization | diff --git a/cranelift/codegen/meta/src/isa/x86/legalize.rs b/cranelift/codegen/meta/src/isa/x86/legalize.rs
index 6e7864794..ebdd36326 100644
--- a/cranelift/codegen/meta/src/isa/x86/legalize.rs
+++ b/cranelift/codegen/meta/src/isa/x86/legalize.rs
@@ -8,7 +8,7 @@ use crate::shared::Definitions as SharedDefinitions;
... | 1 | 58 | 55 |
40f31375a511c0fc0b17a7b0f72e3e86eab92646 | Andrew Brown | 2020-05-21T18:54:19 | Add TargetIsa::as_any for downcasting to specific ISA implementations
This is necessary when we would like to check specific ISA flags, e.g. | diff --git a/cranelift/codegen/src/isa/arm32/mod.rs b/cranelift/codegen/src/isa/arm32/mod.rs
index 0358a7011..c10d51607 100644
--- a/cranelift/codegen/src/isa/arm32/mod.rs
+++ b/cranelift/codegen/src/isa/arm32/mod.rs
@@ -17,6 +17,7 @@ use crate::isa::{EncInfo, RegClass, RegInfo, TargetIsa};
use crate::regalloc;
use a... | 5 | 25 | 0 |
ef4ff71dc5a98a63c2ae4e02292e9e2f1f5ca7c2 | Emiliano Lesende | 2020-06-03T23:00:59 | fix(tagged-union): updated Cargo.lock | diff --git a/crates/test-programs/wasi-tests/Cargo.lock b/crates/test-programs/wasi-tests/Cargo.lock
index aa0194ff8..bc68d3b48 100644
--- a/crates/test-programs/wasi-tests/Cargo.lock
+++ b/crates/test-programs/wasi-tests/Cargo.lock
@@ -12,7 +12,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[... | 1 | 3 | 3 |
0fb374947a91c0462fb4a6d301124b7c58337535 | Pat Hickey | 2020-06-03T22:35:53 | code review comments | diff --git a/Cargo.lock b/Cargo.lock
index 902b7be64..ec84f1d5a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2657,7 +2657,7 @@ dependencies = [
name = "wiggle-test"
version = "0.17.0"
dependencies = [
- "env_logger 0.7.1",
+ "env_logger",
"proptest",
"thiserror",
"tracing",
diff --git a/crates/wiggle/src/lib.r... | 4 | 5 | 6 |
59ee430431005f068c83c4f4b3c446cd796f60d4 | Emiliano Lesende | 2020-06-03T16:08:30 | fix(tagged-union): rebase and squash
fix(tagged-union): changed test programs to use new tagged union
generated code
fix(tagged-union): changed test programs to use new tagged union generated code
fix(tagged-union): removed local dependency and changed to point to 0.9.1 version of wasi
fix(tagged-union): added newl... | diff --git a/crates/test-programs/wasi-tests/Cargo.toml b/crates/test-programs/wasi-tests/Cargo.toml
index 7994203c6..3a7f838bc 100644
--- a/crates/test-programs/wasi-tests/Cargo.toml
+++ b/crates/test-programs/wasi-tests/Cargo.toml
@@ -8,7 +8,7 @@ publish = false
[dependencies]
libc = "0.2.65"
-wasi = "0.9.0"
+was... | 3 | 40 | 16 |
8701645493ac3651232185c423bcd064ce5cc918 | Hiroki Noda | 2020-06-03T21:17:48 | Fix comment for running example fib-debug (#1814) | diff --git a/examples/fib-debug/main.rs b/examples/fib-debug/main.rs
index 8cc2d9cd8..74101fd93 100644
--- a/examples/fib-debug/main.rs
+++ b/examples/fib-debug/main.rs
@@ -5,7 +5,7 @@
// To execute this example you'll need to run two commands:
//
-// cargo build -p example-fib-wasm --target wasm32-unknown-unk... | 1 | 1 | 1 |
1f86bcfb2798b3a163bd7cde755e70b219d8d7b9 | Yury Delendik | 2020-06-03T18:49:20 | freeze gimli | diff --git a/Cargo.lock b/Cargo.lock
index a357573ab..10a6a3bcd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,14 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-[[package]]
-name = "addr2line"
-version = "0.12.1"
-source = "registry+https://github.com/rust-lang/cra... | 1 | 20 | 32 |
6910c1e03d5cdfee8c5b23de3de6b71a55466df6 | Pat Hickey | 2020-06-03T17:52:05 | use tracing 0.1.15 release | diff --git a/Cargo.lock b/Cargo.lock
index d462922d8..902b7be64 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2108,34 +2108,14 @@ dependencies = [
[[package]]
name = "tracing"
-version = "0.1.14"
-source = "git+https://github.com/tokio-rs/tracing#180e494c7a13c0a18c09f3c7b465e8734c51f5e2"
-dependencies = [
- "cfg-if"... | 2 | 11 | 39 |
220733b974cffae988afef559b6e860aa9477c83 | Pat Hickey | 2020-06-03T01:41:53 | wiggle-generate: add an `empty` constructor to ErrorTransform
some library users (me, in lucet-wasi) may not care about ErrorTransform YET | diff --git a/crates/wiggle/generate/src/error_transform.rs b/crates/wiggle/generate/src/error_transform.rs
index 80cb56f92..3598e221d 100644
--- a/crates/wiggle/generate/src/error_transform.rs
+++ b/crates/wiggle/generate/src/error_transform.rs
@@ -11,6 +11,9 @@ pub struct ErrorTransform {
}
impl ErrorTransform {
+... | 1 | 3 | 0 |
dcb774a35e38eb9f042d4952b77a1da79e06b418 | Pat Hickey | 2020-06-03T01:25:40 | temporarily use tracing from git | diff --git a/Cargo.lock b/Cargo.lock
index 9c284f78f..d462922d8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2106,6 +2106,17 @@ dependencies = [
"serde",
]
+[[package]]
+name = "tracing"
+version = "0.1.14"
+source = "git+https://github.com/tokio-rs/tracing#180e494c7a13c0a18c09f3c7b465e8734c51f5e2"
+dependencies =... | 3 | 41 | 13 |
1b95b24686b676acb0f1c2cbb6a5d05216a33052 | Pat Hickey | 2020-06-03T00:46:31 | show env_logger working in wiggle tracing example | diff --git a/Cargo.lock b/Cargo.lock
index 3870242c3..9c284f78f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2113,6 +2113,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7c6b59d116d218cb2d990eb06b77b64043e0268ef7323aae63d8b30ae462923"
dependencies = [
"cfg-if",
+ "log",
"tracing... | 3 | 52 | 44 |
33a94ca7d5dbff28cb59ffc7542aca7a613ef0b4 | Pat Hickey | 2020-06-02T23:00:26 | just one cargo feature for tracing/log | diff --git a/crates/wiggle/Cargo.toml b/crates/wiggle/Cargo.toml
index b376d8d4b..838e2a42f 100644
--- a/crates/wiggle/Cargo.toml
+++ b/crates/wiggle/Cargo.toml
@@ -30,4 +30,10 @@ proptest = "0.9"
# crate unless they want it.
wiggle_metadata = ['witx', "wiggle-macro/wiggle_metadata"]
+# The `tracing` crate can use ... | 1 | 6 | 0 |
820b283cf899ea0c890d423d8994d9676f6af6ed | Pat Hickey | 2020-06-02T22:56:13 | can't put tracing behind a feature without an extra crate :( | diff --git a/crates/wiggle/Cargo.toml b/crates/wiggle/Cargo.toml
index 07566bb33..b376d8d4b 100644
--- a/crates/wiggle/Cargo.toml
+++ b/crates/wiggle/Cargo.toml
@@ -14,7 +14,7 @@ include = ["src/**/*", "LICENSE"]
thiserror = "1"
witx = { path = "../wasi-common/WASI/tools/witx", version = "0.8.5", optional = true }
w... | 3 | 5 | 18 |
02c0c68ed27d5ebc1f6d5211726a6199c0601e1a | Pat Hickey | 2020-06-02T19:24:28 | replace all uses of `log` with `tracing` | diff --git a/Cargo.lock b/Cargo.lock
index 782cffd7b..3870242c3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2623,6 +2623,7 @@ version = "0.17.0"
dependencies = [
"proptest",
"thiserror",
+ "tracing",
"wiggle-macro",
"wiggle-test",
"witx",
diff --git a/crates/wiggle/Cargo.toml b/crates/wiggle/Cargo.toml
inde... | 16 | 285 | 152 |
f89fc0ac5731d647b09329677428560fd7c6fc16 | Pat Hickey | 2020-05-31T02:06:37 | wiggle: can swap in `tracing` for args | diff --git a/Cargo.lock b/Cargo.lock
index a357573ab..782cffd7b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -252,6 +252,17 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
+[[package]]
+name = "chrono... | 6 | 203 | 22 |
994104d61549e7230ccd167f5784c5f793462c43 | Pat Hickey | 2020-05-31T00:55:10 | wiggle: add config options for logging | diff --git a/crates/wiggle/generate/src/config.rs b/crates/wiggle/generate/src/config.rs
index 6eecf28c9..735cb9254 100644
--- a/crates/wiggle/generate/src/config.rs
+++ b/crates/wiggle/generate/src/config.rs
@@ -18,6 +18,7 @@ pub struct Config {
pub witx: WitxConf,
pub ctx: CtxConf,
pub errors: ErrorCon... | 1 | 73 | 13 |
b8e31d7c8e29621f82541017f0607f9d350c764f | Chris Fallin | 2020-06-03T16:35:09 | Fix build warnings (errors on CI) due to mmap flag rename and deprecation. | diff --git a/cranelift/simplejit/src/memory.rs b/cranelift/simplejit/src/memory.rs
index 68c3fd768..2618233c6 100644
--- a/cranelift/simplejit/src/memory.rs
+++ b/cranelift/simplejit/src/memory.rs
@@ -111,7 +111,7 @@ impl Drop for PtrLen {
fn drop(&mut self) {
if !self.ptr.is_null() {
unsafe ... | 3 | 7 | 7 |
90a421193f55bd4ebf6f0f5b73f6831db907ab45 | Joey Gouly | 2020-06-02T15:58:09 | arm64: add support for I8X16 ICmp
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 3841b8530..27ab61907 100644
--- a/build.rs
+++ b/build.rs
@@ -180,6 +180,7 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
},
"Cranelift" => match (testsuite, testname) {
("simd", "simd_store") => return false,
+ ("... | 7 | 274 | 24 |
67c7a3ed19ce737d0fd8369bb700bcc5a865fb56 | Benjamin Bouvier | 2020-06-01T14:22:29 | mach backend: reduce the size of the Inst enum down to 32 bytes; | diff --git a/cranelift/codegen/src/isa/aarch64/abi.rs b/cranelift/codegen/src/isa/aarch64/abi.rs
index 1d7cb9e2f..bb8d2de30 100644
--- a/cranelift/codegen/src/isa/aarch64/abi.rs
+++ b/cranelift/codegen/src/isa/aarch64/abi.rs
@@ -1276,33 +1276,39 @@ impl ABICall for AArch64ABICall {
);
match &self.dest... | 6 | 111 | 101 |
e22760851020adc3305689967654137b86287947 | Benjamin Bouvier | 2020-06-01T13:09:00 | mach backend: use vectors instead of sets to remember set of uses/defs for calls;
This avoids the set uniqueness (hashing) test, reduces memory
churn when re-mapping virtual register onto real registers, and is
generally more memory-efficient. | diff --git a/Cargo.lock b/Cargo.lock
index be772cc0e..c28a825c5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1640,9 +1640,9 @@ dependencies = [
[[package]]
name = "regalloc"
-version = "0.0.24"
+version = "0.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5842bece8a4b1690ffa6d9d... | 6 | 47 | 58 |
cfa0527794c65448dfaf55076805e8dfa00b8a7d | Benjamin Bouvier | 2020-06-01T12:45:51 | mach backend: have mem_finalize return a SmallVec;
This avoids a spurious reallocation of the SmallVec containing the
load_constants result to a Vec, which appeared in dhat profiles. | diff --git a/cranelift/codegen/src/isa/aarch64/inst/emit.rs b/cranelift/codegen/src/isa/aarch64/inst/emit.rs
index c0cbdd1f2..913c9da0a 100644
--- a/cranelift/codegen/src/isa/aarch64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/aarch64/inst/emit.rs
@@ -8,7 +8,6 @@ use crate::isa::aarch64::inst::*;
use regalloc::{Reg... | 1 | 11 | 6 |
1acbad089a2d9c50324a8ca3f8837533dbfeb60b | teapotd | 2020-05-29T13:42:02 | [bugpoint] Resolve aliases after reduction | diff --git a/cranelift/src/bugpoint.rs b/cranelift/src/bugpoint.rs
index 1a076c974..4116ee37b 100644
--- a/cranelift/src/bugpoint.rs
+++ b/cranelift/src/bugpoint.rs
@@ -824,6 +824,15 @@ fn resolve_aliases(func: &mut Function) {
}
}
+/// Resolve aliases only if function still crashes after this.
+fn try_resolve_... | 1 | 11 | 1 |
58b08b9d3a0ba1d50953d6c6cc14ebd99affc821 | Nick Fitzgerald | 2020-06-01T21:48:45 | Move `HostRef<T>` into the C API crate
It isn't used by anything except for the C API and all of our embedder-exposed
APIs are already internally `Rc`-based, so it doesn't make sense to use with
them. | diff --git a/crates/c-api/src/extern.rs b/crates/c-api/src/extern.rs
index 4a71807cd..9f50f20f9 100644
--- a/crates/c-api/src/extern.rs
+++ b/crates/c-api/src/extern.rs
@@ -1,6 +1,7 @@
+use crate::host_ref::HostRef;
use crate::wasm_externkind_t;
use crate::{wasm_externtype_t, wasm_func_t, wasm_global_t, wasm_memory_t... | 14 | 124 | 110 |
8adae5d1adabe7aa0a6ece7fc96d054837ed0b4e | Nick Fitzgerald | 2020-06-01T21:40:45 | Create a simple `Debug` implementation for `Store` | diff --git a/crates/wasmtime/src/ref.rs b/crates/wasmtime/src/ref.rs
index 358cc0451..b8bd3693e 100644
--- a/crates/wasmtime/src/ref.rs
+++ b/crates/wasmtime/src/ref.rs
@@ -74,9 +74,10 @@ impl ExternRef {
impl fmt::Debug for ExternRef {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let ExternRef... | 2 | 9 | 1 |
2bb6a82794ba03627e534eae081eebd1815382b5 | Nick Fitzgerald | 2020-06-01T21:30:51 | Remove the `ExternRef::null` constructor
Shorter and clearer to just use `None`. | diff --git a/crates/wasmtime/src/ref.rs b/crates/wasmtime/src/ref.rs
index d779b8cc7..358cc0451 100644
--- a/crates/wasmtime/src/ref.rs
+++ b/crates/wasmtime/src/ref.rs
@@ -26,11 +26,6 @@ impl ExternRef {
ExternRef { inner, store }
}
- /// Creates a `Null` reference.
- pub fn null() -> Option<Self... | 2 | 1 | 6 |
652f47495aeb7c27496292eb9eff3944b3bff31a | Nick Fitzgerald | 2020-06-01T21:28:08 | wasmtime: Make `Func::store` a public method | diff --git a/crates/wasmtime/src/func.rs b/crates/wasmtime/src/func.rs
index febd02b76..95fd6460d 100644
--- a/crates/wasmtime/src/func.rs
+++ b/crates/wasmtime/src/func.rs
@@ -727,9 +727,7 @@ impl Func {
(get15, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)
}
- // This should be ... | 1 | 1 | 3 |
b78eafcfd33bf487b12b2257282d6353bc9f84ec | Nick Fitzgerald | 2020-06-01T21:17:04 | externref: Do not impl common traits, have free functions instead
If you aren't expecting `VMExternRef`'s pointer-equality semantics, then these
trait implementations can be foot guns. Instead of implementing the trait, make
free functions in the `VMExternRef` namespace. This way, callers have to be a
little more expl... | diff --git a/crates/runtime/src/externref.rs b/crates/runtime/src/externref.rs
index 1a43e3393..8e8aeecfe 100644
--- a/crates/runtime/src/externref.rs
+++ b/crates/runtime/src/externref.rs
@@ -77,7 +77,7 @@ use std::alloc::Layout;
use std::any::Any;
use std::cell::UnsafeCell;
use std::cmp::Ordering;
-use std::hash::... | 3 | 53 | 29 |
98da9ee8a96aeb5bea3af86f8096236411e7937c | Nick Fitzgerald | 2020-06-01T20:54:26 | Use `std::alloc::handle_alloc_failure` instead of home-rolled version | diff --git a/crates/runtime/src/externref.rs b/crates/runtime/src/externref.rs
index 10cc2f12a..1a43e3393 100644
--- a/crates/runtime/src/externref.rs
+++ b/crates/runtime/src/externref.rs
@@ -281,7 +281,7 @@ impl VMExternRef {
let alloc_ptr = std::alloc::alloc(layout);
let alloc_ptr = NonNu... | 1 | 1 | 7 |
25548d7fbe6a2999ef73807dbd9dc023f0bff690 | Nick Fitzgerald | 2020-06-01T20:51:08 | externref: Share more `Layout`-computing code | diff --git a/crates/runtime/src/externref.rs b/crates/runtime/src/externref.rs
index 9f2ea1e48..10cc2f12a 100644
--- a/crates/runtime/src/externref.rs
+++ b/crates/runtime/src/externref.rs
@@ -183,6 +183,30 @@ impl Drop for VMExternRef {
}
impl VMExternData {
+ /// Get the `Layout` for a value with the given siz... | 1 | 29 | 35 |
137e182750261fdaba787eae15fd8ad75161f225 | Nick Fitzgerald | 2020-05-22T22:29:51 | Update `wasmparser` to 0.57.0 | diff --git a/Cargo.lock b/Cargo.lock
index fb823661f..64665c28b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -579,7 +579,7 @@ dependencies = [
"serde",
"target-lexicon",
"thiserror",
- "wasmparser",
+ "wasmparser 0.57.0",
"wat",
]
@@ -1114,7 +1114,7 @@ dependencies = [
"staticvec",
"thiserror",
"typemap... | 10 | 26 | 15 |
acf8ad0df7b6373946a85de97bf0e770dede6591 | Nick Fitzgerald | 2020-05-22T22:00:52 | cranelift_wasm: expose the original Wasm function signature
In the `ModuleEnvironment::declare_signature` callback, also pass the original
Wasm function signature, so that consumers may associate this information with
each compiled function. This is often necessary because while each Wasm
signature gets compiled down ... | diff --git a/cranelift/wasm/src/environ/dummy.rs b/cranelift/wasm/src/environ/dummy.rs
index d5c9d63e4..671414bcb 100644
--- a/cranelift/wasm/src/environ/dummy.rs
+++ b/cranelift/wasm/src/environ/dummy.rs
@@ -6,7 +6,8 @@
//! [Wasmtime]: https://github.com/bytecodealliance/wasmtime
use crate::environ::{
- FuncEnv... | 6 | 36 | 36 |
38a92d89de625c9926feb47cc42cfc15281923c8 | Nick Fitzgerald | 2020-05-21T20:24:24 | Initialize `env_logger` for our `*.wast` tests | diff --git a/Cargo.lock b/Cargo.lock
index be772cc0e..fb823661f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2211,6 +2211,7 @@ name = "wasmtime-cli"
version = "0.16.0"
dependencies = [
"anyhow",
+ "env_logger 0.7.1",
"faerie",
"file-per-thread-logger",
"filecheck",
diff --git a/Cargo.toml b/Cargo.toml
index f... | 3 | 4 | 1 |
1898d529660a623917d74093d1ef4448ef792f12 | Nick Fitzgerald | 2020-05-21T18:30:02 | runtime: Introduce `VMExternRef` and `VMExternData`
`VMExternRef` is a reference-counted box for any kind of data that is
external and opaque to running Wasm. Sometimes it might hold a Wasmtime
thing, other times it might hold something from a Wasmtime embedder and is
opaque even to us. It is morally equivalent to `Rc... | diff --git a/crates/environ/src/vmoffsets.rs b/crates/environ/src/vmoffsets.rs
index 3988198df..940792557 100644
--- a/crates/environ/src/vmoffsets.rs
+++ b/crates/environ/src/vmoffsets.rs
@@ -583,6 +583,14 @@ impl VMOffsets {
}
}
+/// Offsets for `VMExternData`.
+impl VMOffsets {
+ /// Return the offset for... | 3 | 440 | 0 |
01a92aef95fceed5e1913c26bf774c80b8ae9ed0 | Nick Fitzgerald | 2020-05-20T20:41:34 | cranelift_wasm: Use the `TableIndex` type instead of raw `u32`
About half of the `FuncEnvironment::translate_table_*` methods were using the
`TableIndex` newtype, while the other half were using raw `u32`s. This commit
makes everything use `TableIndex`. | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index a8db0433b..4e740b99e 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -1171,23 +1171,26 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
)?);
... | 4 | 20 | 16 |
de7ff38fea54aa6b07a7d73d33b48cb2fdfd9c53 | Pat Hickey | 2020-05-30T21:06:48 | add a second case for multiple error mappings | diff --git a/crates/wiggle/tests/errors.rs b/crates/wiggle/tests/errors.rs
index 42dd10907..522982c84 100644
--- a/crates/wiggle/tests/errors.rs
+++ b/crates/wiggle/tests/errors.rs
@@ -1,97 +1,179 @@
-use wiggle_test::{impl_errno, HostMemory, WasiCtx};
+/// Execute the wiggle guest conversion code to exercise it
+mod c... | 1 | 158 | 76 |
9085fc9f7501d657ea09cebf659c5a92bd97e7c9 | Pat Hickey | 2020-05-30T20:50:02 | error conversion code: update test to actually execute it | diff --git a/crates/wiggle/test-helpers/src/lib.rs b/crates/wiggle/test-helpers/src/lib.rs
index 40d468a43..5d03d2708 100644
--- a/crates/wiggle/test-helpers/src/lib.rs
+++ b/crates/wiggle/test-helpers/src/lib.rs
@@ -306,6 +306,7 @@ use wiggle::GuestError;
// on the test as well.
pub struct WasiCtx<'a> {
pub gue... | 2 | 78 | 13 |
614723ab7eaafc7cdc37e1a84d3c1081a17f31cf | Pat Hickey | 2020-05-30T20:10:47 | Update crates/wiggle/generate/src/names.rs | diff --git a/crates/wiggle/generate/src/names.rs b/crates/wiggle/generate/src/names.rs
index a17897b1a..84cbf5df7 100644
--- a/crates/wiggle/generate/src/names.rs
+++ b/crates/wiggle/generate/src/names.rs
@@ -286,6 +286,10 @@ mod escaping {
/// This will only return `Some(_)` if the given witx identifier *is* `2bi... | 1 | 4 | 0 |
0dd77d36f895df70c6e82758f23f553365c2f25f | Andrew Brown | 2020-05-27T16:32:59 | Rename BinaryImm format to BinaryImm64 | diff --git a/cranelift/codegen/meta/src/isa/riscv/recipes.rs b/cranelift/codegen/meta/src/isa/riscv/recipes.rs
index 1036d1556..47acdbb04 100644
--- a/cranelift/codegen/meta/src/isa/riscv/recipes.rs
+++ b/cranelift/codegen/meta/src/isa/riscv/recipes.rs
@@ -64,7 +64,7 @@ pub(crate) fn define(shared_defs: &SharedDefiniti... | 14 | 54 | 54 |
a27a079d65e1867f3b39475ea4e40392f568e84c | Andrew Brown | 2020-05-27T16:24:46 | Replace ExtractLane format with BinaryImm8
Like https://github.com/bytecodealliance/wasmtime/pull/1762, this change the name of the `ExtractLane` format to the more-general `BinaryImm8` and renames its immediate argument from `lane` to `imm`. | diff --git a/cranelift/codegen/meta/src/isa/x86/instructions.rs b/cranelift/codegen/meta/src/isa/x86/instructions.rs
index b15be2454..f516a928d 100644
--- a/cranelift/codegen/meta/src/isa/x86/instructions.rs
+++ b/cranelift/codegen/meta/src/isa/x86/instructions.rs
@@ -283,7 +283,7 @@ pub(crate) fn define(
Packed S... | 9 | 36 | 39 |
c274efe9c10c68450cb044b42d759625a6b51853 | Andrew Brown | 2020-05-29T21:05:35 | Enable SIMD lane spec test on x86 (#1760)
* Ensure GlobalSet on vectors are cast to Cranelift's I8X16 type
This is a fix related to the decision to use Cranelift's I8X16 type to represent Wasm's V128--it requires casting to maintain type correctness. See https://github.com/bytecodealliance/wasmtime/issues/1147.
... | diff --git a/build.rs b/build.rs
index 28b1ca363..3841b8530 100644
--- a/build.rs
+++ b/build.rs
@@ -189,7 +189,6 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
("simd", "simd_f64x2") => return true, // FIXME expected V128(F64x2([Value(Float64 { bits: 9221120237041090560 }), Value(... | 2 | 5 | 2 |
0b3b9c298ef8709ef97686fd7ebeeb1f4802b6b7 | Leonardo Yvens | 2020-05-29T20:24:12 | impl From<anyhow::Error> for Trap (#1753)
* From<anyhow::Error> for Trap
* Add TrapReason::Error
* wasmtime: Improve Error to Trap conversion
* Remove Trap::message | diff --git a/crates/c-api/src/error.rs b/crates/c-api/src/error.rs
index db0e25eae..cbb84873d 100644
--- a/crates/c-api/src/error.rs
+++ b/crates/c-api/src/error.rs
@@ -10,8 +10,8 @@ pub struct wasmtime_error_t {
wasmtime_c_api_macros::declare_own!(wasmtime_error_t);
impl wasmtime_error_t {
- pub(crate) fn to_tr... | 11 | 74 | 65 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.