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 |
|---|---|---|---|---|---|---|---|
cace32746f24f24f5f124012c9289730dc144ba1 | Benjamin Bouvier | 2020-09-10T15:37:37 | machinst x64: pattern-match addresses that are base+cst index; | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 6d4831947..3a9457adb 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -375,7 +375,10 @@ fn matches_small_constant_shift<C: LowerCtx<I = Inst>>(
})
}
-fn lower_to_... | 1 | 18 | 5 |
091de9449a046eac560e88f136a4dbc3dd1d7268 | Nick Fitzgerald | 2020-09-10T19:59:38 | Convert Souper optimizations into Peepmatic DSL
Conversion from Souper into Peepmatic is implemented with a straightforward,
top-down recursive traversal of the optimization's left- and right-hand side
expression DAGs. Most Souper instructions have a corresponding Peepmatic
instruction. If we run into an instruction w... | diff --git a/Cargo.lock b/Cargo.lock
index 4e264f3c8..96d40bf92 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -971,6 +971,12 @@ dependencies = [
"quick-error",
]
+[[package]]
+name = "id-arena"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25a2bc672d1148e28034f176e... | 3 | 741 | 0 |
a1bdf11602784c2ff3d38ebe92f8c8524898bf5d | Benjamin Bouvier | 2020-09-10T09:17:41 | machinst x64: fix gen_store_base_offset for multi-value returns;
The previous method assumed that this could be used only for I64 values,
but this is actually used for multi-value returns, which can have any
type. | diff --git a/cranelift/codegen/src/isa/x64/abi.rs b/cranelift/codegen/src/isa/x64/abi.rs
index 8742ddaf6..004fbcc45 100644
--- a/cranelift/codegen/src/isa/x64/abi.rs
+++ b/cranelift/codegen/src/isa/x64/abi.rs
@@ -328,17 +328,17 @@ impl ABIMachineSpec for X64ABIMachineSpec {
}
fn gen_load_base_offset(into_re... | 1 | 4 | 4 |
b189321d61b9c63646e7d8359337129ecf1a0312 | Alex Crichton | 2020-09-09T17:09:04 | Actually add instantiate-maybe-invalid fuzz target (#2190)
Forgot to add it to the manifest so it didn't actually get built! | diff --git a/crates/fuzzing/src/lib.rs b/crates/fuzzing/src/lib.rs
index dc97644d9..7e649272d 100644
--- a/crates/fuzzing/src/lib.rs
+++ b/crates/fuzzing/src/lib.rs
@@ -31,9 +31,7 @@ pub(crate) fn init_fuzzing() {
}
/// Create default fuzzing config with given strategy
-pub(crate) fn fuzz_default_config(
- strat... | 3 | 9 | 5 |
b4a2dd37a4ce3c3cf3f44ca145048caebbec7532 | Benjamin Bouvier | 2020-09-08T14:14:27 | machinst x64: rename input_to_reg to put_input_to_reg;
Eventually, we should be able to unify this function's implementation
with the aarch64 one; but the latter does much more, and this would
require abstractions brought up in another pending PR#2142. | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 6b017c44d..6d4831947 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -77,7 +77,7 @@ fn lowerinput_to_reg(ctx: Ctx, input: LowerInput) -> Reg {
}
/// Put the given in... | 1 | 62 | 62 |
cb96d16ac77c4624bfd6c52b1a3ca370de46fc6e | Benjamin Bouvier | 2020-09-08T14:10:23 | machinst x64: inline helper used only once; | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 673580600..6b017c44d 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -53,10 +53,6 @@ fn is_valid_atomic_transaction_ty(ty: Type) -> bool {
}
}
-fn iri_to_u64_imm... | 1 | 6 | 11 |
7a833f442ad4922b47ff2b057c57b9465a5a6e79 | Benjamin Bouvier | 2020-09-08T13:56:57 | machinst: common up some instruction data helpers; | diff --git a/cranelift/codegen/src/ir/instructions.rs b/cranelift/codegen/src/ir/instructions.rs
index 6c7121202..48334b183 100644
--- a/cranelift/codegen/src/ir/instructions.rs
+++ b/cranelift/codegen/src/ir/instructions.rs
@@ -18,6 +18,7 @@ use crate::isa;
use crate::bitset::BitSet;
use crate::entity;
+use ir::co... | 4 | 88 | 145 |
a835c247c03f19499d642110b4d5b145455db532 | Benjamin Bouvier | 2020-09-08T13:44:01 | machinst: make get_output_reg target independent; | diff --git a/cranelift/codegen/src/isa/aarch64/lower.rs b/cranelift/codegen/src/isa/aarch64/lower.rs
index 55b675a71..70ac715e6 100644
--- a/cranelift/codegen/src/isa/aarch64/lower.rs
+++ b/cranelift/codegen/src/isa/aarch64/lower.rs
@@ -106,26 +106,6 @@ pub(crate) enum ResultRegImmShift {
ImmShift(ImmShift),
}
... | 4 | 34 | 44 |
6a3c4fb54e06775ff96a9ff4b8b6bd298f116bcc | Benjamin Bouvier | 2020-09-08T13:33:58 | machinst x64: rename output_to_reg to get_output_reg; | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 6482e7eab..bd500def2 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -256,7 +256,7 @@ fn input_to_reg_mem_imm(ctx: Ctx, spec: InsnInput) -> RegMemImm {
}
}
-fn o... | 1 | 48 | 48 |
9620ce6bdfd57d0acceadbd0b6a31ebc2b2dd263 | Benjamin Bouvier | 2020-09-08T16:33:36 | machinst x64: mask shift count too; | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index c13057090..6482e7eab 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -655,12 +655,8 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
};
let (... | 1 | 2 | 6 |
9c328cc64b5e96df737e6154a984280abb180664 | Benjamin Bouvier | 2020-09-08T13:33:12 | machinst x64: Remove unfinished comment; | diff --git a/cranelift/codegen/src/isa/x64/inst/mod.rs b/cranelift/codegen/src/isa/x64/inst/mod.rs
index 32dadd621..2eb04345d 100644
--- a/cranelift/codegen/src/isa/x64/inst/mod.rs
+++ b/cranelift/codegen/src/isa/x64/inst/mod.rs
@@ -1,5 +1,4 @@
-//! This module defines x86_64-specific machine instruction types.an expla... | 1 | 1 | 2 |
38428e1fbb8352c41808b17b842ba8f7d6f7fd89 | Alex Crichton | 2020-09-03T14:23:33 | Expand modules instantiated in instantiate-wasm-smith
This commit uses the new `MaybeInvalidModule` type in `wasm-smith` to
try to explore more points in the fuzz target space in the
`instantiate-maybe-invalid` fuzz target. The goal here is to use the raw
fuzz input as the body of a function to stress the validator/de... | diff --git a/Cargo.lock b/Cargo.lock
index b2acc2ea9..8460d91a2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2296,9 +2296,9 @@ dependencies = [
[[package]]
name = "wasm-smith"
-version = "0.1.3"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "282c6162f6e30c663bf473b... | 5 | 31 | 6 |
942848023066fb87250bc172668452d95744d6b8 | bjorn3 | 2020-09-08T11:14:14 | Merge SignExtendAlAh and SignExtendRaxRdx | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index 3b3758148..3e8b441b7 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -716,20 +716,22 @@ pub(crate) fn emit(
}
}
- Inst::Si... | 4 | 43 | 42 |
3dcda164dc4e80d0a56d0e14635013c42644f76c | bjorn3 | 2020-09-08T10:54:36 | Fix nits | diff --git a/cranelift/codegen/src/isa/x64/inst/mod.rs b/cranelift/codegen/src/isa/x64/inst/mod.rs
index 7fb1597f4..c069015da 100644
--- a/cranelift/codegen/src/isa/x64/inst/mod.rs
+++ b/cranelift/codegen/src/isa/x64/inst/mod.rs
@@ -56,7 +56,7 @@ pub enum Inst {
dst: Writable<Reg>,
},
- /// Bitwise n... | 2 | 2 | 2 |
9999913a31a82c9ac657ed54338535a546efdbd2 | bjorn3 | 2020-09-01T21:02:29 | Fix sign extension
Co-authored-by: Max Graey <maxgraey@gmail.com> | diff --git a/cranelift/codegen/src/isa/aarch64/lower_inst.rs b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
index 743a9a81e..c43415991 100644
--- a/cranelift/codegen/src/isa/aarch64/lower_inst.rs
+++ b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
@@ -52,8 +52,8 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<I = ... | 1 | 2 | 2 |
067255ef451e9e09ad1ff662952e25e5856887af | bjorn3 | 2020-08-23T08:49:44 | x64: Implement rotl and rotr for small integers | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index fb68a8b63..3b3758148 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -1133,7 +1133,7 @@ pub(crate) fn emit(
}
Inst::Shift_R {
- ... | 4 | 105 | 78 |
4251a950ba7889d1f99425175031cb9cbd6be72e | bjorn3 | 2020-08-22T14:27:50 | x64: Implement ishl, ushr and sshr for small integers | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index acd6ee1d1..39f718eae 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -633,9 +633,18 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
Opcode::Ishl | Opcode::Ushr... | 1 | 11 | 2 |
cc35f1e9bb185431cfbe2fdec8f62b6d63567181 | bjorn3 | 2020-08-22T09:02:15 | x64: Misc small integer fixes | diff --git a/cranelift/codegen/src/isa/aarch64/lower_inst.rs b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
index 54fbd5671..743a9a81e 100644
--- a/cranelift/codegen/src/isa/aarch64/lower_inst.rs
+++ b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
@@ -50,6 +50,15 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<I =... | 2 | 13 | 3 |
ce033f2a0ce291cd47dd716e4eaf14d853510d4a | bjorn3 | 2020-08-22T08:44:12 | x64: Fix udiv and sdiv for 8bit integers | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index 002a97337..fb68a8b63 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -662,11 +662,12 @@ pub(crate) fn emit(
divisor,
loc,
... | 4 | 59 | 19 |
74642b166f6136db9c87a9f8041d2921a9339b45 | bjorn3 | 2020-08-22T08:41:29 | x64: Implement ineg and bnot | diff --git a/cranelift/codegen/src/isa/aarch64/lower_inst.rs b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
index b52f01364..54fbd5671 100644
--- a/cranelift/codegen/src/isa/aarch64/lower_inst.rs
+++ b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
@@ -2782,7 +2782,7 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<... | 5 | 166 | 25 |
f1fdd5764ae40ae0f7690d1b727222867fdb478a | bjorn3 | 2020-08-22T08:09:40 | Limit jump tables to 32bit in Switch
This is the maximum size supported by the x64 backend | diff --git a/cranelift/frontend/src/switch.rs b/cranelift/frontend/src/switch.rs
index 5c8a9bb83..7719de175 100644
--- a/cranelift/frontend/src/switch.rs
+++ b/cranelift/frontend/src/switch.rs
@@ -240,8 +240,8 @@ impl Switch {
// There are currently no 128bit systems supported by rustc, but once we do ensu... | 1 | 52 | 11 |
e92f949663d416efc48174d6671eee84a83128d8 | Anton Kirilov | 2020-09-07T11:22:56 | AArch64: Introduce an enum for ternary integer operations
This commit performs a small cleanup in the AArch64 backend - after
the MAdd and MSub variants have been extracted, the ALUOp enum is
used purely for binary integer operations.
Also, Inst::Mov has been renamed to Inst::Mov64 for consistency.
Copyright (c) 202... | diff --git a/cranelift/codegen/src/isa/aarch64/inst/emit.rs b/cranelift/codegen/src/isa/aarch64/inst/emit.rs
index 60a81eb00..244d474cd 100644
--- a/cranelift/codegen/src/isa/aarch64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/aarch64/inst/emit.rs
@@ -496,16 +496,8 @@ impl MachInstEmit for Inst {
... | 4 | 47 | 66 |
a64af55cda0000a60f679476a3e878750f51829e | Johnnie Birch | 2020-09-02T05:53:44 | Adds x64 packed negation for the new backend | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 51e3f03c8..fcb9955cb 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -412,6 +412,7 @@ pub enum SseOpcode {
Psubd,
Psubq,
Psubw,
+ Pxor,... | 5 | 44 | 1 |
ba9908dd0f84207116ef35fbdc42a4f5484efb93 | bjorn3 | 2020-09-07T13:41:44 | Don't substract 1 from end_addr in line program writing (#2174)
* Don't substract 1 from end_addr in line program writing
Fixes #2173
* add testcase for end_sequence having offset past retq (#1)
* Update tests/all/debug/translate.rs
Co-authored-by: Gabor Greif <ggreif@gmail.com>
Co-authored-by: Gabor Gr... | diff --git a/crates/debug/src/transform/line_program.rs b/crates/debug/src/transform/line_program.rs
index 0de0a39d8..ba40a3e94 100644
--- a/crates/debug/src/transform/line_program.rs
+++ b/crates/debug/src/transform/line_program.rs
@@ -271,7 +271,7 @@ where
}
}
}
- ... | 2 | 40 | 1 |
580c236dee05992985e0c5aeb18a632ff78c8640 | Pat Hickey | 2020-09-03T23:40:45 | wiggle: implement array get/get_range in terms of ptr/add/as_array
hard to get it wrong when you use the safe primitives i already made! | diff --git a/crates/wiggle/src/lib.rs b/crates/wiggle/src/lib.rs
index 3e4e4c97e..fe2b17249 100644
--- a/crates/wiggle/src/lib.rs
+++ b/crates/wiggle/src/lib.rs
@@ -543,24 +543,36 @@ impl<'a, T> GuestPtr<'a, [T]> {
GuestPtr::new(self.mem, self.offset_base())
}
- pub fn get(&self, index: u32) -> Optio... | 1 | 19 | 7 |
1d410d655995e1116958c6752fecb02c53145f1e | Pat Hickey | 2020-09-03T00:16:39 | move more constructor stuff into stringarray | diff --git a/crates/wasi-common/src/ctx.rs b/crates/wasi-common/src/ctx.rs
index db7e61709..1b77b093c 100644
--- a/crates/wasi-common/src/ctx.rs
+++ b/crates/wasi-common/src/ctx.rs
@@ -1,22 +1,21 @@
use crate::entry::{Entry, EntryHandle};
use crate::fdpool::FdPool;
use crate::handle::Handle;
-use crate::string_array... | 2 | 82 | 83 |
39f1c9716cf50264d8b72afd6c1de90bd2b9c60c | Pat Hickey | 2020-09-02T21:11:32 | restructure StringArrayWriter trait into StringArray struct | diff --git a/crates/wasi-common/src/ctx.rs b/crates/wasi-common/src/ctx.rs
index 346af12c2..db7e61709 100644
--- a/crates/wasi-common/src/ctx.rs
+++ b/crates/wasi-common/src/ctx.rs
@@ -1,7 +1,7 @@
use crate::entry::{Entry, EntryHandle};
use crate::fdpool::FdPool;
use crate::handle::Handle;
-use crate::string_array_w... | 5 | 111 | 91 |
b63e974014d2f04f2dd5dbaab6f54f5e2136182d | Pat Hickey | 2020-09-02T20:39:32 | code review fixes | diff --git a/crates/wiggle/src/lib.rs b/crates/wiggle/src/lib.rs
index 9c36c274f..3e4e4c97e 100644
--- a/crates/wiggle/src/lib.rs
+++ b/crates/wiggle/src/lib.rs
@@ -449,7 +449,7 @@ impl<'a, T> GuestPtr<'a, [T]> {
self.pointer.0
}
- /// For slices, returns the length of the slice, in units.
+ /// F... | 1 | 4 | 1 |
82b367295634be310ea07813e83b912154167331 | Pat Hickey | 2020-09-02T20:18:09 | delete extra dep | diff --git a/Cargo.lock b/Cargo.lock
index c79c06601..9be4f475c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2419,7 +2419,6 @@ dependencies = [
"target-lexicon",
"tempfile",
"test-programs",
- "tracing",
"tracing-subscriber",
"wasi-common",
"wasmtime",
diff --git a/Cargo.toml b/Cargo.toml
index 666f918b1..6... | 2 | 0 | 2 |
ddd50f7443ee6f362008e0c302e2d0a489dd3332 | Pat Hickey | 2020-09-02T20:13:13 | fix error report | diff --git a/crates/wasi-common/src/string_array_writer.rs b/crates/wasi-common/src/string_array_writer.rs
index 8f4425385..47a9761bf 100644
--- a/crates/wasi-common/src/string_array_writer.rs
+++ b/crates/wasi-common/src/string_array_writer.rs
@@ -39,7 +39,7 @@ impl StringArrayWriter for Vec<CString> {
le... | 1 | 1 | 1 |
fe5d6d59e6989dfc4e76586a1f8b142a1305a901 | Pat Hickey | 2020-09-01T21:34:12 | wasi example: theres lots of useful tracing messages for debugging | diff --git a/Cargo.lock b/Cargo.lock
index b2acc2ea9..c79c06601 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2419,6 +2419,8 @@ dependencies = [
"target-lexicon",
"tempfile",
"test-programs",
+ "tracing",
+ "tracing-subscriber",
"wasi-common",
"wasmtime",
"wasmtime-cache",
diff --git a/Cargo.toml b/Cargo.tom... | 3 | 9 | 0 |
51d88f7899ff8d1c5dc3032a7aac114d265cc905 | Pat Hickey | 2020-08-24T23:38:40 | wasi-common: move implementation of args, env methods into StringArrayWriter | diff --git a/crates/wasi-common/src/ctx.rs b/crates/wasi-common/src/ctx.rs
index 08584dbaf..346af12c2 100644
--- a/crates/wasi-common/src/ctx.rs
+++ b/crates/wasi-common/src/ctx.rs
@@ -1,6 +1,7 @@
use crate::entry::{Entry, EntryHandle};
use crate::fdpool::FdPool;
use crate::handle::Handle;
+use crate::string_array_w... | 4 | 70 | 40 |
6213a05c8557b8b1263d9c2a9ef0e6a3579f8ee9 | Pat Hickey | 2020-08-24T23:38:09 | wiggle: add array indexing methods to GuestPtr<[T]> | diff --git a/crates/wiggle/src/lib.rs b/crates/wiggle/src/lib.rs
index b7c646a09..d4eabacb9 100644
--- a/crates/wiggle/src/lib.rs
+++ b/crates/wiggle/src/lib.rs
@@ -542,6 +542,29 @@ impl<'a, T> GuestPtr<'a, [T]> {
pub fn as_ptr(&self) -> GuestPtr<'a, T> {
GuestPtr::new(self.mem, self.offset_base())
}... | 1 | 23 | 0 |
87222d6db0dbaf788b14b298820ebd776e0cdfa5 | Pat Hickey | 2020-08-24T19:26:02 | wasi-common: move GuestPtr deref out of path::get | diff --git a/crates/wasi-common/src/path.rs b/crates/wasi-common/src/path.rs
index a5b730418..2f6da351b 100644
--- a/crates/wasi-common/src/path.rs
+++ b/crates/wasi-common/src/path.rs
@@ -4,7 +4,6 @@ use crate::wasi::types;
use crate::{Error, Result};
use std::path::{Component, Path};
use std::str;
-use wiggle::Gue... | 2 | 103 | 73 |
a8f704129669d6a690452b13ccdb7c96e016fd39 | MaxGraey | 2020-08-31T16:02:20 | new implementations for nearest lib calls
use approach with copysign for handling negative zero
format
refactor for better branch prediction
move copysign back to internal branch
format
fix
use abs instead branches
better comments
switch arms for better branch prediction | diff --git a/crates/runtime/src/libcalls.rs b/crates/runtime/src/libcalls.rs
index 4dcb0963d..a7dfe0a72 100644
--- a/crates/runtime/src/libcalls.rs
+++ b/crates/runtime/src/libcalls.rs
@@ -67,6 +67,9 @@ use wasmtime_environ::wasm::{
TableIndex,
};
+const TOINT_32: f32 = 1.0 / f32::EPSILON;
+const TOINT_64: f64 ... | 1 | 15 | 34 |
a7f7c23bf9c37c642da962d575b7c99007918872 | Benjamin Bouvier | 2020-08-31T09:29:41 | machinst aarch64: in baldrdash, allow returning only one value across register classes;
Baldrdash's API requires that there is at most one result in a register,
across all the possible register classes: in particular, it's not
possible to return an i64 value in a register while returning an v128
value in another regis... | diff --git a/cranelift/codegen/src/isa/aarch64/abi.rs b/cranelift/codegen/src/isa/aarch64/abi.rs
index 5f918dfe5..802269d5c 100644
--- a/cranelift/codegen/src/isa/aarch64/abi.rs
+++ b/cranelift/codegen/src/isa/aarch64/abi.rs
@@ -124,10 +124,18 @@ impl ABIMachineImpl for AArch64MachineImpl {
let mut next_stack:... | 1 | 15 | 6 |
e535005c740757ce5f036f121cf05e63d344d94f | penguin-wwy | 2020-08-29T09:41:11 | Remove unused argument for clif-util compile commandline | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index f1667bf65..5dc834730 100644
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -170,14 +170,11 @@ fn add_wasm_or_compile<'a>(cmd: &str) -> clap::App<'a, 'a> {
.arg(add_verbose_flag())
.arg(add_print_flag())
... | 1 | 3 | 3 |
6849dc40bd7c7323177894f2715ebeb7616d5a88 | CohenArthur | 2020-08-31T08:40:24 | Fix typo in generated documentation for `entity!` (#2176)
* entity: Fix typo in generated documentation
The same function documentation was used for `from_u32()` and `as_u32()`
while their behaviour is different | diff --git a/cranelift/entity/src/lib.rs b/cranelift/entity/src/lib.rs
index 4adf4a42c..241c03c7e 100644
--- a/cranelift/entity/src/lib.rs
+++ b/cranelift/entity/src/lib.rs
@@ -92,7 +92,7 @@ macro_rules! entity_impl {
}
impl $entity {
- /// Return the underlying index value as a `u32`.
+ ... | 1 | 1 | 1 |
e12499c9aec7c9ba50e549f31fada878d1f3e770 | Alex Crichton | 2020-08-29T17:51:51 | Bump wasm-smith dependency
Brings in a fix for limiting the length of import strings generated. | diff --git a/Cargo.lock b/Cargo.lock
index c7b29fa16..3a8362362 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2287,9 +2287,9 @@ dependencies = [
[[package]]
name = "wasm-smith"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e09385df967070eaaf1c95... | 2 | 3 | 3 |
335886134cfed0812f09237484e980003dbfe615 | Pat Hickey | 2020-08-29T00:11:11 | fix test | diff --git a/crates/wiggle/tests/wasi.rs b/crates/wiggle/tests/wasi.rs
index 45e2b7d1b..07b56db62 100644
--- a/crates/wiggle/tests/wasi.rs
+++ b/crates/wiggle/tests/wasi.rs
@@ -16,8 +16,10 @@ wiggle::from_witx!({
#[test]
fn document_equivalent() {
let macro_doc = metadata::document();
- let disk_doc =
- ... | 1 | 4 | 2 |
edefbf7c73f7bb3c88d3e055a42a04f68e1a64a0 | Pat Hickey | 2020-08-28T22:58:16 | fix tests | diff --git a/crates/wiggle/tests/arrays.rs b/crates/wiggle/tests/arrays.rs
index 9142e9f01..9bfad46e7 100644
--- a/crates/wiggle/tests/arrays.rs
+++ b/crates/wiggle/tests/arrays.rs
@@ -3,7 +3,7 @@ use wiggle::{GuestMemory, GuestPtr};
use wiggle_test::{impl_errno, HostMemory, MemArea, WasiCtx};
wiggle::from_witx!({
... | 11 | 13 | 12 |
22b427baa01e92814cf3339c4c096b9a2f7df364 | Pat Hickey | 2020-08-28T22:42:51 | use WASI_ROOT env var to specify witx paths to wiggle macros | diff --git a/crates/wasi-common/src/wasi.rs b/crates/wasi-common/src/wasi.rs
index f35055ffa..f8b4aab78 100644
--- a/crates/wasi-common/src/wasi.rs
+++ b/crates/wasi-common/src/wasi.rs
@@ -4,7 +4,7 @@
use crate::WasiCtx;
wiggle::from_witx!({
- witx: ["WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
+ ... | 2 | 4 | 3 |
91dac9c7e833b30a4cb2a5b680ffb772179f33bf | Pat Hickey | 2020-08-28T22:41:19 | wiggle: witx paths use shell expansion
instead of always being relative to CARGO_MANIFEST_DIR, each use site is
responsible for either putting that variable or another one (set by a
build.rs) at the start of witx paths. | diff --git a/Cargo.lock b/Cargo.lock
index c7b29fa16..df8a45535 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1905,6 +1905,15 @@ dependencies = [
"lazy_static",
]
+[[package]]
+name = "shellexpand"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a2b22262a9aaf9464d3... | 5 | 25 | 52 |
f1a5e55b981f141780912dfb40881cb3891d0466 | Max de Danschutter | 2020-08-28T15:39:48 | Increase into-func to accept 16 arguments (#2170) | diff --git a/crates/wasmtime/src/func.rs b/crates/wasmtime/src/func.rs
index fbed5174b..c45518bc0 100644
--- a/crates/wasmtime/src/func.rs
+++ b/crates/wasmtime/src/func.rs
@@ -1699,6 +1699,7 @@ impl_into_func! {
(A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13)
(A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14)
... | 1 | 1 | 0 |
5c6ed0c73611c6f686baf9a5a05780497452eadc | Pat Hickey | 2020-08-28T01:19:53 | wip - didnt have time to finish this before quittin time | diff --git a/crates/wiggle/generate/src/config.rs b/crates/wiggle/generate/src/config.rs
index 22ff88aa2..20d75812b 100644
--- a/crates/wiggle/generate/src/config.rs
+++ b/crates/wiggle/generate/src/config.rs
@@ -147,6 +147,7 @@ impl WitxConf {
/// If using the [`Paths`][paths] syntax, make all paths relative to a... | 1 | 24 | 0 |
4dabe3fad6ff780f89e6c12cb632e406695a219c | Pat Hickey | 2020-08-27T23:12:20 | wasmtime-wasi: fix invocation of wasmtime_integration!
should use path relative to this crates's root | diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs
index bd12def83..d6f8e4fad 100644
--- a/crates/wasi/src/lib.rs
+++ b/crates/wasi/src/lib.rs
@@ -10,7 +10,7 @@ wasmtime_wiggle::wasmtime_integration!({
// The wiggle code to integrate with lives here:
target: wasi_common::wasi,
// This must be t... | 1 | 1 | 1 |
82d2a48896e1b860e4af2342a484eb49361c672d | Pat Hickey | 2020-08-27T23:03:05 | wiggle-wasmtime: witx paths should be relative to CARGO_MANIFEST_DIR, not WASI_ROOT
the WASI_ROOT was leftover from when this code was part of `wig`. | diff --git a/crates/wiggle/wasmtime/macro/src/lib.rs b/crates/wiggle/wasmtime/macro/src/lib.rs
index ff1df0898..160babeb1 100644
--- a/crates/wiggle/wasmtime/macro/src/lib.rs
+++ b/crates/wiggle/wasmtime/macro/src/lib.rs
@@ -48,9 +48,9 @@ use config::{MissingMemoryConf, ModuleConf, TargetConf};
#[proc_macro]
pub fn w... | 1 | 3 | 3 |
8ac4bd1d0d8228b97a88b1841cfc0247e9ef4306 | Julian Seward | 2020-08-27T08:03:08 | CL/newBE/x64: Lowering of scalar shifts: fix shift-by-imm generation
The logic for generation of shifts-by-immediate was not quite right. The result was that even
shifts by an amount known at compile time were being done by moving the shift immediate into %cl
and then doing a variable shift by %cl. The effect is wor... | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index c57cf4005..f3e3903c8 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -621,7 +621,7 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
let lhs = input_to_reg... | 1 | 1 | 1 |
1bbcbcb64726ec37c724bde639a2b31ab7f832ae | Nick Fitzgerald | 2020-08-26T22:35:25 | Update `wasm-smith` to 0.1.2 (#2167) | diff --git a/Cargo.lock b/Cargo.lock
index 92c0770f6..c7b29fa16 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2287,9 +2287,9 @@ dependencies = [
[[package]]
name = "wasm-smith"
-version = "0.1.1"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ec52a2524c15abcc827e59... | 2 | 3 | 3 |
2632848491bc2344f2cac59504d7b473729aa280 | Gabor Greif | 2020-08-26T22:19:03 | Relocation of DW_OP_{bra, skip} instructions (#2143)
The fundamental problem is that the target distance of jump-like operations may change in the DWARF expression translation process. Intervening DW_OP_deref will expand to about 10 bytes, for example.
So the jumps must be relocated. We approach this task by insert... | diff --git a/crates/debug/src/transform/expression.rs b/crates/debug/src/transform/expression.rs
index d21a00d4f..991de99ce 100644
--- a/crates/debug/src/transform/expression.rs
+++ b/crates/debug/src/transform/expression.rs
@@ -2,7 +2,10 @@ use super::address_transform::AddressTransform;
use anyhow::{Context, Error, ... | 1 | 388 | 29 |
0c4e15a52eb071a454eb34f2d1eacd894b252ec9 | bjorn3 | 2020-08-26T10:36:30 | [reader] Replace == None with .is_none() in Parser::token
This replaces a full function call with matching on both lhs and rhs
with a single cmpb instruction. | diff --git a/cranelift/reader/src/parser.rs b/cranelift/reader/src/parser.rs
index 44a2ea30e..230d1b83d 100644
--- a/cranelift/reader/src/parser.rs
+++ b/cranelift/reader/src/parser.rs
@@ -445,7 +445,7 @@ impl<'a> Parser<'a> {
// running. I don't think this is true - self.lookahead is mutated in the loop body ... | 1 | 1 | 1 |
0d3f9ad8ef940e4c9ae382daa2dc2ee99b230ef2 | bjorn3 | 2020-08-26T09:30:19 | [reader] Avoid handling of unicode when not necessary
Clif files are not meant to be written by end-users anyway. The main
effects are that non-ascii identifiers fail to lex instead of parse and
whitespace must now be in the ascii range. Comments still have full
unicode support.
This also inlines all char::is_* metho... | diff --git a/cranelift/reader/src/lexer.rs b/cranelift/reader/src/lexer.rs
index 7a5edc33b..647742cac 100644
--- a/cranelift/reader/src/lexer.rs
+++ b/cranelift/reader/src/lexer.rs
@@ -179,10 +179,8 @@ impl<'a> Lexer<'a> {
// Starting from `lookahead`, are we looking at a number?
fn looking_at_numeric(&self) ... | 1 | 12 | 13 |
7e750845cd6eb1290e22779a0e18573f5f518a2a | Pat Hickey | 2020-08-26T00:24:19 | Remove unnecessary check - fixed in std since Rust 1.38
issue now closed: https://github.com/rust-lang/rust/issues/63326
fix landed in a rollup: https://github.com/rust-lang/rust/pull/63380 merged aug 8, 2019
rust 1.38 beta cut on aug 15, 2019: https://blog.rust-lang.org/2019/08/15/Rust-1.37.0.html
minimum supported r... | diff --git a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
index 342fbad1d..ee5cd0cd8 100644
--- a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
+++ b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
@@ -172,10 +172,6 @@ im... | 1 | 0 | 4 |
5e0ca3c13bff47cc991c40bdcf3bd7709143bd37 | Pat Hickey | 2020-08-25T18:32:24 | tracing: some windows fixes | diff --git a/crates/wasi-common/src/sys/windows/path.rs b/crates/wasi-common/src/sys/windows/path.rs
index 2651d54c1..89252d3d0 100644
--- a/crates/wasi-common/src/sys/windows/path.rs
+++ b/crates/wasi-common/src/sys/windows/path.rs
@@ -46,7 +46,7 @@ fn concatenate<P: AsRef<Path>>(file: &OsDir, path: P) -> Result<PathB... | 1 | 2 | 2 |
930912f783b2d00c09eb3cd2c4a48d21f9ed42f2 | Pat Hickey | 2020-08-25T18:29:34 | tracing fixes in unix poll; add some missing debug impls | diff --git a/crates/wasi-common/src/entry.rs b/crates/wasi-common/src/entry.rs
index 8734c63d3..73923e690 100644
--- a/crates/wasi-common/src/entry.rs
+++ b/crates/wasi-common/src/entry.rs
@@ -18,6 +18,12 @@ impl EntryHandle {
}
}
+impl std::fmt::Debug for EntryHandle {
+ fn fmt(&self, f: &mut std::fmt::Form... | 3 | 16 | 4 |
963fe37eeaf1e5c2941dd7e55336ed979567ddb8 | Pat Hickey | 2020-08-25T18:17:08 | Update crates/wasi-common/src/sys/windows/path.rs
Co-authored-by: iximeow <git@iximeow.net> | diff --git a/crates/wasi-common/src/sys/windows/path.rs b/crates/wasi-common/src/sys/windows/path.rs
index 1e92f71af..2651d54c1 100644
--- a/crates/wasi-common/src/sys/windows/path.rs
+++ b/crates/wasi-common/src/sys/windows/path.rs
@@ -170,7 +170,10 @@ pub(crate) fn link(
let new_path = concatenate(new_dirfd, new... | 1 | 4 | 1 |
fceea4e7d2a0150c4a7adee3f10b8232e8c2c872 | Pat Hickey | 2020-08-25T18:16:48 | Update crates/wasi-common/src/sys/unix/mod.rs
Co-authored-by: iximeow <git@iximeow.net> | diff --git a/crates/wasi-common/src/sys/unix/mod.rs b/crates/wasi-common/src/sys/unix/mod.rs
index 79ab5c901..9cf2129a2 100644
--- a/crates/wasi-common/src/sys/unix/mod.rs
+++ b/crates/wasi-common/src/sys/unix/mod.rs
@@ -50,7 +50,10 @@ impl<T: AsRawFd> AsFile for T {
pub(super) fn get_file_type(file: &File) -> io::Res... | 1 | 4 | 1 |
d6884586194f1562b3b19f721c7800084b2635de | Nick Fitzgerald | 2020-08-25T16:02:08 | Add a fuzz target for instantiating `wasm-smith` modules | diff --git a/Cargo.lock b/Cargo.lock
index db70f7da2..d09e8fed9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -56,9 +56,9 @@ checksum = "85bb70cc08ec97ca5450e6eba421deeea5f172c0fc61f78b5357b2a8e8be195f"
[[package]]
name = "arbitrary"
-version = "0.4.5"
+version = "0.4.6"
source = "registry+https://github.com/rust-la... | 3 | 35 | 4 |
7c856542854bc8c5da9d5fb1a0b41f3c660d8484 | Benjamin Bouvier | 2020-08-21T10:40:47 | Address review comments. | diff --git a/cranelift/codegen/src/inst_predicates.rs b/cranelift/codegen/src/inst_predicates.rs
index 6830fcda1..1aac4be2f 100644
--- a/cranelift/codegen/src/inst_predicates.rs
+++ b/cranelift/codegen/src/inst_predicates.rs
@@ -43,7 +43,7 @@ pub fn has_side_effect(func: &Function, inst: Inst) -> bool {
/// Does the... | 4 | 297 | 260 |
ee76e01efc88db29e1eefdeed9c29cd441c92493 | Benjamin Bouvier | 2020-08-19T12:52:42 | machinst: fix the pinned reg hack;
The pinned register hack didn't work because the GetPinnedReg is marked
as having side-effects, so that GVN wouldn't try to common it out.
This commit tweaks the function used during lowering to vcode, so that
the GetPinnedReg opcode is specially handled. It's a bit lame, but it
mak... | diff --git a/cranelift/codegen/src/inst_predicates.rs b/cranelift/codegen/src/inst_predicates.rs
index 9afe2ff6e..6830fcda1 100644
--- a/cranelift/codegen/src/inst_predicates.rs
+++ b/cranelift/codegen/src/inst_predicates.rs
@@ -41,9 +41,11 @@ pub fn has_side_effect(func: &Function, inst: Inst) -> bool {
trivially... | 2 | 12 | 8 |
efff43e7697ad6716e532e47dadd264c89c683f7 | Benjamin Bouvier | 2020-08-18T17:31:20 | machinst x64: fold address modes on loads/stores; | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 7aec77e5d..047eac99d 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -124,10 +124,14 @@ struct InsnOutput {
output: usize,
}
-fn matches_input<C: LowerCtx<I = In... | 1 | 94 | 15 |
b830ee79dea73fa66b08a315373b045ba7fbf632 | Benjamin Bouvier | 2020-08-18T15:13:31 | machinst x64: commute operands of integer operations if one input is an immediate; | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 143391244..7aec77e5d 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -135,12 +135,14 @@ fn matches_input<C: LowerCtx<I = Inst>>(c: &mut C, input: InsnInput, op: Opcode)
... | 1 | 47 | 11 |
cca10b87cb09ca98c0441bb4ee867a6ae2a96ea6 | Benjamin Bouvier | 2020-08-18T14:30:47 | machinst x64: optimize select/brz/brnz when the input is a comparison; | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 8690c57a4..51e3f03c8 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -849,7 +849,7 @@ impl CC {
FloatCC::Ordered => CC::NP,
Flo... | 4 | 258 | 35 |
ec87aee147cb0c8a8ae7b5db192daa2163207c8a | Gabor Greif | 2020-08-21T18:12:30 | Revert #2137, the extra (seemingly leftover) DW_OP_deref is in fact essential (#2156)
* Revert "don't leave Deref bytecode for Code chunk (#2137)"
This reverts commit 30b9e691367724d37094703ef54a63f87c892056.
* add explanation that DW_OP_deref is needed | diff --git a/crates/debug/src/transform/expression.rs b/crates/debug/src/transform/expression.rs
index 601be39bf..d21a00d4f 100644
--- a/crates/debug/src/transform/expression.rs
+++ b/crates/debug/src/transform/expression.rs
@@ -458,7 +458,8 @@ where
Operation::Deref { .. } => {
fl... | 1 | 3 | 2 |
b895ac0e407632928ad5907f7297cb693145f9ed | Anton Kirilov | 2020-08-19T19:46:08 | AArch64: Implement SIMD conversions
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index a0e374082..e23e8c218 100644
--- a/build.rs
+++ b/build.rs
@@ -196,7 +196,6 @@ fn experimental_x64_should_panic(testsuite: &str, testname: &str, strategy: &str
/// Ignore tests that aren't supported yet.
fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
- ... | 6 | 424 | 202 |
6513e90914a6d01386e7ef20acaa0100d8cd0592 | Gabor Greif | 2020-08-21T13:16:09 | use the obvious DW_OP_const4u for 0xffff_ffff (#2154)
No point in resorting to LEB128 encoding for such constants,
using the native `u32` is faster and more compact.
Adds `write_u32` method to facilitate this. | diff --git a/crates/debug/src/transform/expression.rs b/crates/debug/src/transform/expression.rs
index c5386d11e..601be39bf 100644
--- a/crates/debug/src/transform/expression.rs
+++ b/crates/debug/src/transform/expression.rs
@@ -64,6 +64,10 @@ impl ExpressionWriter {
write::Writer::write_u8(&mut self.0, b)
... | 1 | 6 | 2 |
0b67b22eda66560d137de5374f15182d5983d35d | Johnnie Birch | 2020-08-20T19:41:06 | Update renamed document lint for broken links
Renames intra_doc_link_resolution_failure to broken_intra_doc_links | diff --git a/crates/wasmtime/src/lib.rs b/crates/wasmtime/src/lib.rs
index 987b8db6a..e914cb724 100644
--- a/crates/wasmtime/src/lib.rs
+++ b/crates/wasmtime/src/lib.rs
@@ -229,7 +229,8 @@
//! # }
//! ```
-#![deny(missing_docs, intra_doc_link_resolution_failure)]
+#![allow(unknown_lints)]
+#![deny(missing_docs, bro... | 1 | 2 | 1 |
2154b76fa82044bacdd7320aa0b7f4967c5f8a25 | Andrew Brown | 2020-08-04T21:33:04 | machinst x64: enable simd_const.wast spec test | diff --git a/build.rs b/build.rs
index cd9ebdc61..a0e374082 100644
--- a/build.rs
+++ b/build.rs
@@ -181,6 +181,7 @@ fn experimental_x64_should_panic(testsuite: &str, testname: &str, strategy: &str
match (testsuite, testname) {
("simd", "simd_address") => return false,
+ ("simd", "simd_const") =>... | 1 | 1 | 0 |
2767b2efc6c067f9db4d153bef5244043a228716 | Andrew Brown | 2020-08-04T21:29:37 | machinst x64: add `Inst::[move|load|store]` for choosing the correct x86 instruction
This change primarily adds the ability to lower packed `[move|load|store]` instructions (the vector types were previously unimplemented), but with the addition of the utility `Inst::[move|load|store]` functions it became possible to r... | diff --git a/cranelift/codegen/src/isa/x64/abi.rs b/cranelift/codegen/src/isa/x64/abi.rs
index 4bc22357f..b74cb39cf 100644
--- a/cranelift/codegen/src/isa/x64/abi.rs
+++ b/cranelift/codegen/src/isa/x64/abi.rs
@@ -325,10 +325,13 @@ impl ABIBody for X64ABIBody {
self.fp_to_arg_offset() + off <= u32::... | 4 | 137 | 106 |
cf598dc35befed88e72d3a0d0d180a90820f304a | Andrew Brown | 2020-08-04T21:19:45 | machinst x64: add packed moves for different vector types | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 600381496..6b13b5283 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -380,6 +380,8 @@ pub enum SseOpcode {
Movaps,
Movapd,
Movd,
+ Movd... | 2 | 15 | 3 |
a518c101416cd62202d5a5baab4a6d3f160f0e97 | Joey Gouly | 2020-08-20T12:26:03 | arm64: Implement SIMD i64x2 multiply
Copyright (c) 2020, Arm Limited. | diff --git a/build.rs b/build.rs
index 04dd04285..cd9ebdc61 100644
--- a/build.rs
+++ b/build.rs
@@ -211,6 +211,7 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
("simd", "simd_bitwise") => return false,
("simd", "simd_bit_shift") => return false,
("simd", ... | 6 | 380 | 30 |
530ea50c8213b6c484c0963d29e6b5722d9593dd | Pat Hickey | 2020-08-19T22:10:04 | wasi-common: dep on getrandom requires std | diff --git a/crates/wasi-common/Cargo.toml b/crates/wasi-common/Cargo.toml
index f7250c25d..d42ee4d1c 100644
--- a/crates/wasi-common/Cargo.toml
+++ b/crates/wasi-common/Cargo.toml
@@ -20,7 +20,7 @@ links = "wasi-common-19"
anyhow = "1.0"
thiserror = "1.0"
libc = "0.2"
-getrandom = "0.1"
+getrandom = { version = "0.... | 1 | 1 | 1 |
e8c01ddef1a02c583e7e9fa031f424fcedd0aa4f | Pat Hickey | 2020-08-19T21:29:14 | put getrandom::Error into Error | diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs
index 074a61de4..282a46734 100644
--- a/crates/wasi-common/src/error.rs
+++ b/crates/wasi-common/src/error.rs
@@ -14,6 +14,8 @@ pub enum Error {
TryFromInt(#[from] std::num::TryFromIntError),
#[error("Utf8Error: {0}")]
Utf8(#[... | 3 | 6 | 5 |
b5e24c8c67e32c8d1ba976ee9faa9ca96eb2b942 | bjorn3 | 2020-08-19T20:14:26 | Update object to 0.21.1 (#2144) | diff --git a/Cargo.lock b/Cargo.lock
index 517dd3b50..77e99dedd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -487,7 +487,7 @@ dependencies = [
"anyhow",
"cranelift-codegen",
"cranelift-module",
- "object 0.20.0",
+ "object 0.21.1",
"target-lexicon",
]
@@ -1216,6 +1216,12 @@ name = "object"
version = "0.20.0"... | 6 | 16 | 10 |
c1aec81b84ab0d0498997e0ee90e2838a5eb47ea | Pat Hickey | 2020-08-19T19:01:16 | add enough errno variants to cover all windows codes too | diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs
index 4a1ad031f..074a61de4 100644
--- a/crates/wasi-common/src/error.rs
+++ b/crates/wasi-common/src/error.rs
@@ -31,6 +31,9 @@ pub enum Error {
/// Errno::Badf: Bad file descriptor
#[error("Badf: Bad file descriptor")]
Badf,
... | 3 | 21 | 2 |
4535741d01e380c6051a50d96809a62a0fd73979 | Pat Hickey | 2020-08-19T18:21:44 | refactor when we translate io::Error to an Error
* a certain subset of io::Errors are expected - these we have
a (platform-specific, because windows) method to translate into
one of the wasi errno variants in the Error enum.
* some io::Errors are unexpected - wasi-common doesnt expect them from
the underlying OS... | diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs
index af6d83ea3..4a1ad031f 100644
--- a/crates/wasi-common/src/error.rs
+++ b/crates/wasi-common/src/error.rs
@@ -1,3 +1,4 @@
+use cfg_if::cfg_if;
use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>;
@@ -14,8 +15,11 ... | 2 | 85 | 145 |
4cafb9018653b83df7dce00dfdf377e34bcb5e41 | Gabor Greif | 2020-08-19T17:30:01 | use opcode directly, now that we support this (#2145)
fixing also two typos with `DW_OP_fbreg` | diff --git a/crates/debug/src/transform/expression.rs b/crates/debug/src/transform/expression.rs
index 841970676..c5386d11e 100644
--- a/crates/debug/src/transform/expression.rs
+++ b/crates/debug/src/transform/expression.rs
@@ -418,7 +418,7 @@ where
let op = Operation::parse(&mut pc, encoding)?;
... | 1 | 2 | 3 |
a31336996c184eeccdd7d2e5e120751fc56bf5a7 | Johnnie Birch | 2020-08-17T20:44:10 | Add support for some packed multiplication for new x64 backend
Adds support for i32x4, and i16x8 and lowering for pmuludq in
preperation for i64x2. | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 9885102b6..600381496 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -395,6 +395,9 @@ pub enum SseOpcode {
Paddd,
Paddq,
Paddw,
+ Pmull... | 4 | 80 | 44 |
4a84f3f0732d41e8685d1005fc63b31acad44e1f | bjorn3 | 2020-08-19T16:07:12 | Lower fcvt_from_{u,s}int for 8 and 16 bit ints | diff --git a/cranelift/codegen/src/isa/aarch64/lower_inst.rs b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
index 5fe62da69..819071cc9 100644
--- a/cranelift/codegen/src/isa/aarch64/lower_inst.rs
+++ b/cranelift/codegen/src/isa/aarch64/lower_inst.rs
@@ -2157,12 +2157,12 @@ pub(crate) fn lower_insn_to_regs<C: LowerCt... | 1 | 34 | 10 |
9286bb8f0879ce8ef4a807b29efd7df03bdd46e0 | Pat Hickey | 2020-08-18T23:22:15 | hmm this code is challenging | diff --git a/crates/wasi-common/src/sys/windows/poll.rs b/crates/wasi-common/src/sys/windows/poll.rs
index 5c4d1c6f6..c84a71c7b 100644
--- a/crates/wasi-common/src/sys/windows/poll.rs
+++ b/crates/wasi-common/src/sys/windows/poll.rs
@@ -24,7 +24,7 @@ enum PollState {
Ready,
NotReady, // it's not ready, but we... | 1 | 6 | 6 |
e08173da9ea884d54227219a90ea9a3b94effc66 | Pat Hickey | 2020-08-18T23:05:42 | fix windows: Error is not Copy like Errno is | diff --git a/crates/wasi-common/src/sys/windows/poll.rs b/crates/wasi-common/src/sys/windows/poll.rs
index b994ad948..5c4d1c6f6 100644
--- a/crates/wasi-common/src/sys/windows/poll.rs
+++ b/crates/wasi-common/src/sys/windows/poll.rs
@@ -102,10 +102,13 @@ lazy_static! {
};
}
-fn make_rw_event(event: &FdEventData... | 1 | 9 | 6 |
94f904449bd2a487ede23dee01db3da8d2624d1e | Pat Hickey | 2020-08-18T23:02:53 | fix yanix | diff --git a/crates/wasi-common/yanix/src/sys/bsd/fadvise.rs b/crates/wasi-common/yanix/src/sys/bsd/fadvise.rs
index d1fa29d9d..32d290a97 100644
--- a/crates/wasi-common/yanix/src/sys/bsd/fadvise.rs
+++ b/crates/wasi-common/yanix/src/sys/bsd/fadvise.rs
@@ -51,7 +51,9 @@ pub unsafe fn posix_fadvise(
// is p... | 1 | 3 | 1 |
c4fbec6387a37319c71e89efa35524bc15086456 | Pat Hickey | 2020-08-18T22:02:54 | additional windows fix | diff --git a/crates/wasi-common/src/sys/windows/poll.rs b/crates/wasi-common/src/sys/windows/poll.rs
index c38a0d4d9..b994ad948 100644
--- a/crates/wasi-common/src/sys/windows/poll.rs
+++ b/crates/wasi-common/src/sys/windows/poll.rs
@@ -105,7 +105,7 @@ lazy_static! {
fn make_rw_event(event: &FdEventData, nbytes: Resul... | 1 | 1 | 1 |
73aef4c6ca3038e82a8c35c72d5a6aa1b1fa1a88 | Pat Hickey | 2020-08-18T22:01:04 | guess i forgot a lot of these that dont build on linux | diff --git a/Cargo.lock b/Cargo.lock
index bd3f302bf..6515517fa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2804,7 +2804,7 @@ dependencies = [
"cfg-if",
"filetime",
"libc",
- "log",
+ "tracing",
]
[[package]]
diff --git a/crates/wasi-common/src/old/snapshot_0/sys/unix/bsd/hostcalls_impl.rs b/crates/wasi-comm... | 12 | 44 | 44 |
3bc1f84c9d5060421f6887b09fec749b6b5abab9 | Pat Hickey | 2020-08-18T18:31:08 | windows: success fixes | diff --git a/crates/wasi-common/src/sys/windows/poll.rs b/crates/wasi-common/src/sys/windows/poll.rs
index 73d6b7463..c38a0d4d9 100644
--- a/crates/wasi-common/src/sys/windows/poll.rs
+++ b/crates/wasi-common/src/sys/windows/poll.rs
@@ -104,7 +104,7 @@ lazy_static! {
fn make_rw_event(event: &FdEventData, nbytes: Res... | 1 | 2 | 2 |
80b884780bb39815397e6eeb43b9efc4bc131ade | Pat Hickey | 2020-08-18T17:57:43 | wasmtime-wasi: fix path to errno type | diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs
index bd12def83..c88125dbc 100644
--- a/crates/wasi/src/lib.rs
+++ b/crates/wasi/src/lib.rs
@@ -32,7 +32,7 @@ resolution.",
},
},
// Error to return when caller module is missing memory export:
- missing_memory: { wasi_common::wasi::Errn... | 1 | 1 | 1 |
4be3b06b618d21858745979cf1bb1c277a655b9c | Pat Hickey | 2020-08-18T17:55:42 | switch from log::debug to tracing::debug
this duplicates work done in #2139 on code that moves from
where the switch took place in that PR. | diff --git a/crates/wasi-common/src/wasi.rs b/crates/wasi-common/src/wasi.rs
index 045a11860..3124dff22 100644
--- a/crates/wasi-common/src/wasi.rs
+++ b/crates/wasi-common/src/wasi.rs
@@ -271,12 +271,12 @@ impl From<io::Error> for Errno {
winerror::ERROR_DIRECTORY => Self::Notdir,
win... | 1 | 4 | 4 |
b8409dd9aa83d49985be3ff0f78da2026a44283f | Pat Hickey | 2020-08-18T00:22:20 | wasi-common: define an Error type for the crate | diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs
new file mode 100644
index 000000000..932519200
--- /dev/null
+++ b/crates/wasi-common/src/error.rs
@@ -0,0 +1,90 @@
+use thiserror::Error;
+
+pub type Result<T> = std::result::Result<T, Error>;
+
+/// Internal error type for the `wasi-commo... | 2 | 92 | 0 |
19369142cbdd32d57fdf0bb8c5b2ff18ef43177b | Pat Hickey | 2020-08-18T00:20:16 | wasi-common: trace and convert error
this is a bug - the TODO was never resolved, even when the code to
implement it was added right below :)
tracing is already in the transitive deps via wiggle, so no extra
trouble there. tracing::debug is more appropriate than eprintln | diff --git a/Cargo.lock b/Cargo.lock
index 9e19c67c2..fac8e273c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2156,9 +2156,9 @@ dependencies = [
[[package]]
name = "tracing"
-version = "0.1.16"
+version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2e2a2de6b0d5cbb13fc2119... | 3 | 11 | 9 |
0e1c534e071e4b27063d580700a978840235c5c1 | Pat Hickey | 2020-08-18T17:45:42 | wasi-common: fix some warnings | diff --git a/crates/wasi-common/src/virtfs.rs b/crates/wasi-common/src/virtfs.rs
index 2b4cd6649..9e543a3d2 100644
--- a/crates/wasi-common/src/virtfs.rs
+++ b/crates/wasi-common/src/virtfs.rs
@@ -345,10 +345,10 @@ impl Handle for InMemoryFile {
fn openat(
&self,
path: &str,
- read: bool,
... | 1 | 5 | 5 |
8d39d9b1b56f0291e87b344bce04f2d091fe91c9 | Pat Hickey | 2020-08-18T17:42:14 | wasmtime-wasi: switch dep from log to tracing | diff --git a/crates/wasi/Cargo.toml b/crates/wasi/Cargo.toml
index 63d14fee8..18a330dbe 100644
--- a/crates/wasi/Cargo.toml
+++ b/crates/wasi/Cargo.toml
@@ -13,7 +13,7 @@ edition = "2018"
[dependencies]
anyhow = "1.0"
-log = { version = "0.4.8", default-features = false }
+tracing = "0.1.15"
wasi-common = { path =... | 1 | 1 | 1 |
94ee96712ac7e1f64a0e29ee020a7e49ea699db8 | Pat Hickey | 2020-08-18T17:35:05 | wasi-common: switch all logs from `log` to `tracing`
tracing is already the dep that wiggle uses.
I used tracing structured arguments wherever I could, but I skipped over
it in all of the snapshot_0 code, because I'm going to delete that code
and replace it with wiggle-based stuff real soon. | diff --git a/Cargo.lock b/Cargo.lock
index 9e19c67c2..bd3f302bf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2324,8 +2324,8 @@ dependencies = [
"getrandom",
"lazy_static",
"libc",
- "log",
"thiserror",
+ "tracing",
"wig",
"wiggle",
"winapi",
@@ -2629,7 +2629,7 @@ name = "wasmtime-wasi"
version = "0.19.1"... | 26 | 135 | 132 |
22181d0819cd2ef6abd5030f33339c6175273212 | Chris Fallin | 2020-08-18T16:42:46 | Use regalloc 0.0.30.
This upgrade pulls in one memory-allocation reduction improvement
(bytecodealliance/regalloc.rs#95). There should be no change in behavior
as a result of this. | diff --git a/Cargo.lock b/Cargo.lock
index 9e19c67c2..a31ce0605 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1715,9 +1715,9 @@ dependencies = [
[[package]]
name = "regalloc"
-version = "0.0.29"
+version = "0.0.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c178c51068338acd359c6e1... | 2 | 3 | 3 |
30b9e691367724d37094703ef54a63f87c892056 | Gabor Greif | 2020-08-18T15:54:34 | don't leave Deref bytecode for Code chunk (#2137)
Re-enter loop after pushing `CompiledExpressionPart::Deref`, so that it
isn't recoded for `CompiledExpressionPart::Code` as well. | diff --git a/crates/debug/src/transform/expression.rs b/crates/debug/src/transform/expression.rs
index 8544a9678..841970676 100644
--- a/crates/debug/src/transform/expression.rs
+++ b/crates/debug/src/transform/expression.rs
@@ -454,6 +454,7 @@ where
Operation::Deref { .. } => {
fl... | 1 | 2 | 1 |
bacf470a3e3ded16577b6e4d19309dea21a87021 | Pat Hickey | 2020-08-17T23:03:35 | bump all `wat` dependencies to 1.0.23
this gets us down to one version of `wast` in dependency tree! | diff --git a/Cargo.lock b/Cargo.lock
index 0e80ab54d..9e19c67c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -392,7 +392,7 @@ dependencies = [
"smallvec",
"target-lexicon",
"thiserror",
- "wast 22.0.0",
+ "wast",
]
[[package]]
@@ -1303,7 +1303,7 @@ dependencies = [
"peepmatic-test-operator",
"peepmatic-tra... | 7 | 16 | 25 |
a8ecb451f146b40e8dea2f4f775ba61c49415b38 | Pat Hickey | 2020-08-17T22:17:39 | wasmtime-wast: bump wast dependency to 22.0.0 | diff --git a/crates/wast/Cargo.toml b/crates/wast/Cargo.toml
index f402f25ca..5c405d562 100644
--- a/crates/wast/Cargo.toml
+++ b/crates/wast/Cargo.toml
@@ -13,7 +13,7 @@ edition = "2018"
[dependencies]
anyhow = "1.0.19"
wasmtime = { path = "../wasmtime", version = "0.19.0", default-features = false }
-wast = "21.0.... | 2 | 3 | 3 |
3b007dd6a2b0e1f486b37a160a7bf639da238469 | Chris Fallin | 2020-08-13T18:40:31 | Upgrade to regalloc 0.0.29.
This upgrade pulls in several recent changes in regalloc that should
improve compile-time performance in the AArch64 and new x64 backends. | diff --git a/Cargo.lock b/Cargo.lock
index 4cf980b0f..8ddb41033 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1715,9 +1715,9 @@ dependencies = [
[[package]]
name = "regalloc"
-version = "0.0.28"
+version = "0.0.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3598bed0895fe0f72a9e0b0... | 2 | 3 | 3 |
c268c9e79b15fb6c1c2b360365d11a9ab28976d3 | Pat Hickey | 2020-08-13T18:20:19 | wiggle: doc fixes | diff --git a/crates/wiggle/src/guest_type.rs b/crates/wiggle/src/guest_type.rs
index e14cfff39..7eabd0f02 100644
--- a/crates/wiggle/src/guest_type.rs
+++ b/crates/wiggle/src/guest_type.rs
@@ -45,11 +45,11 @@ pub trait GuestType<'a>: Sized {
}
/// A trait for `GuestType`s that have the same representation in guest ... | 1 | 2 | 2 |
38ef98700f19dcbc75422d5d596b34b78f3d0b63 | Johnnie Birch | 2020-08-11T06:26:21 | Adds packed integer subtraction | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 100aefe2d..9885102b6 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -403,6 +403,10 @@ pub enum SseOpcode {
Psrlw,
Psrld,
Psrlq,
+ Psub... | 4 | 47 | 0 |
bd8e08fe4a5efdc645d1d027a1af417783ce99c6 | Alex Crichton | 2020-08-10T13:57:24 | Update error message for bad table init
Although the string description for `TableOutOfBounds` isn't quite
matching what this error case is, it's a bit more descriptive than
`HeapOutOfBounds` anyway. | diff --git a/crates/runtime/src/instance.rs b/crates/runtime/src/instance.rs
index e53b147cb..be59b5a33 100644
--- a/crates/runtime/src/instance.rs
+++ b/crates/runtime/src/instance.rs
@@ -1300,7 +1300,7 @@ fn initialize_tables(instance: &Instance) -> Result<(), InstantiationError> {
.map_or(true, |end| en... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.