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 |
|---|---|---|---|---|---|---|---|
26cfbafb32c4056353abe36debf9e3bcd65ada6f | Nicolas B. Pierron | 2019-09-16T13:46:20 | Add ebb macro to insert a new blocks in legalization output. | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 910ffe24b..5618927bb 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -4,9 +4,10 @@ use crate::cdsl::operands::{OperandKind, OperandKindFields};
use crate::cdsl::types::... | 3 | 148 | 18 |
0c1f17d6dd05f67ca10f7bb984403693110740a9 | Nicolas B. Pierron | 2019-09-16T13:41:30 | Add empty_vararg literal to generate jump instruction. | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index b2b1e2f3e..910ffe24b 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -111,6 +111,9 @@ pub(crate) enum Literal {
/// A value of an integer immediate operand.
... | 1 | 9 | 1 |
614fb7b5268508ebeb7642ebe9780ff5d9f8e7a7 | Nicolas B. Pierron | 2019-09-16T13:39:03 | Factor out the var_index function. | diff --git a/cranelift/codegen/meta/src/cdsl/xform.rs b/cranelift/codegen/meta/src/cdsl/xform.rs
index 6875fa451..d0a543bae 100644
--- a/cranelift/codegen/meta/src/cdsl/xform.rs
+++ b/cranelift/codegen/meta/src/cdsl/xform.rs
@@ -138,6 +138,27 @@ impl Transform {
}
}
+/// Inserts, if not present, a name in the `... | 1 | 28 | 27 |
4052bc04ee90f84395b275f24cfeb253ba27e118 | Pat Hickey | 2019-09-23T23:47:13 | cranelift-wasm: upgrade to wasmparser 0.39.1 (#1068)
Uses new SectionContent api, which is simpler than matching on
SectionCode and then getting the right reader, & avoids possible panics | diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml
index a87e4a4cc..71a2a7ca3 100644
--- a/cranelift/wasm/Cargo.toml
+++ b/cranelift/wasm/Cargo.toml
@@ -11,7 +11,7 @@ keywords = ["webassembly", "wasm"]
edition = "2018"
[dependencies]
-wasmparser = { version = "0.37.0", default-features = false }
+wa... | 2 | 30 | 40 |
c3a519d3a1a47f623cca03f3c04587ec8794ea4e | Marius Wachtler | 2019-09-05T17:19:05 | wasm2obj: add -O / --optimize command line option | diff --git a/src/bin/wasm2obj.rs b/src/bin/wasm2obj.rs
index 07e7159ec..acefb5e18 100644
--- a/src/bin/wasm2obj.rs
+++ b/src/bin/wasm2obj.rs
@@ -63,7 +63,7 @@ The translation is dependent on the environment chosen.
The default is a dummy environment that produces placeholder values.
Usage:
- wasm2obj [--target T... | 1 | 10 | 1 |
947fce194ea1103920c01533babe9e66a55dceb9 | Erin Power | 2019-08-31T08:09:14 | Replaced instances of SparseSet with EntitySet | diff --git a/cranelift/bforest/src/pool.rs b/cranelift/bforest/src/pool.rs
index 1b51cfe56..0848089eb 100644
--- a/cranelift/bforest/src/pool.rs
+++ b/cranelift/bforest/src/pool.rs
@@ -83,7 +83,7 @@ impl<F: Forest> NodePool<F> {
NodeData<F>: fmt::Display,
F::Key: fmt::Display,
{
- use crat... | 4 | 105 | 17 |
f0244516c543ce8d3bc5a386ed52b440581c7dcb | Benjamin Bouvier | 2019-09-17T08:57:28 | [meta] Make more things pub(crate) instead of pub;
This could help the compiler find unused fields/methods. It didn't find any
during this migration. | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 5c6256836..b2b1e2f3e 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -8,7 +8,7 @@ use cranelift_entity::{entity_impl, PrimaryMap};
use std::fmt;
-pub enum Expr {
+p... | 16 | 38 | 38 |
c2587c9d619903deafa974ba06f6b96a0bc1fb5f | Benjamin Bouvier | 2019-09-17T08:52:31 | [meta] Remove Literal's kind field; | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 798ee29d0..5c6256836 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -8,7 +8,6 @@ use cranelift_entity::{entity_impl, PrimaryMap};
use std::fmt;
-#[derive(Debug)]
... | 1 | 58 | 63 |
3ab8eed7d327793b28b777a61b95b96276d2f695 | Benjamin Bouvier | 2019-09-23T10:57:47 | Remove unused core::mem import; | diff --git a/cranelift/codegen/src/ir/immediates.rs b/cranelift/codegen/src/ir/immediates.rs
index c46b5ac0d..408fe17cf 100644
--- a/cranelift/codegen/src/ir/immediates.rs
+++ b/cranelift/codegen/src/ir/immediates.rs
@@ -6,7 +6,6 @@
use core::fmt::{self, Display, Formatter};
use core::iter::FromIterator;
-use core:... | 1 | 1 | 1 |
eeb3159fe9bb758e768e1a843101eb01c3152aac | Anthony Ramine | 2019-09-22T12:31:54 | Make wasm_unsupported be composeable | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index fef3215c5..0bf7f4b0b 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -907,7 +907,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
| Operator::I64Atomic... | 5 | 43 | 18 |
26accbadf8218a8ffde222ffa7673d15fa981e55 | Anthony Ramine | 2019-09-19T10:24:39 | Use f32::to_bits and f64::to_bits | diff --git a/cranelift/codegen/src/ir/immediates.rs b/cranelift/codegen/src/ir/immediates.rs
index 371c05bdd..c46b5ac0d 100644
--- a/cranelift/codegen/src/ir/immediates.rs
+++ b/cranelift/codegen/src/ir/immediates.rs
@@ -809,7 +809,7 @@ impl Ieee32 {
/// Create a new `Ieee32` representing the number `x`.
pu... | 1 | 2 | 2 |
178241625c71d3b3b354d754ac24ad2b993ed2ae | Anthony Ramine | 2019-09-19T10:23:42 | Use slice::from_ref and slice::from_mut | diff --git a/cranelift/codegen/meta/src/gen_inst.rs b/cranelift/codegen/meta/src/gen_inst.rs
index 7d8353dad..ed28a8379 100644
--- a/cranelift/codegen/meta/src/gen_inst.rs
+++ b/cranelift/codegen/meta/src/gen_inst.rs
@@ -97,9 +97,14 @@ fn gen_instruction_data(registry: &FormatRegistry, fmt: &mut Formatter) {
fn gen_... | 5 | 9 | 24 |
2330ca7e2c599d6e70cce7203ff0cfa70a066863 | Andrew Brown | 2019-09-20T20:44:42 | Fix incorrect regmove and fill encodings for SIMD types
- `fill` attempted to use a GPR recipe, `fillSib32`, instead of its FPR equivalent, `ffillSib32` (code compiled without error but incorrect instructions were allowed, e.g. `v1 = regmove v0, %rdi -> %xmm0`
- `regmove` could be encoded with a GPR recipe, `rmov`, wh... | diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs
index 184338371..741f77d75 100644
--- a/cranelift/codegen/meta/src/isa/x86/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs
@@ -1989,7 +1989,7 @@ pub(crate) fn define(
// Fill
... | 1 | 1 | 2 |
9b8e7b511e8b4c21742c660e3213c1b8de44f611 | Nick Fitzgerald | 2019-09-19T16:46:22 | tidy: Remove extra semicolons
These were causing compilation warnings. | diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs
index 71c2fd2e2..78e702cac 100644
--- a/cranelift/codegen/meta/src/cdsl/typevar.rs
+++ b/cranelift/codegen/meta/src/cdsl/typevar.rs
@@ -851,7 +851,7 @@ impl TypeSetBuilder {
pub fn build(self) -> TypeSet {
... | 3 | 3 | 3 |
fe25abeb0d2e81e55833f7f8503f5a1036ee367f | Andrew Brown | 2019-09-11T18:44:29 | Add x86 encodings for vector copy, copy_nop, fill_nop | diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs
index 1096fb7d4..184338371 100644
--- a/cranelift/codegen/meta/src/isa/x86/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs
@@ -1992,11 +1992,19 @@ pub(crate) fn define(
e.enc_32_64(... | 1 | 8 | 0 |
cd426cb7bcc81d49a4f06c78e50ab88192543fd2 | Andrew Brown | 2019-09-09T23:31:42 | Rename Uimm128 to V128Imm | diff --git a/cranelift/codegen/src/ir/immediates.rs b/cranelift/codegen/src/ir/immediates.rs
index 2c5ee27c4..371c05bdd 100644
--- a/cranelift/codegen/src/ir/immediates.rs
+++ b/cranelift/codegen/src/ir/immediates.rs
@@ -290,13 +290,13 @@ impl FromStr for Uimm32 {
}
}
-/// A 128-bit unsigned integer immediate o... | 5 | 54 | 54 |
6cbc6e8bfb9c0734bb80738af717e546001119f9 | Andrew Brown | 2019-09-06T18:43:11 | Handle use of SIMD vector globals and locals | diff --git a/cranelift/wasm/src/func_translator.rs b/cranelift/wasm/src/func_translator.rs
index b49cffd47..cced9d87e 100644
--- a/cranelift/wasm/src/func_translator.rs
+++ b/cranelift/wasm/src/func_translator.rs
@@ -179,6 +179,10 @@ fn declare_locals<FE: FuncEnvironment + ?Sized>(
I64 => builder.ins().iconst(... | 3 | 10 | 1 |
7e6913e362deca7dffe2f3d5e3a849a36a857a87 | Andrew Brown | 2019-09-06T18:21:28 | Add x86 encodings for vector store, load, fill, spill, and regmove | diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs
index 9ea29fb93..016f3bc9a 100644
--- a/cranelift/codegen/meta/src/isa/x86/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs
@@ -293,6 +293,12 @@ impl PerCpuModeEncodings {
}
}
... | 1 | 40 | 0 |
ddd1680e7637ca9459597f94fc1548f41167ff88 | Andrew Brown | 2019-09-06T17:54:41 | Add V128 -> I8X16 type conversions | diff --git a/cranelift/wasm/src/translation_utils.rs b/cranelift/wasm/src/translation_utils.rs
index 726d6f7c6..7dd774a62 100644
--- a/cranelift/wasm/src/translation_utils.rs
+++ b/cranelift/wasm/src/translation_utils.rs
@@ -122,6 +122,7 @@ pub fn type_to_type(ty: wasmparser::Type) -> WasmResult<ir::Type> {
wa... | 1 | 5 | 1 |
13ac951004c0b8765bf14b5597c22102ec6be789 | Andrew Brown | 2019-09-06T16:54:19 | Allow global initialization of SIMD vectors | diff --git a/cranelift/wasm/src/translation_utils.rs b/cranelift/wasm/src/translation_utils.rs
index f033b8660..726d6f7c6 100644
--- a/cranelift/wasm/src/translation_utils.rs
+++ b/cranelift/wasm/src/translation_utils.rs
@@ -65,7 +65,7 @@ pub struct Global {
pub initializer: GlobalInit,
}
-/// Globals are initi... | 1 | 3 | 1 |
1e74d011110fd9ec5fa236404a3f9e8681eff0da | Wander Lairson Costa | 2019-09-19T18:26:17 | Check for types::INVALID in the function signature, resolves #493 (#1046) | diff --git a/cranelift/codegen/src/verifier/mod.rs b/cranelift/codegen/src/verifier/mod.rs
index 21f0c72ca..02cc3f0c5 100644
--- a/cranelift/codegen/src/verifier/mod.rs
+++ b/cranelift/codegen/src/verifier/mod.rs
@@ -1838,12 +1838,51 @@ impl<'a> Verifier<'a> {
Ok(())
}
+ fn typecheck_function_signatu... | 1 | 66 | 1 |
e72434e58feb7379a3d08e0c73f67eb06b08e5b4 | Andrew Brown | 2019-08-27T23:03:56 | Add boolean encodings for x86
Includes and, or, xor, not, and regmove; TODO re-factor PerCpuModeEncodings to avoid code duplication | diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs
index 8824329c7..9ea29fb93 100644
--- a/cranelift/codegen/meta/src/isa/x86/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs
@@ -150,6 +150,20 @@ impl PerCpuModeEncodings {
self.enc64... | 1 | 23 | 0 |
bd613ecafd645936da67e1d7e3940281aed3c9c7 | Mark Bestavros | 2019-07-16T19:41:23 | Utilize cranelift-codegen's new `all-arch` feature to maintain architecture support | diff --git a/Cargo.toml b/Cargo.toml
index 0045065d9..9a604c68c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -50,5 +50,7 @@ members = [
]
[features]
+# Enable all supported architectures by default.
+default = ["cranelift-codegen/all-arch"]
lightbeam = ["wasmtime-environ/lightbeam", "wasmtime-jit/lightbeam"]
wasi-... | 1 | 2 | 0 |
acd6a5ea589b97e090ba2e26b61fbd1cc2509000 | Artur Jamro | 2019-09-18T23:50:30 | Fix crash when cache disabled | diff --git a/wasmtime-environ/src/cache/config.rs b/wasmtime-environ/src/cache/config.rs
index 51e2c15d5..14611149d 100644
--- a/wasmtime-environ/src/cache/config.rs
+++ b/wasmtime-environ/src/cache/config.rs
@@ -150,7 +150,9 @@ pub fn init<P: AsRef<Path> + Debug>(
let conf_file_str = format!("{:?}", config_file);... | 1 | 3 | 1 |
59139c6c468920f69378f9d256da2c70f1ca2feb | Joshua Nelson | 2019-09-18T23:48:57 | Add more documentation for entities, fixes #1038 (#1041)
Also fixes broken links to point to docs.rs; see
https://github.com/CraneStation/cranelift/pull/1041#issuecomment-532356880,
there doesn't currently seem to be a way to link to a type in a
dependent crate. | diff --git a/cranelift/codegen/src/ir/entities.rs b/cranelift/codegen/src/ir/entities.rs
index ab78e0f3a..1e09d1884 100644
--- a/cranelift/codegen/src/ir/entities.rs
+++ b/cranelift/codegen/src/ir/entities.rs
@@ -25,7 +25,12 @@ use core::u32;
#[cfg(feature = "enable-serde")]
use serde::{Deserialize, Serialize};
-//... | 1 | 114 | 9 |
9c747db4293192dffe659ed741070716caeb43b0 | Yury Delendik | 2019-09-18T14:27:53 | Make data() unsafe | diff --git a/wasmtime-api/examples/memory.rs b/wasmtime-api/examples/memory.rs
index 400c94a3b..8a9f1f8c5 100644
--- a/wasmtime-api/examples/memory.rs
+++ b/wasmtime-api/examples/memory.rs
@@ -103,9 +103,9 @@ fn main() -> Result<(), Error> {
println!("Checking memory...");
check!(memory.borrow().size(), 2u32)... | 2 | 13 | 11 |
e252e0f5b75ef41fb6b67f04ccd6361f7aa48ea0 | Joshua Nelson | 2019-09-18T09:14:29 | fix broken link in cranelift-object | diff --git a/cranelift/object/src/backend.rs b/cranelift/object/src/backend.rs
index 78dc24632..09f209bb3 100644
--- a/cranelift/object/src/backend.rs
+++ b/cranelift/object/src/backend.rs
@@ -37,8 +37,7 @@ pub struct ObjectBuilder {
impl ObjectBuilder {
/// Create a new `ObjectBuilder` using the given Cranelif... | 1 | 1 | 2 |
c0274eca24291f85a309300e2733cbd80b5c1969 | AnthonyMikh | 2019-09-18T08:11:32 | Simplify and rename `Stackmap::from_vec` (#1032)
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com> | diff --git a/cranelift/codegen/src/binemit/stackmap.rs b/cranelift/codegen/src/binemit/stackmap.rs
index 8d0d2a320..4051b47e1 100644
--- a/cranelift/codegen/src/binemit/stackmap.rs
+++ b/cranelift/codegen/src/binemit/stackmap.rs
@@ -3,10 +3,13 @@ use crate::ir;
use crate::isa::TargetIsa;
use std::vec::Vec;
+type Nu... | 1 | 25 | 24 |
90f1cd5c96fdc3f3b34e83857af30c4b99c84918 | Jakub Konka | 2019-09-17T20:34:32 | Fix path_remove_directory on *nixes | diff --git a/build.rs b/build.rs
index ff492bdf0..777027b94 100644
--- a/build.rs
+++ b/build.rs
@@ -165,7 +165,6 @@ cfg_if::cfg_if! {
match name {
"path_rename_trailing_slashes" => true,
"path_symlink_trailing_slashes" => true,
- "remove_dir... | 3 | 4 | 2 |
5426e42a27f24fbbb217d8c9a511e46162198866 | Erin Power | 2019-09-14T15:08:10 | Revert "Remove FunctionBuilderContext from API, and change FunctionBuilder API"
This reverts commit 39e638af99dbe6537bc935bfb1a74669b62877b3. | diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs
index 37ac4b95d..fbd2428e1 100644
--- a/cranelift/frontend/src/frontend.rs
+++ b/cranelift/frontend/src/frontend.rs
@@ -20,22 +20,22 @@ use std::vec::Vec;
/// In order to reduce memory reallocations when compiling multiple functions,
... | 11 | 172 | 162 |
30a4f73cce31b04c94182d4622344dd3146f2d7a | Dan Gohman | 2019-09-16T22:55:35 | Mark public API functions as unsafe. (#90)
* Mark public API functions as unsafe.
This marks the public hostcalls functions as unsafe.
This is generalizing from Rust's `from_raw_fd` function, which is
unsafe. The observation is that nothing prevents code using this
function from passing a bogus or stale dangli... | diff --git a/src/ctx.rs b/src/ctx.rs
index fa084709e..434dcedf2 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -163,11 +163,11 @@ impl WasiCtx {
.and_then(|ctx| ctx.build())
}
- pub(crate) fn contains_fd_entry(&self, fd: host::__wasi_fd_t) -> bool {
+ pub(crate) unsafe fn contains_fd_entry(&self,... | 6 | 89 | 91 |
fec5b7ab0a60daaca2c3969ca92a2d44ed521031 | Jakub Konka | 2019-09-16T22:35:14 | Refactor mgmt of misc testsuite (#101)
Changes:
* use [tempfile] crate for auto mgmt of temp dirs
* use concrete types in place of generics in `utils` module
[tempfile]: https://github.com/Stebalien/tempfile | diff --git a/Cargo.toml b/Cargo.toml
index e506f9bde..04a961ec0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,6 +37,7 @@ cranelift-wasm = "0.41.0"
cranelift-native = "0.41.0"
target-lexicon = "0.4.0"
pretty_env_logger = "0.3.0"
+tempfile = "3.1.0"
[patch."https://github.com/CraneStation/wasi-common"]
wasi-comm... | 4 | 31 | 50 |
dfeae067ccad736eb3b4fa5e203e487e448a9f1e | Jakub Konka | 2019-09-16T09:39:26 | Sync with wasmtime and update public interface
Internal modules `memory` and `host` can indeed be internal hidden
behind public-private visibility as `wasmtime-wasi` has already
been updated not to use the said modules (see
CraneStation/wasmtime#298). | diff --git a/Cargo.toml b/Cargo.toml
index 3c756d3eb..e506f9bde 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,14 +27,14 @@ winx = { path = "winx" }
winapi = "0.3"
[dev-dependencies]
-wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "44367ba" }
-wasmtime-environ = { git = "https://githu... | 4 | 370 | 355 |
b95508c51a334e7c5cf0dff0bb9dd4d55fb098a0 | julian-seward1 | 2019-09-16T13:01:07 | legalizer/split.rs: split_ebb_params: avoid pointless Vec allocations. (#1025)
This function is responsible for 2.2% of all heap allocation (calls) in CL.
This change avoids all of them in the (presumably) common case where none of
the parameters require splitting. It also slightly reduces the compiler's
instructi... | diff --git a/cranelift/codegen/src/legalizer/split.rs b/cranelift/codegen/src/legalizer/split.rs
index 9f689922f..5e55419fa 100644
--- a/cranelift/codegen/src/legalizer/split.rs
+++ b/cranelift/codegen/src/legalizer/split.rs
@@ -131,19 +131,27 @@ fn split_any(
}
pub fn split_ebb_params(func: &mut ir::Function, cfg:... | 1 | 18 | 10 |
a51606bfeb6cccab86219b722d90b1dc4a7e74b0 | Wander Lairson Costa | 2019-09-14T23:12:56 | [frontend] Add message for pristine assertion violation
After we add any instruction to an EBB, we can't add EBB parameters
anymore. There is an assertion in `append_ebb_param` to detect this
error, but the backtrace generated doesn't give any hint what happened.
We add an error message to the assertion so the user c... | diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs
index 064ab7053..37ac4b95d 100644
--- a/cranelift/frontend/src/frontend.rs
+++ b/cranelift/frontend/src/frontend.rs
@@ -523,7 +523,10 @@ impl FunctionBuilder {
/// **Note:** this function has to be called at the creation of the `E... | 1 | 4 | 1 |
febecc418c01344a4276f001c080afb0ed8b430a | Dan Gohman | 2019-09-09T16:14:23 | Make functions that operate on raw I/O handles unsafe.
Functions which trust that their arguments are valid raw file descriptors
or raw handles should be marked unsafe, because these arguments are
passed unchecked to I/O routines. | diff --git a/src/fdentry.rs b/src/fdentry.rs
index 99c4bf629..694942321 100644
--- a/src/fdentry.rs
+++ b/src/fdentry.rs
@@ -85,7 +85,7 @@ impl Drop for FdObject {
impl FdEntry {
pub(crate) fn from(file: fs::File) -> Result<Self> {
- determine_type_and_access_rights(&file).map(
+ unsafe { determin... | 7 | 26 | 22 |
c98b3d10ece0c69fa81a18b424c21213ff7886bd | Jakub Konka | 2019-09-14T19:01:39 | Fix fd_readdir on BSD-style nixes (#81)
* Fix fd_readdir on BSD-style nixes
The fix was tested on Darwin-XNU and FreeBSD. The change introduces
thread-safe cache of (RawFd, *mut libc::DIR) pairs so that
libc::fdopendir syscall is called only once when invoking fd_readdir
for the first time, and then the pointer ... | diff --git a/build.rs b/build.rs
index e3224e3ac..c7113d5a2 100644
--- a/build.rs
+++ b/build.rs
@@ -154,26 +154,11 @@ fn avoid_keywords(name: &str) -> &str {
}
cfg_if::cfg_if! {
- if #[cfg(linux)] {
- /// Ignore tests that aren't supported yet.
- fn ignore(_testsuite: &str, _name: &str) -> bool {
... | 15 | 484 | 219 |
500e32a3b25c78e5e0d03fbe1047ac6800527a07 | Jakub Konka | 2019-09-13T10:28:55 | Use fcntl with F_RDADVISE on MacOS | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index 5de682fa0..0b60bcaca 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -3,7 +3,7 @@
use super::fs_helpers::*;
use crate::helpers::systemtime_to_timestamp;
use crate::hostcalls_impl::PathGe... | 1 | 42 | 2 |
8d7e80f44086d0c9d0840bd1b33f97bf0c34b53f | Marcin Mielniczuk | 2019-09-13T12:21:13 | Refactor error handling in fd_advise | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index becf11762..5de682fa0 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -63,8 +63,7 @@ pub(crate) fn fd_advise(
_ => return Err(Error::EINVAL),
};
- posix_fadvis... | 1 | 1 | 2 |
86e3d3e30763174a2f8417de28261cd629b2973a | Marcin Mielniczuk | 2019-09-13T11:48:09 | Fix a typo in fd_advise | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index f982a3af3..becf11762 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -56,7 +56,7 @@ pub(crate) fn fd_advise(
let host_advice = match advice {
host::__WASI_ADVICE_DONTN... | 1 | 1 | 1 |
042c87763e5a408a737829490bdfecd2d7262630 | Yury Delendik | 2019-09-12T21:16:32 | add invariant checks | diff --git a/wasmtime-api/src/externals.rs b/wasmtime-api/src/externals.rs
index de3a4861b..f1cde77b9 100644
--- a/wasmtime-api/src/externals.rs
+++ b/wasmtime-api/src/externals.rs
@@ -290,7 +290,7 @@ impl Table {
match wasmtime_export {
wasmtime_runtime::Export::Table { definition, .. } => {
... | 5 | 27 | 11 |
805fbb4d2ab1ce837bac649ecf9aa4a94f260b3c | Yury Delendik | 2019-09-10T17:38:15 | rm private SignatureRegistry trait | diff --git a/wasmtime-api/src/instance.rs b/wasmtime-api/src/instance.rs
index 214f30e2a..df7613319 100644
--- a/wasmtime-api/src/instance.rs
+++ b/wasmtime-api/src/instance.rs
@@ -112,7 +112,6 @@ impl Instance {
// HACK ensure all handles, instantiated outside Store, present in
// the... | 4 | 6 | 22 |
ee26b9ead7b697b596175d9e88ec785bd76e8e4e | Yury Delendik | 2019-09-09T21:52:44 | few comments. | diff --git a/wasmtime-api/src/instance.rs b/wasmtime-api/src/instance.rs
index 98e4d34c7..214f30e2a 100644
--- a/wasmtime-api/src/instance.rs
+++ b/wasmtime-api/src/instance.rs
@@ -110,7 +110,8 @@ impl Instance {
let export = mutable.lookup(name).expect("export");
if let wasmtime_runtime::Expo... | 2 | 5 | 1 |
263fa098a1c056c096eab51432d18ce4ad41d169 | Yury Delendik | 2019-09-09T21:36:38 | rm "callable" warning | diff --git a/wasmtime-api/src/externals.rs b/wasmtime-api/src/externals.rs
index 1bfb9cac5..de3a4861b 100644
--- a/wasmtime-api/src/externals.rs
+++ b/wasmtime-api/src/externals.rs
@@ -116,6 +116,7 @@ impl Func {
&self.r#type
}
+ #[cfg(feature = "wasm-c-api")]
pub(crate) fn callable(&self) -> &R... | 1 | 1 | 0 |
164039f08d41091e372477271e68079d0e2f424d | Yury Delendik | 2019-09-09T21:34:22 | Move table_utils into wasmtime_runtime | diff --git a/wasmtime-api/src/externals.rs b/wasmtime-api/src/externals.rs
index 46775afbb..1bfb9cac5 100644
--- a/wasmtime-api/src/externals.rs
+++ b/wasmtime-api/src/externals.rs
@@ -1,10 +1,9 @@
use crate::callable::{Callable, NativeCallable, WasmtimeFn, WrappedCallable};
use crate::runtime::Store;
-use crate::tab... | 6 | 248 | 141 |
de1c0f63eb16580ed8ad542b57f095463b774916 | Yury Delendik | 2019-08-27T16:44:02 | Table operation; refactor Callable | diff --git a/wasmtime-api/src/callable.rs b/wasmtime-api/src/callable.rs
index 9da8735ec..9783909d8 100644
--- a/wasmtime-api/src/callable.rs
+++ b/wasmtime-api/src/callable.rs
@@ -1,44 +1,61 @@
use crate::runtime::Store;
use crate::trap::Trap;
+use crate::types::FuncType;
use crate::values::Val;
-use core::any::Any... | 17 | 641 | 114 |
cadd0ac65523a93ca39f84ae1b61037c21e840e8 | Andrew Brown | 2019-09-12T16:02:22 | Remove unused import when cross-compiling, fixes #1022 | diff --git a/cranelift/native/src/lib.rs b/cranelift/native/src/lib.rs
index cfa27cef8..9ad873e16 100644
--- a/cranelift/native/src/lib.rs
+++ b/cranelift/native/src/lib.rs
@@ -26,7 +26,6 @@
#![no_std]
use cranelift_codegen::isa;
-use cranelift_codegen::settings::Configurable;
use target_lexicon::Triple;
#[cfg(... | 1 | 1 | 1 |
92a01c816d2676bce24bef63b21acf2e862af4e5 | julian-seward1 | 2019-09-12T09:09:35 | Minor speedup tuning for SecondaryMap (#1020)
The `SecondaryMap` abstraction -- basically, resize-on-demand arrays with a
default value -- is very hot in Cranelift. This small patch is the result of
many profiling runs. It makes two changes:
* `fn index_mut` is changed to be `#[inline(always)]`, based on profil... | diff --git a/cranelift/entity/src/map.rs b/cranelift/entity/src/map.rs
index f46c30742..77fe38ce9 100644
--- a/cranelift/entity/src/map.rs
+++ b/cranelift/entity/src/map.rs
@@ -83,16 +83,19 @@ where
}
/// Get the element at `k` if it exists.
+ #[inline(always)]
pub fn get(&self, k: K) -> Option<&V> ... | 1 | 7 | 4 |
4915f0734e9bbe17146f37f0580742fa9057390e | Jakub Konka | 2019-09-12T06:45:40 | Ignore failing tests for the moment | diff --git a/build.rs b/build.rs
index b32622dd5..e3224e3ac 100644
--- a/build.rs
+++ b/build.rs
@@ -157,7 +157,16 @@ cfg_if::cfg_if! {
if #[cfg(linux)] {
/// Ignore tests that aren't supported yet.
fn ignore(_testsuite: &str, _name: &str) -> bool {
- false
+ if testsuite ==... | 1 | 16 | 1 |
f07392c17516d3922474020636d4c4353fd9af38 | Marcin Mielniczuk | 2019-09-11T16:51:55 | Quick fix for path_filestat_set_times. Closes #95. | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index a729da512..f982a3af3 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -423,7 +423,7 @@ pub(crate) fn path_filestat_set_times(
_ => UtimensatFlags::NoFollowSymlink,
};
- le... | 1 | 2 | 2 |
e85376ec071ee1a982aa326d19339fd5c768fb91 | Dan Gohman | 2019-09-10T22:58:31 | Add doc comments to `WasiCtxBuilder`'s methods. | diff --git a/src/ctx.rs b/src/ctx.rs
index 66a2e1261..fa084709e 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -8,6 +8,7 @@ use std::ffi::CString;
use std::fs::File;
use std::path::{Path, PathBuf};
+/// A builder allowing customizable construction of `WasiCtx` instances.
pub struct WasiCtxBuilder {
fds: HashMap<... | 1 | 9 | 0 |
c1c74ca54be72f0b066084185e777e2df98e452c | Dan Gohman | 2019-09-10T23:10:16 | Add a method for inhering the command-line arguments from the host. | diff --git a/src/ctx.rs b/src/ctx.rs
index 580d04d57..66a2e1261 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -3,6 +3,7 @@ use crate::sys::dev_null;
use crate::{host, Error, Result};
use std::borrow::Borrow;
use std::collections::HashMap;
+use std::env;
use std::ffi::CString;
use std::fs::File;
use std::path::{Path... | 1 | 6 | 0 |
aea2f11f06704eec464111102088506b69d980d0 | Dan Gohman | 2019-09-10T22:58:49 | Mark `WasiCtx`'s internals as `pub(crate)`. | diff --git a/src/ctx.rs b/src/ctx.rs
index 35dd1eda7..580d04d57 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -127,9 +127,9 @@ impl WasiCtxBuilder {
#[derive(Debug)]
pub struct WasiCtx {
- pub fds: HashMap<host::__wasi_fd_t, FdEntry>,
- pub args: Vec<CString>,
- pub env: Vec<CString>,
+ pub(crate) fds: Ha... | 1 | 7 | 7 |
633dfa17eebebbddca45febb7d21730de264fd51 | Artur Jamro | 2019-08-24T00:00:38 | Cache config as a file | diff --git a/src/bin/wasm2obj.rs b/src/bin/wasm2obj.rs
index 308fd858e..9afe4404e 100644
--- a/src/bin/wasm2obj.rs
+++ b/src/bin/wasm2obj.rs
@@ -50,7 +50,7 @@ use std::str;
use std::str::FromStr;
use target_lexicon::Triple;
use wasmtime_debug::{emit_debugsections, read_debuginfo};
-use wasmtime_environ::cache_conf;
... | 14 | 530 | 201 |
35c6d869f55e9ea263498ef56d1f68b36d3388cb | Wander Lairson Costa | 2019-09-10T22:11:20 | Replace region::protect by make_exec in cranelift-filetests | diff --git a/cranelift/filetests/src/function_runner.rs b/cranelift/filetests/src/function_runner.rs
index 8837596ed..6f2cd4a83 100644
--- a/cranelift/filetests/src/function_runner.rs
+++ b/cranelift/filetests/src/function_runner.rs
@@ -5,8 +5,6 @@ use cranelift_codegen::isa::TargetIsa;
use cranelift_codegen::{setting... | 1 | 5 | 10 |
abb157315b91df6b3c165d519d8be0be6323e0f4 | Nicolas B. Pierron | 2019-09-10T21:02:11 | Basic Blocks: Fix frontend::sample_function test case. (#1007) | diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs
index 29330a88d..064ab7053 100644
--- a/cranelift/frontend/src/frontend.rs
+++ b/cranelift/frontend/src/frontend.rs
@@ -908,6 +908,7 @@ mod tests {
let block0 = builder.create_ebb();
let block1 = builder.creat... | 1 | 10 | 3 |
f1363168a9dfc4552be76e1039f0971504683b25 | Andrew Brown | 2019-08-21T22:21:18 | Translate the sign-extended and zero-extended versions of extract_lane | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index 1801c6539..e5ce5a0c3 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -940,6 +940,16 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
let splatted = b... | 1 | 10 | 4 |
8a6686ec45ebf7a26034b8f3b97499bd720e0eee | Andrew Brown | 2019-08-21T21:59:17 | Enable SSSE3 setting when detected on CPU | diff --git a/cranelift/native/src/lib.rs b/cranelift/native/src/lib.rs
index 0687e7017..cfa27cef8 100644
--- a/cranelift/native/src/lib.rs
+++ b/cranelift/native/src/lib.rs
@@ -59,6 +59,9 @@ fn parse_x86_cpuid(isa_builder: &mut isa::Builder) -> Result<(), &'static str> {
if info.has_sse3() {
isa_b... | 1 | 3 | 0 |
7f152611a49172765e4416ae0643c511c44f166c | Andrew Brown | 2019-08-21T21:07:50 | Log compiled and legalized functions | diff --git a/cranelift/codegen/src/context.rs b/cranelift/codegen/src/context.rs
index 704d89177..5350b3444 100644
--- a/cranelift/codegen/src/context.rs
+++ b/cranelift/codegen/src/context.rs
@@ -33,6 +33,7 @@ use crate::timing;
use crate::unreachable_code::eliminate_unreachable_code;
use crate::value_label::{build_... | 1 | 7 | 1 |
4b085b9cf71638aae83b4d6450c115a7ecc4267c | Sean Stangl | 2019-09-10T14:18:06 | Avoid unnecessary reallocations in domtree::with_function() (#1011) | diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs
index feea33a0e..8191c310e 100644
--- a/cranelift/codegen/src/dominator_tree.rs
+++ b/cranelift/codegen/src/dominator_tree.rs
@@ -226,7 +226,13 @@ impl DominatorTree {
/// Allocate and compute a dominator tree.
pu... | 3 | 31 | 1 |
63367d205cc129ebcd1a12c5ebdb04bc37ce4353 | julian-seward1 | 2019-09-10T13:06:10 | Fix #975 (Structure of cranelift-wasm/src/translation_utils.rs causes many pointless heap allocations) (#1010)
This patch restricts the `Err(..)` return from `blocktype_to_type` to be
`Err(..)` only in the case where it really is an error to continue. The three
use points of `blocktype_to_type` are changed to check... | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index 664d83902..1801c6539 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -133,7 +133,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
********************... | 2 | 32 | 24 |
ac2ca6116b3e84c779af021cc4c9eab138d4c3ca | data-pup | 2019-06-28T19:29:53 | allow module environment to parse name section | diff --git a/cranelift/wasm/src/environ/dummy.rs b/cranelift/wasm/src/environ/dummy.rs
index 8199cadee..98cdb3f44 100644
--- a/cranelift/wasm/src/environ/dummy.rs
+++ b/cranelift/wasm/src/environ/dummy.rs
@@ -17,7 +17,7 @@ use cranelift_codegen::ir::immediates::{Offset32, Uimm64};
use cranelift_codegen::ir::types::*;
... | 5 | 119 | 16 |
52b69c21cfe3da7be8e86d74ba7e2fd626afd5e2 | Dan Gohman | 2019-08-14T21:46:15 | Miscellaneous clippy fixes. | diff --git a/src/hostcalls/misc.rs b/src/hostcalls/misc.rs
index fc41fff08..2fb6b5bac 100644
--- a/src/hostcalls/misc.rs
+++ b/src/hostcalls/misc.rs
@@ -7,7 +7,7 @@ use log::trace;
use wasi_common_cbindgen::wasi_common_cbindgen;
#[wasi_common_cbindgen]
-pub fn proc_exit(rval: wasm32::__wasi_exitcode_t) -> () {
+pub... | 2 | 2 | 2 |
39161d020fc8c39060d220cebf4369a6f7e9165f | Dan Gohman | 2019-08-14T02:17:54 | Clippy: use `from` functions rather than `as` casts.
`as` is a many-faceted conversion operator, while `from` functions only do
lossless conversions. | diff --git a/src/hostcalls_impl/misc.rs b/src/hostcalls_impl/misc.rs
index 04f8a836b..bd6ddeb3f 100644
--- a/src/hostcalls_impl/misc.rs
+++ b/src/hostcalls_impl/misc.rs
@@ -197,7 +197,7 @@ pub(crate) fn poll_oneoff(
nevents,
);
- if nsubscriptions as u64 > wasm32::__wasi_filesize_t::max_value() {
+ ... | 2 | 3 | 3 |
09ace3529529e9c1b1509dae69b609b02a23b3a7 | Dan Gohman | 2019-08-14T02:17:27 | Clippy: use ptr::add rather than ptr::offset. | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index bbdc3f5f8..a729da512 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -251,15 +251,15 @@ pub(crate) fn fd_readdir(
break;
}
unsafe {
- let ptr = hos... | 1 | 3 | 3 |
34db7f015093fb9f83009b45a404cc5cb17f5e72 | Dan Gohman | 2019-09-07T21:43:29 | Update to syn 1 and quote 1. | diff --git a/wasi-common-cbindgen/Cargo.toml b/wasi-common-cbindgen/Cargo.toml
index 9891039d2..390abb5f0 100644
--- a/wasi-common-cbindgen/Cargo.toml
+++ b/wasi-common-cbindgen/Cargo.toml
@@ -10,8 +10,8 @@ description = "Interface generator utilities used by wasi-common"
proc-macro = true
[dependencies]
-syn = { v... | 2 | 21 | 11 |
90b0b86f5c4ebe8956d31d2597a04505b91101d9 | Nicolas B. Pierron | 2019-09-06T14:14:55 | Simplify isa_builder macro | diff --git a/cranelift/codegen/src/isa/mod.rs b/cranelift/codegen/src/isa/mod.rs
index 20e38ddeb..c36d29ce2 100644
--- a/cranelift/codegen/src/isa/mod.rs
+++ b/cranelift/codegen/src/isa/mod.rs
@@ -88,18 +88,17 @@ pub mod registers;
mod stack;
/// Returns a builder that can create a corresponding `TargetIsa`
-/// or... | 1 | 10 | 11 |
d2443a75f352bde49dc529420cc3d8e4bb370c19 | Julian Seward | 2019-09-07T16:07:51 | legalizer/split.rs: simplify_branch_arguments: use SmallVec instead of Vec
This function is responsible for 8.5% of all heap allocation (calls) in CL.
This change avoids almost all of them by using a SmallVec::<[Value; 32]>
instead. Dynamic instruction count falls by 0.25%. The fixed size of 32 was
arrived at after ... | diff --git a/cranelift/codegen/src/legalizer/split.rs b/cranelift/codegen/src/legalizer/split.rs
index f16dae161..9f689922f 100644
--- a/cranelift/codegen/src/legalizer/split.rs
+++ b/cranelift/codegen/src/legalizer/split.rs
@@ -68,6 +68,7 @@ use crate::cursor::{Cursor, CursorPosition, FuncCursor};
use crate::flowgrap... | 1 | 2 | 1 |
c6a4c60a0f3c028b498860e712963da23330527e | Julian Seward | 2019-09-07T17:12:42 | EbbHeaderBlockData::predecessors: use SmallVec instead of Vec
Allocations associated with pushes to EbbHeaderBlockData::predecessors account
for 4.9% of all heap allocation (calls) in CL. This change avoids almost all
of them by changing it to be a SmallVec<[PredBlock; 4]>. Dynamic instruction
count falls by 0.15%. | diff --git a/cranelift/frontend/Cargo.toml b/cranelift/frontend/Cargo.toml
index 3ef5a4564..3cd888220 100644
--- a/cranelift/frontend/Cargo.toml
+++ b/cranelift/frontend/Cargo.toml
@@ -15,6 +15,7 @@ cranelift-codegen = { path = "../cranelift-codegen", version = "0.42.0", default
target-lexicon = "0.8.1"
log = { versi... | 2 | 9 | 4 |
955cdd5f83bd694b1c87d7c69e25cbbee06d675e | Julian Seward | 2019-09-07T15:34:08 | VirtRegs::find: use SmallVec instead of Vec for val_stack.
Pushing on the `val_stack` vector is CL's biggest source of calls to
malloc/realloc/free, by some margin. It accounts for about 27.7% of all heap
blocks allocated when compiling wasm_lua_binarytrees. This change removes
pretty much all dynamic allocation by ... | diff --git a/cranelift/codegen/Cargo.toml b/cranelift/codegen/Cargo.toml
index 2c5ccb4d2..2d81a660e 100644
--- a/cranelift/codegen/Cargo.toml
+++ b/cranelift/codegen/Cargo.toml
@@ -21,6 +21,7 @@ hashmap_core = { version = "0.1.9", optional = true }
target-lexicon = "0.8.1"
log = { version = "0.4.6", default-features ... | 2 | 3 | 1 |
33c78e2e5b722422d9016e81c1820efe007edd02 | Jakub Konka | 2019-09-09T08:36:47 | Fix formatting | diff --git a/src/sys/unix/hostcalls_impl/misc.rs b/src/sys/unix/hostcalls_impl/misc.rs
index f21290c92..0d6d0efb7 100644
--- a/src/sys/unix/hostcalls_impl/misc.rs
+++ b/src/sys/unix/hostcalls_impl/misc.rs
@@ -2,7 +2,7 @@
#![allow(unused_unsafe)]
use crate::memory::*;
use crate::sys::host_impl;
-use crate::{host, was... | 1 | 1 | 1 |
612617b0ba99c337a4991051a647db677a2f8200 | Marcin Mielniczuk | 2019-09-08T16:48:59 | reuse the host::* consts in enum Error | diff --git a/src/error.rs b/src/error.rs
index 3970e3729..d8d50cb67 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -5,84 +5,85 @@ use std::fmt;
use std::num::TryFromIntError;
#[derive(Clone, Copy, Debug, Fail)]
+#[repr(u16)]
pub enum WasiError {
- ESUCCESS = 0,
- E2BIG = 1,
- EACCES = 2,
- EADDRINUSE ... | 1 | 78 | 77 |
c5339d01cfdc6526d99463ee0ede4054ea55af17 | Marcin Mielniczuk | 2019-09-08T07:38:03 | refactor errno_from_ioerror | diff --git a/src/error.rs b/src/error.rs
index cd8932e85..3970e3729 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,5 +1,4 @@
use crate::host;
-use crate::sys::errno_from_ioerror;
use failure::Fail;
use std::convert::Infallible;
use std::fmt;
@@ -254,3 +253,13 @@ impl fmt::Display for Error {
}
}
... | 2 | 10 | 11 |
ae836df42d9e143d893f9bd498926d94fe009175 | Marcin Mielniczuk | 2019-09-08T06:44:48 | reformat | diff --git a/src/error.rs b/src/error.rs
index bb62a6faf..cd8932e85 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,9 +1,9 @@
use crate::host;
use crate::sys::errno_from_ioerror;
use failure::Fail;
+use std::convert::Infallible;
use std::fmt;
use std::num::TryFromIntError;
-use std::convert::Infallible;
#[de... | 1 | 1 | 1 |
438c69350865bf20afb5b3d98985a7608c9affe7 | Marcin Mielniczuk | 2019-09-08T06:26:12 | Impl Fail | diff --git a/src/error.rs b/src/error.rs
index ffe79b6aa..c7f742dd6 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,8 +1,10 @@
use crate::host;
use crate::sys::errno_from_ioerror;
+use failure::Fail;
+use std::fmt;
use std::num::TryFromIntError;
-#[derive(Clone, Copy, Debug)]
+#[derive(Clone, Copy, Debug, Fail)... | 1 | 20 | 1 |
dfda794f559707545b8fdf3d1afd300ed41afb4c | Alex Crichton | 2019-08-13T20:11:22 | Add a custom section hook to `ModuleEnvironment`
This commit adds a hook to the `ModuleEnvironment` trait to learn when a
custom section in a wasm file is read. This hook can in theory be used
to parse and handle custom sections as they appear in the wasm file
without having to re-iterate over the wasm file after cran... | diff --git a/cranelift/wasm/src/environ/spec.rs b/cranelift/wasm/src/environ/spec.rs
index 59208ea56..b65309115 100644
--- a/cranelift/wasm/src/environ/spec.rs
+++ b/cranelift/wasm/src/environ/spec.rs
@@ -467,4 +467,14 @@ pub trait ModuleEnvironment<'data> {
offset: usize,
data: &'data [u8],
) ->... | 2 | 81 | 126 |
8fd112899090d684d6ec80cd184967495c1910e6 | Aaron Power | 2019-03-21T09:32:42 | Remove FunctionBuilderContext from API, and change FunctionBuilder API | diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs
index 096131455..29330a88d 100644
--- a/cranelift/frontend/src/frontend.rs
+++ b/cranelift/frontend/src/frontend.rs
@@ -20,22 +20,22 @@ use std::vec::Vec;
/// In order to reduce memory reallocations when compiling multiple functions,
... | 11 | 162 | 172 |
0273eb84e071a6f7ffb8c84f37c113132d68ef17 | bjorn3 | 2019-09-07T09:51:23 | Fix rebase | diff --git a/cranelift/codegen/meta/src/shared/legalize.rs b/cranelift/codegen/meta/src/shared/legalize.rs
index e006452b3..958827270 100644
--- a/cranelift/codegen/meta/src/shared/legalize.rs
+++ b/cranelift/codegen/meta/src/shared/legalize.rs
@@ -185,6 +185,9 @@ pub(crate) fn define(insts: &InstructionGroup, imm: &Im... | 1 | 3 | 24 |
e8d4ef7c3de2c049cf16443e2fc3f7c08174dffd | bjorn3 | 2019-08-31T10:24:31 | Fix review comments | diff --git a/cranelift/codegen/meta/src/gen_legalizer.rs b/cranelift/codegen/meta/src/gen_legalizer.rs
index 8223aef0e..da1fb1f58 100644
--- a/cranelift/codegen/meta/src/gen_legalizer.rs
+++ b/cranelift/codegen/meta/src/gen_legalizer.rs
@@ -89,6 +89,8 @@ fn unwrap_inst(
fmtln!(fmt, "func.dfg.resolv... | 2 | 13 | 9 |
e2b2b520ebabeccc1485a9e4c5d6f6697f55a578 | bjorn3 | 2019-08-30T17:07:39 | Fix compilation | diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs
index 1739ed3ab..253491f01 100644
--- a/cranelift/codegen/meta/src/isa/x86/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs
@@ -1776,7 +1776,7 @@ pub(crate) fn define(
insertlane_mapping... | 1 | 2 | 2 |
ffa1e946a749acaca8c5d244b4e05c0f56aa60fa | bjorn3 | 2019-07-19T10:26:33 | Fix compilation | diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs
index b91d9f26c..f061be94e 100644
--- a/cranelift/codegen/meta/src/cdsl/instructions.rs
+++ b/cranelift/codegen/meta/src/cdsl/instructions.rs
@@ -1127,6 +1127,11 @@ fn bind_vector(
mut value_types: Vec<Va... | 2 | 13 | 5 |
3ae78fdddee8cfaf12f4e06658c9bfdd128a97a7 | bjorn3 | 2019-06-29T15:18:14 | Fix warnings | diff --git a/cranelift/codegen/src/legalizer/mod.rs b/cranelift/codegen/src/legalizer/mod.rs
index 537778354..bc78d2ba1 100644
--- a/cranelift/codegen/src/legalizer/mod.rs
+++ b/cranelift/codegen/src/legalizer/mod.rs
@@ -72,8 +72,11 @@ fn legalize_inst(
};
match pos.func.dfg.value_def(arg) {
- ... | 1 | 6 | 3 |
599b48d95f348da07e8f9f8f880acdf1d92df24b | bjorn3 | 2019-06-29T15:01:54 | Narrowing legalize some more bitops | diff --git a/cranelift/codegen/meta/src/shared/legalize.rs b/cranelift/codegen/meta/src/shared/legalize.rs
index 57ad9c89b..26f4a4543 100644
--- a/cranelift/codegen/meta/src/shared/legalize.rs
+++ b/cranelift/codegen/meta/src/shared/legalize.rs
@@ -207,7 +207,7 @@ pub(crate) fn define(insts: &InstructionGroup, imm: &Im... | 1 | 11 | 1 |
c7a8b6c9e568905e2442412bd5fd4aa2e1c3e28e | bjorn3 | 2019-06-29T14:44:07 | Remove some dbg! invocations | diff --git a/cranelift/codegen/src/legalizer/mod.rs b/cranelift/codegen/src/legalizer/mod.rs
index a2266da08..e0433cb05 100644
--- a/cranelift/codegen/src/legalizer/mod.rs
+++ b/cranelift/codegen/src/legalizer/mod.rs
@@ -91,14 +91,10 @@ fn legalize_inst(
assert_eq!(res.len(), 2);
let (resl, resh) = (r... | 1 | 0 | 6 |
83ac6dd4d498f9cb0dce5c7f44e4bd0fd52a4da2 | bjorn3 | 2019-06-29T14:23:07 | [meta] Add some Debug derives | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 141ffd84c..798ee29d0 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -8,6 +8,7 @@ use cranelift_entity::{entity_impl, PrimaryMap};
use std::fmt;
+#[derive(Debug)]
... | 3 | 6 | 2 |
a43a3a5e9fdf8d135bc2bf8fbabc6bfc5f897de5 | bjorn3 | 2019-06-29T14:22:31 | [meta] Give a nicer error message when a legalization uses an incorrect number of arguments | diff --git a/cranelift/codegen/meta/src/cdsl/xform.rs b/cranelift/codegen/meta/src/cdsl/xform.rs
index b1a0234cd..90d991f5e 100644
--- a/cranelift/codegen/meta/src/cdsl/xform.rs
+++ b/cranelift/codegen/meta/src/cdsl/xform.rs
@@ -183,7 +183,12 @@ fn rewrite_expr(
assert_eq!(
apply_target.inst().operands_in... | 1 | 6 | 1 |
8d0e8f893117e7e1806a37352b1680bda2b1ba0d | bjorn3 | 2019-06-29T14:21:52 | [meta] Fix legalization in presence of varargs | diff --git a/cranelift/codegen/meta/src/gen_legalizer.rs b/cranelift/codegen/meta/src/gen_legalizer.rs
index 7b59844e6..67959b3c7 100644
--- a/cranelift/codegen/meta/src/gen_legalizer.rs
+++ b/cranelift/codegen/meta/src/gen_legalizer.rs
@@ -61,10 +61,10 @@ fn unwrap_inst(
fmtln!(fmt, "{},", field.member);
... | 1 | 16 | 3 |
954a2007d2da5d0e20f41d43d182fd122f389345 | bjorn3 | 2019-06-17T19:16:20 | Fix isplit legalization | diff --git a/cranelift/codegen/src/legalizer/mod.rs b/cranelift/codegen/src/legalizer/mod.rs
index db9f302ca..94154d7df 100644
--- a/cranelift/codegen/src/legalizer/mod.rs
+++ b/cranelift/codegen/src/legalizer/mod.rs
@@ -65,20 +65,44 @@ fn legalize_inst(
_ => panic!("Expected isplit: {}", pos.func.dfg.disp... | 1 | 35 | 11 |
c1553194a7e8c153f555aaed146aacdfd138f735 | bjorn3 | 2019-06-17T17:51:21 | Fix WideInt max size in insturctions.py | diff --git a/cranelift/codegen/src/ir/types.rs b/cranelift/codegen/src/ir/types.rs
index a5c1a9997..394ec8e02 100644
--- a/cranelift/codegen/src/ir/types.rs
+++ b/cranelift/codegen/src/ir/types.rs
@@ -10,7 +10,7 @@ use target_lexicon::{PointerWidth, Triple};
/// field is present put no type is needed, such as the cont... | 1 | 1 | 1 |
c9a25abbc4a79a111fa208868ef068a5cc74e828 | bjorn3 | 2019-06-12T17:24:47 | Basic i128 support | diff --git a/cranelift/codegen/meta/src/cdsl/types.rs b/cranelift/codegen/meta/src/cdsl/types.rs
index eba239d1d..53b003280 100644
--- a/cranelift/codegen/meta/src/cdsl/types.rs
+++ b/cranelift/codegen/meta/src/cdsl/types.rs
@@ -219,8 +219,9 @@ impl LaneType {
LaneType::IntType(shared_types::Int::I16) ... | 7 | 26 | 9 |
85a41d449c36620377658575ed7622b1671cf806 | Marcin Mielniczuk | 2019-08-27T13:36:21 | Treat FIFOs' type as __WASI_FILETYPE_UNKNOWN. | diff --git a/src/sys/unix/fdentry_impl.rs b/src/sys/unix/fdentry_impl.rs
index de9494e94..019f6015c 100644
--- a/src/sys/unix/fdentry_impl.rs
+++ b/src/sys/unix/fdentry_impl.rs
@@ -51,10 +51,7 @@ pub(crate) fn determine_type_rights<Fd: AsRawFd>(
// we just make a `File` here for convenience; we don't want it t... | 3 | 5 | 35 |
d308c47822e1ad82c0f612f34e1f63955e3c7db9 | Marcin Mielniczuk | 2019-08-30T12:57:03 | Add a no-op implementation of fd_advise on Windows
Windows apparently has no similar syscall available. | diff --git a/src/sys/windows/hostcalls_impl/fs.rs b/src/sys/windows/hostcalls_impl/fs.rs
index b2bbca350..c8e1da9b2 100644
--- a/src/sys/windows/hostcalls_impl/fs.rs
+++ b/src/sys/windows/hostcalls_impl/fs.rs
@@ -61,12 +61,22 @@ pub(crate) fn fd_fdstat_set_flags(fd: &File, fdflags: host::__wasi_fdflags_t) ->
}
pub(... | 1 | 14 | 4 |
1c5711c12bc0ae250a20f4ae84d35373f021e280 | Nicolas B. Pierron | 2019-09-06T20:27:02 | Basic Block: Fix IR builder library example. (#989) | diff --git a/cranelift/frontend/src/lib.rs b/cranelift/frontend/src/lib.rs
index 5b426d608..eff5c655f 100644
--- a/cranelift/frontend/src/lib.rs
+++ b/cranelift/frontend/src/lib.rs
@@ -50,10 +50,12 @@
//! jump block1
//! block1:
//! z = z + y;
-//! brnz y, block2;
+//! brnz y, block3;
+//! jump block2... | 1 | 12 | 5 |
891944dba17763a8f593e94cf4b306c220d6e464 | Nicolas B. Pierron | 2019-09-06T20:07:06 | Generate basic-blocks instead of Ebb in frontend::switch. (#981) | diff --git a/cranelift/frontend/src/switch.rs b/cranelift/frontend/src/switch.rs
index 0db3ac348..0b1ca746c 100644
--- a/cranelift/frontend/src/switch.rs
+++ b/cranelift/frontend/src/switch.rs
@@ -167,12 +167,22 @@ impl Switch {
contiguous_case_ranges: Vec<ContiguousCaseRange>,
cases_and_jt_ebbs: &mut... | 1 | 29 | 5 |
e35cf861db889b3b0bfe96c4de089c2bbd7c3e8b | Benjamin Bouvier | 2019-09-06T09:54:17 | Fixes #984: Add a isa::lookup_by_name function;
This removes the explicit dependency on target-lexicon for the embedder,
which can instead use the ISA's name directly. It can simplify
dependency management, in particular avoid the need for synchronizing
the target-lexicon dependencies versions.
It also tweak the erro... | diff --git a/cranelift/codegen/src/isa/mod.rs b/cranelift/codegen/src/isa/mod.rs
index 816e185f8..20e38ddeb 100644
--- a/cranelift/codegen/src/isa/mod.rs
+++ b/cranelift/codegen/src/isa/mod.rs
@@ -66,7 +66,7 @@ use crate::timing;
use core::fmt;
use failure_derive::Fail;
use std::boxed::Box;
-use target_lexicon::{Arc... | 1 | 10 | 3 |
c1609b70e8f2b862d0487172d24604b11b0db0c4 | Benjamin Bouvier | 2019-08-28T15:56:26 | [codegen] Allow using the pinned register as the heap base via a setting; | diff --git a/cranelift/codegen/meta/src/shared/settings.rs b/cranelift/codegen/meta/src/shared/settings.rs
index e7c567c34..63c5d3c01 100644
--- a/cranelift/codegen/meta/src/shared/settings.rs
+++ b/cranelift/codegen/meta/src/shared/settings.rs
@@ -95,6 +95,21 @@ pub fn define() -> SettingGroup {
false,
)... | 3 | 40 | 9 |
660b8b28b8bb021f5d06ddcbf90d8ec59e346ba9 | Benjamin Bouvier | 2019-08-28T15:33:45 | [codegen] Add a pinned register that's entirely under the control of the user; | diff --git a/cranelift/codegen/meta/src/cdsl/regs.rs b/cranelift/codegen/meta/src/cdsl/regs.rs
index e7a3464d1..920b1f542 100644
--- a/cranelift/codegen/meta/src/cdsl/regs.rs
+++ b/cranelift/codegen/meta/src/cdsl/regs.rs
@@ -11,6 +11,7 @@ pub struct RegBank {
pub names: Vec<&'static str>,
pub prefix: &'static... | 15 | 229 | 30 |
d1d2e790b9aa0cbecc6a10a047b2ff0b790ca3d3 | Benjamin Bouvier | 2019-09-04T15:50:51 | [meta] Morph a few pub into pub(crate), and remove dead code; | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 5e1c192f0..141ffd84c 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -11,7 +11,6 @@ use std::fmt;
pub enum Expr {
Var(VarIndex),
Literal(Literal),
- Apply(... | 21 | 19 | 42 |
8fba449b7bc6d554dba0605a259bed56c798cc91 | Benjamin Bouvier | 2019-09-04T14:37:15 | [meta] Introduce the EntityRefs structure instead of using dynamic lookup; | diff --git a/cranelift/codegen/meta/src/shared/entities.rs b/cranelift/codegen/meta/src/shared/entities.rs
index 358ef8f23..910722789 100644
--- a/cranelift/codegen/meta/src/shared/entities.rs
+++ b/cranelift/codegen/meta/src/shared/entities.rs
@@ -1,65 +1,76 @@
use crate::cdsl::operands::{OperandKind, OperandKindBuil... | 4 | 137 | 137 |
bafd79330dc8b473fa10dc769710028b23efb548 | stefson | 2019-09-06T10:16:22 | upgrade to latest target-lexicon 0.8.1
this fixes the compile for arm and aarch64
reported via https://github.com/CraneStation/cranelift/issues/977 | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index df8956cba..8fee3b6db 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -38,7 +38,7 @@ serde = "1.0.8"
term = "0.6.1"
capstone = { version = "0.6.0", optional = true }
wabt = { version = "0.9.1", optional = true }
-target-lexicon = "0.8.0"
+... | 9 | 9 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.