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 |
|---|---|---|---|---|---|---|---|
bc1b56f739ed5906f0c597edfdf8e0fd01b72e18 | Nicolas B. Pierron | 2019-08-02T15:52:39 | Rename data to inst_data in binemit generated code. | diff --git a/cranelift/codegen/meta/src/gen_binemit.rs b/cranelift/codegen/meta/src/gen_binemit.rs
index c1bd752bc..71684ffb5 100644
--- a/cranelift/codegen/meta/src/gen_binemit.rs
+++ b/cranelift/codegen/meta/src/gen_binemit.rs
@@ -47,7 +47,7 @@ fn gen_recipe(formats: &FormatRegistry, recipe: &EncodingRecipe, fmt: &mu... | 1 | 3 | 3 |
c903735ea8ad9a13bf2b91eb0e5bf2e34eb48d96 | Nicolas B. Pierron | 2019-08-01T13:08:06 | Shrink: Factor accesses of instruction data | diff --git a/cranelift/codegen/src/binemit/shrink.rs b/cranelift/codegen/src/binemit/shrink.rs
index 281a93ae3..0f9838c8a 100644
--- a/cranelift/codegen/src/binemit/shrink.rs
+++ b/cranelift/codegen/src/binemit/shrink.rs
@@ -33,11 +33,12 @@ pub fn shrink_instructions(func: &mut Function, isa: &dyn TargetIsa) {
... | 1 | 3 | 2 |
3585ee34b095e9817f5d8e315d99deafe82ecdba | Nicolas B. Pierron | 2019-07-29T15:04:48 | Uses divert.apply for all instruction within binemit. | diff --git a/cranelift/codegen/meta/src/gen_binemit.rs b/cranelift/codegen/meta/src/gen_binemit.rs
index bb75ce540..c1bd752bc 100644
--- a/cranelift/codegen/meta/src/gen_binemit.rs
+++ b/cranelift/codegen/meta/src/gen_binemit.rs
@@ -75,13 +75,9 @@ fn gen_recipe(formats: &FormatRegistry, recipe: &EncodingRecipe, fmt: &m... | 1 | 3 | 7 |
ad7171530457e6daa87b6489980e487417390b27 | Nicolas B. Pierron | 2019-07-29T15:00:17 | Factor out func.dfg[inst] accesses in binemit. | diff --git a/cranelift/codegen/meta/src/gen_binemit.rs b/cranelift/codegen/meta/src/gen_binemit.rs
index 1950f59e9..bb75ce540 100644
--- a/cranelift/codegen/meta/src/gen_binemit.rs
+++ b/cranelift/codegen/meta/src/gen_binemit.rs
@@ -32,7 +32,7 @@ fn gen_recipe(formats: &FormatRegistry, recipe: &EncodingRecipe, fmt: &mu... | 1 | 4 | 3 |
0bc9d1fe6f28c4c8aba8f39a6e8e021e1e998460 | Yury Delendik | 2019-08-02T01:46:34 | Update cranelift to 0.37.0 (#236)
Closed #228, #227, #226, #225, #224 | diff --git a/Cargo.toml b/Cargo.toml
index 1be823363..d05f84cfe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,8 +22,8 @@ name = "wasm2obj"
path = "src/wasm2obj.rs"
[dependencies]
-cranelift-codegen = { version = "0.36.0", features = ["enable-serde"] }
-cranelift-native = "0.36.0"
+cranelift-codegen = { version = ... | 10 | 30 | 30 |
1bdec4ca36651f648f2aa91073deee43266b01d6 | Dan Gohman | 2019-08-01T17:21:43 | Remove cranelift-native dependency from wasmtime-wast. (#216) | diff --git a/wasmtime-wast/Cargo.toml b/wasmtime-wast/Cargo.toml
index 248462f29..a09a66ff6 100644
--- a/wasmtime-wast/Cargo.toml
+++ b/wasmtime-wast/Cargo.toml
@@ -13,7 +13,6 @@ edition = "2018"
[dependencies]
cranelift-codegen = { version = "0.36.0", features = ["enable-serde"] }
-cranelift-native = "0.36.0"
cra... | 1 | 0 | 1 |
057d4f6e3cfa4b1bfbca69da024d96c62486647c | Benjamin Bouvier | 2019-07-31T10:43:01 | Simple preopt: Fold (imm OP x) into (OP_IMM x imm) whenever possible; | diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs
index b164ca21f..9da90d2e4 100644
--- a/cranelift/codegen/src/simple_preopt.rs
+++ b/cranelift/codegen/src/simple_preopt.rs
@@ -556,6 +556,11 @@ fn simplify(pos: &mut FuncCursor, inst: Inst) {
simplify(pos, ins... | 1 | 5 | 0 |
141b45e0e1ed7cc03785a26bd3c55b17358eb309 | Benjamin Bouvier | 2019-07-05T10:24:35 | Simple preopt: fold binary opcodes chains together; | diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs
index d5e21d636..de3103647 100644
--- a/cranelift/codegen/src/simple_preopt.rs
+++ b/cranelift/codegen/src/simple_preopt.rs
@@ -501,6 +501,9 @@ fn simplify(pos: &mut FuncCursor, inst: Inst) {
.dfg
... | 1 | 44 | 0 |
dc58a5fc5c7725a4c08023b74e95f6d99b0dadea | Benjamin Bouvier | 2019-07-01T15:25:11 | Simple preopt: use the immediate form for adjust_sp_down/ifcmp whenever possible; | diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs
index fabad6d3b..d5e21d636 100644
--- a/cranelift/codegen/src/simple_preopt.rs
+++ b/cranelift/codegen/src/simple_preopt.rs
@@ -8,12 +8,14 @@ use crate::cursor::{Cursor, FuncCursor};
use crate::divconst_magic_numbers::{magic_s... | 1 | 75 | 63 |
5873f697fc52150ba4cbc5e15a6e63564c2a8f83 | Andrew Brown | 2019-07-31T14:48:43 | Enable SIMD instructions from the command line (#232)
This change adds an `--enable-simd` flag to the binaries in this project. This allows the ISA `enable_simd` flag to be set and to configure the validation configuration used by wasmparser to allow SIMD instructions. | diff --git a/src/wasm2obj.rs b/src/wasm2obj.rs
index 754efdc17..bc99441bd 100644
--- a/src/wasm2obj.rs
+++ b/src/wasm2obj.rs
@@ -31,6 +31,7 @@
use cranelift_codegen::isa;
use cranelift_codegen::settings;
+use cranelift_codegen::settings::Configurable;
use cranelift_native;
use docopt::Docopt;
use faerie::Artifac... | 6 | 83 | 23 |
fff0198fb70c1ac4638d4265ed473776702a86da | Yury Delendik | 2019-07-31T14:41:56 | Fix RelocationTarget::JumpTable handling in wasm2obj (#195) | diff --git a/wasmtime-obj/src/function.rs b/wasmtime-obj/src/function.rs
index d5ef06f52..59d3fcf04 100644
--- a/wasmtime-obj/src/function.rs
+++ b/wasmtime-obj/src/function.rs
@@ -96,6 +96,9 @@ pub fn emit_functions(
})
.map_err(|err| format!("{}", err))?;
}
+... | 1 | 3 | 0 |
6042ee6f2db677bd0b72624e0c5ea5f7219c6e57 | bjorn3 | 2019-03-17T10:58:40 | Improve graphviz rendering | diff --git a/cranelift/codegen/src/cfg_printer.rs b/cranelift/codegen/src/cfg_printer.rs
index e3ce37e73..e3c62820c 100644
--- a/cranelift/codegen/src/cfg_printer.rs
+++ b/cranelift/codegen/src/cfg_printer.rs
@@ -1,10 +1,12 @@
//! The `CFGPrinter` utility.
use core::fmt::{Display, Formatter, Result, Write};
+use st... | 1 | 15 | 15 |
3d42753535bd7202e3b4d7b429f62d6544bb8257 | iximeow | 2019-07-30T16:48:06 | add VisibleTranslationState for a public-friendly interface | diff --git a/cranelift/wasm/src/environ/spec.rs b/cranelift/wasm/src/environ/spec.rs
index 71c11e0b2..c1aa9e8dd 100644
--- a/cranelift/wasm/src/environ/spec.rs
+++ b/cranelift/wasm/src/environ/spec.rs
@@ -6,7 +6,7 @@
//!
//! [Wasmtime]: https://github.com/CraneStation/wasmtime
-use crate::state::TranslationState;
+... | 4 | 29 | 7 |
b5cb8556f62378b7608e2269baf063a83b25b26d | Andy Wortman | 2019-07-30T14:32:50 | [wasm] Pass translation state along for before/after_translate_operator callbacks (#879) | diff --git a/cranelift/wasm/src/environ/spec.rs b/cranelift/wasm/src/environ/spec.rs
index 6837e3018..71c11e0b2 100644
--- a/cranelift/wasm/src/environ/spec.rs
+++ b/cranelift/wasm/src/environ/spec.rs
@@ -6,6 +6,7 @@
//!
//! [Wasmtime]: https://github.com/CraneStation/wasmtime
+use crate::state::TranslationState;
... | 3 | 6 | 2 |
bec111a5856d78568c2ad97900addd9be5151557 | Jef | 2019-07-30T10:30:53 | Some minor cleanup | diff --git a/src/backend.rs b/src/backend.rs
index 4fe617585..59d088759 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -662,6 +662,17 @@ enum LabelValue {
I64(i64),
}
+impl From<Value> for LabelValue {
+ fn from(other: Value) -> LabelValue {
+ match other {
+ Value::I32(v) => LabelValu... | 1 | 29 | 35 |
5ca13a70a581d07e2410324b12dc104670002a14 | laizy | 2019-07-16T05:19:39 | check no other sections after data section | diff --git a/cranelift/wasm/src/module_translator.rs b/cranelift/wasm/src/module_translator.rs
index 72f257ace..669f9154e 100644
--- a/cranelift/wasm/src/module_translator.rs
+++ b/cranelift/wasm/src/module_translator.rs
@@ -1,6 +1,6 @@
//! Translation skeleton that traverses the whole WebAssembly module and call help... | 1 | 9 | 1 |
4074ce2f5d265c3b7ae7e288b09c820373366bd7 | Andrew Brown | 2019-07-25T17:10:30 | Add a unit test for ir::Type::lane_type() for a vector type
Closes #834 | diff --git a/cranelift/codegen/src/ir/types.rs b/cranelift/codegen/src/ir/types.rs
index 9da5b971b..fd28b5bd7 100644
--- a/cranelift/codegen/src/ir/types.rs
+++ b/cranelift/codegen/src/ir/types.rs
@@ -363,6 +363,9 @@ mod tests {
assert_eq!(I64, I64.lane_type());
assert_eq!(F32, F32.lane_type());
... | 1 | 3 | 0 |
09ec0d4149391b6b73513a612ddab8e42d8a9253 | Artur Jamro | 2019-07-25T00:18:50 | Derive Hash for some types | diff --git a/cranelift/entity/src/primary.rs b/cranelift/entity/src/primary.rs
index 257cb240f..6734a1f5e 100644
--- a/cranelift/entity/src/primary.rs
+++ b/cranelift/entity/src/primary.rs
@@ -27,7 +27,7 @@ use std::vec::Vec;
/// that it only allows indexing with the distinct `EntityRef` key type, so converting to a
... | 2 | 6 | 6 |
89fbde2c3fb42661cd6705dadd3e72b30aa76748 | Marcin Mielniczuk | 2019-07-26T17:15:29 | Implement fd_filestat_get for all platforms (#42)
* Implement fd_filestat_get for all platforms
* Remove an old comment
* Remove panics from the syscall wrappers
* Return WASI error type
* Reuse Metadata if possible to save syscalls.
* Refactor the change for two separate fd_filestat_get_impl
* Refac... | diff --git a/src/helpers.rs b/src/helpers.rs
new file mode 100644
index 000000000..08755b5c1
--- /dev/null
+++ b/src/helpers.rs
@@ -0,0 +1,10 @@
+use crate::{host, Result};
+use std::convert::TryInto;
+use std::time::{SystemTime, UNIX_EPOCH};
+pub(crate) fn systemtime_to_timestamp(st: SystemTime) -> Result<u64> {
+ ... | 7 | 189 | 17 |
b7d86af0ec6dc6c3d228728f1ce47d0a0033c05f | Artur Jamro | 2019-07-26T14:24:58 | Cache directory hierarchy (#217)
* Simple module compilation cache
* Fix base64 encoding bug
* Use warn! everywhere in cache system
* Remove unused import
* Temporary workaround for long path on Windows
* Remove unused import for non-windows builds
* Cache directory hierarchy
* Fix conditional com... | diff --git a/wasmtime-environ/build.rs b/wasmtime-environ/build.rs
new file mode 100644
index 000000000..21082e31b
--- /dev/null
+++ b/wasmtime-environ/build.rs
@@ -0,0 +1,9 @@
+use std::process::Command;
+
+fn main() {
+ let git_rev = match Command::new("git").args(&["rev-parse", "HEAD"]).output() {
+ Ok(out... | 3 | 101 | 36 |
e759e3c2a424a8b1f16047bfde101c4a901de404 | Jakub Konka | 2019-07-26T08:37:12 | Update dependencies and lock wasmtime-* on a specific rev | diff --git a/Cargo.toml b/Cargo.toml
index 3d48836a8..56b4a0682 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -25,14 +25,14 @@ winx = { path = "winx" }
winapi = "0.3"
[dev-dependencies]
-wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime" }
-wasmtime-environ = { git = "https://github.com/cranestatio... | 1 | 8 | 8 |
696eee22b2f6d8b62f11b06b20c31878d988b91a | Marcin Mielniczuk | 2019-07-25T14:15:43 | Mark all functions in host_impl.rs as pub(crate)
It will allow the compiler to spot more unused functions. | diff --git a/src/sys/unix/host_impl.rs b/src/sys/unix/host_impl.rs
index fa7601a05..9ec22b3aa 100644
--- a/src/sys/unix/host_impl.rs
+++ b/src/sys/unix/host_impl.rs
@@ -6,7 +6,7 @@ use crate::{host, memory, wasm32, Result};
use std::ffi::OsStr;
use std::os::unix::prelude::OsStrExt;
-pub fn errno_from_nix(errno: nix... | 2 | 19 | 17 |
165dc4944d8b08cc602dbf027dc0affd0c01d340 | Artur Jamro | 2019-07-25T23:16:10 | Simple module compilation cache (#203)
* Simple module compilation cache
* Fix base64 encoding bug
* Use warn! everywhere in cache system
* Remove unused import
* Temporary workaround for long path on Windows
* Remove unused import for non-windows builds
* Add command line argument to enable cache sy... | diff --git a/Cargo.toml b/Cargo.toml
index 482d5e9dc..1be823363 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,8 +22,8 @@ name = "wasm2obj"
path = "src/wasm2obj.rs"
[dependencies]
-cranelift-codegen = "0.33.0"
-cranelift-native = "0.33.0"
+cranelift-codegen = { version = "0.36.0", features = ["enable-serde"] }
+cr... | 20 | 509 | 117 |
be36cc6538fee9b0f652f14406a0296b33e07ba5 | Sean Stangl | 2019-07-24T19:46:24 | Generate basic blocks for wasm if..then..else. | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index 4717cf490..43d08c671 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -152,6 +152,15 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
let val = state.... | 1 | 9 | 0 |
b7a9d654585ad52212a867c1b1a6e9120a91f993 | Andy Wortman | 2019-07-25T16:36:17 | cranelift-wasm hooks to instrument wasm operators (#861)
* cranelift-wasm hooks to instrument wasm operators | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index 2fe9a7843..4717cf490 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -42,7 +42,7 @@ use wasmparser::{MemoryImmediate, Operator};
/// Translates wasm operators into Cranelif... | 4 | 84 | 54 |
feecd239671350d98dae5f4244cc7a5fa5e469e9 | Nicolas B. Pierron | 2019-07-25T12:33:25 | Assert if newly added instructions break the Basic Block invariant. | diff --git a/cranelift/codegen/src/cursor.rs b/cranelift/codegen/src/cursor.rs
index dbb459ed7..e688a90b3 100644
--- a/cranelift/codegen/src/cursor.rs
+++ b/cranelift/codegen/src/cursor.rs
@@ -635,6 +635,28 @@ impl<'c, 'f> ir::InstInserterBase<'c> for &'c mut FuncCursor<'f> {
}
fn insert_built_inst(self, in... | 1 | 45 | 0 |
6792c062bf7d1b8964070888b66e7f18576cc46f | Nicolas B. Pierron | 2019-07-24T16:28:59 | Add basic-blocks feature flag at the top-level Cargo.toml. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index d20e1948b..75cf4c32e 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -46,6 +46,7 @@ file-per-thread-logger = "0.1.2"
default = ["disas", "wasm"]
disas = ["capstone"]
wasm = ["wabt", "cranelift-wasm"]
+basic-blocks = ["cranelift-codegen/ba... | 1 | 1 | 0 |
17e45286480fcb78f1511fa43ce767f8a65333d8 | Dan Gohman | 2019-07-24T21:49:04 | Downgrade wabt from 0.8 to 0.7. (#219)
Even though this somehow passed on Travis on [the
PR](https://github.com/CraneStation/wasmtime/pull/209), it fails on
Travis on master, and I can reproduce the failure.
The failure is on spec_testsuite/names.wast:
```
$ RUST_BACKTRACE=1 target/debug/wast spec_testsuite/n... | diff --git a/Cargo.toml b/Cargo.toml
index 6f7156751..482d5e9dc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,7 +40,7 @@ faerie = "0.10.1"
target-lexicon = { version = "0.4.0", default-features = false }
pretty_env_logger = "0.3.0"
file-per-thread-logger = "0.1.1"
-wabt = "0.8"
+wabt = "0.7"
libc = "0.2.50"
errn... | 2 | 2 | 2 |
86ae6e3df44be33a471a6b24893676b44026f16b | Jakub Konka | 2019-07-23T07:00:26 | Refactor hostcalls_impl in sys module | diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs
index a3942a7aa..5842ceeaf 100644
--- a/src/sys/unix/hostcalls_impl/fs.rs
+++ b/src/sys/unix/hostcalls_impl/fs.rs
@@ -2,7 +2,7 @@
#![allow(unused_unsafe)]
use super::fs_helpers::*;
use crate::ctx::WasiCtx;
-use crate::fdentry::{Descri... | 2 | 44 | 110 |
794841b366e31946160f940190b6fe9bf407d019 | Artur Jamro | 2019-07-23T21:53:48 | Properly initialize file_per_thread_logger for rayon thread pool (#211)
* Properly initialize file_per_thread_logger for rayon thread pool | diff --git a/Cargo.toml b/Cargo.toml
index ac8d6c915..6f7156751 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,6 +43,7 @@ file-per-thread-logger = "0.1.1"
wabt = "0.8"
libc = "0.2.50"
errno = "0.2.4"
+rayon = "1.1"
[workspace]
diff --git a/src/utils.rs b/src/utils.rs
new file mode 100644
index 000000000..b6804... | 6 | 47 | 5 |
1aff03a5b420a822e8080b97fa8e62b1cfbf8e52 | Stefan Junker | 2019-07-18T15:31:45 | dependencies: pin wasi-common to specific rev
This removes the reliance on having a correct version of wasi-common in
the cache by chance ;-) | diff --git a/Cargo.toml b/Cargo.toml
index 576055acb..ac8d6c915 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,7 +32,7 @@ wasmtime-obj = { path = "wasmtime-obj" }
wasmtime-wast = { path = "wasmtime-wast" }
wasmtime-wasi = { path = "wasmtime-wasi" }
wasmtime-wasi-c = { path = "wasmtime-wasi-c", optional = true }
-wa... | 2 | 2 | 2 |
70c91f913d453c40aaa3dd5bde33a03c2e7df277 | Sean Stangl | 2019-07-22T21:02:40 | Produce more helpful basic block errors in cranelift-frontend.
Previously, the error just notified that there was a failure.
The new-style error says specifically in which ebb, on which instruction. | diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs
index 2ea5242d2..a68f13145 100644
--- a/cranelift/frontend/src/frontend.rs
+++ b/cranelift/frontend/src/frontend.rs
@@ -479,15 +479,18 @@ impl<'a> FunctionBuilder<'a> {
"all blocks should be filled before dropping a Functi... | 1 | 11 | 8 |
926e4c8bf82d14ac6485e3084b3f705bd326dd58 | Sean Stangl | 2019-07-22T20:49:39 | Generate basic blocks for Wasm `br_if`. | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index 6365ed7e6..2fe9a7843 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -1244,6 +1244,14 @@ fn translate_br_if(
let val = state.pop1();
let (br_destination, inputs) =... | 1 | 8 | 0 |
ffa9d315e6efb957901a4ae120d36a47a5cf90ee | Sean Stangl | 2019-07-22T18:50:22 | Add some comments to the frontend code. | diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs
index 29dd5ca1d..2ea5242d2 100644
--- a/cranelift/frontend/src/frontend.rs
+++ b/cranelift/frontend/src/frontend.rs
@@ -41,8 +41,17 @@ pub struct FunctionBuilder<'a> {
#[derive(Clone, Default)]
struct EbbData {
- filled: bool,
+... | 2 | 12 | 2 |
5d1deecbb4b7f4c22d4ad304a1bc65db62cf11be | Sean Stangl | 2019-07-19T16:38:56 | Give cranelift-wasm a "basic-blocks" feature. | diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml
index 2f1555c31..5e9c14433 100644
--- a/cranelift/wasm/Cargo.toml
+++ b/cranelift/wasm/Cargo.toml
@@ -31,6 +31,9 @@ std = ["cranelift-codegen/std", "cranelift-frontend/std", "wasmparser/std"]
core = ["hashmap_core", "cranelift-codegen/core", "cranelift... | 1 | 3 | 0 |
c4704ba573d18e5c8d3c63b65172a512100f7ad4 | Jakub Konka | 2019-07-21T21:09:18 | Fix error mapping for fd_seek on Windows | diff --git a/src/sys/windows/host_impl.rs b/src/sys/windows/host_impl.rs
index b591774c6..d8627b815 100644
--- a/src/sys/windows/host_impl.rs
+++ b/src/sys/windows/host_impl.rs
@@ -18,7 +18,7 @@ pub fn errno_from_win(error: winx::winerror::WinError) -> host::__wasi_errno_t {
ERROR_INVALID_HANDLE | ERROR_INVALI... | 1 | 1 | 1 |
919262b5b97874fc407462e32b685dc4c7352e31 | Jakub Konka | 2019-07-21T08:01:17 | Make fd_tell host independent | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index b75617b18..949c18315 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -340,15 +340,19 @@ pub fn fd_tell(
trace!("fd_tell(fd={:?}, newoffset={:#x?})", fd, newoffset);
let fd = dec_fd(fd);
- let fd = match wasi_ctx
+ let mut fd = ... | 3 | 7 | 15 |
5bbf59e1c51fbae917755868c39d2839825d064f | Jakub Konka | 2019-07-21T07:57:48 | Make fd_seek host independent | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index 1ad510b3f..b75617b18 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -7,7 +7,7 @@ use crate::sys::{errno_from_host, host_impl, hostcalls_impl};
use crate::{host, wasm32};
use log::trace;
use std::convert::identity;
-use std::io::{self, Read, ... | 3 | 13 | 31 |
0d571a4e6dccb2be0b9f9a118b9eaf065e67a6ee | Jakub Konka | 2019-07-20T08:38:21 | Move extracting fds from context into hostcalls | diff --git a/src/fdentry.rs b/src/fdentry.rs
index 68e7ea6c4..976d8a6bb 100644
--- a/src/fdentry.rs
+++ b/src/fdentry.rs
@@ -14,6 +14,13 @@ pub enum Descriptor {
}
impl Descriptor {
+ pub fn as_file(&self) -> Result<&fs::File> {
+ match self {
+ Descriptor::File(f) => Ok(f),
+ _ => E... | 6 | 300 | 360 |
14391bab5628a787585b2e7e0ef980ecd9e01ec7 | Jakub Konka | 2019-07-18T23:06:58 | Clean up more hostcalls | diff --git a/src/hostcalls/fs.rs b/src/hostcalls/fs.rs
index f113123d2..6a8bc1ca9 100644
--- a/src/hostcalls/fs.rs
+++ b/src/hostcalls/fs.rs
@@ -308,7 +308,12 @@ pub fn fd_seek(
Ok(fe) => fe,
Err(e) => return return_enc_errno(e),
};
- let host_newoffset = match hostcalls_impl::fd_seek(fe, offs... | 3 | 49 | 37 |
310ecb5b5bf3d7eb809c104ee5718842806cd33c | Jakub Konka | 2019-07-18T17:32:07 | Create helper Result<T> type | diff --git a/src/ctx.rs b/src/ctx.rs
index 6c8d9cbbb..01063857e 100644
--- a/src/ctx.rs
+++ b/src/ctx.rs
@@ -1,6 +1,6 @@
-use super::fdentry::FdEntry;
-use super::host;
-use super::sys::{dev_null, errno_from_host};
+use crate::fdentry::FdEntry;
+use crate::sys::{dev_null, errno_from_host};
+use crate::{host, Result};
... | 19 | 173 | 255 |
7a72ffefdd521c761b88b165d85881428d0393da | Artur Jamro | 2019-07-19T22:53:12 | Add serde derive to PrimaryMap | diff --git a/cranelift/entity/Cargo.toml b/cranelift/entity/Cargo.toml
index 0e390b9b7..d25353da9 100644
--- a/cranelift/entity/Cargo.toml
+++ b/cranelift/entity/Cargo.toml
@@ -11,10 +11,14 @@ readme = "README.md"
keywords = ["entity", "set", "map"]
edition = "2018"
+[dependencies]
+serde = { version = "1.0.94", fe... | 2 | 7 | 0 |
a2647878977726935c3d04c05cabad9607ec7606 | Marcin Mielniczuk | 2019-07-19T13:27:38 | Enable __chkstk only on MSVC compilers, use ___chkstk on MinGW | diff --git a/wasmtime-jit/src/link.rs b/wasmtime-jit/src/link.rs
index 788522c01..dab57be99 100644
--- a/wasmtime-jit/src/link.rs
+++ b/wasmtime-jit/src/link.rs
@@ -333,7 +333,13 @@ fn relocate(
NearestF64 => wasmtime_f64_nearest as usize,
#[cfg(not(target_os = "windows... | 1 | 16 | 2 |
08aa61f066fce2850b53a413dd197231e1d117a0 | Jakub Konka | 2019-07-19T18:09:27 | WASI paths as &str and String (#37)
* Check if RawString operates on valid encodings
* Use &str and String for WASI paths | diff --git a/src/host.rs b/src/host.rs
index ec040df28..fac60f1cd 100644
--- a/src/host.rs
+++ b/src/host.rs
@@ -4,7 +4,7 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
-use std::{io, slice};
+use std::{io, slice, str};
pub type void = ::std::os::raw::c_void;
@@ -495,6 +495,22 @@ pub unsafe fn io... | 8 | 207 | 294 |
19e4f42d50e3dc6980983ea1c34b3b5274d57ae5 | Dan Gohman | 2019-07-19T18:01:27 | Fix compilation of wasmtime-environ from within wasmtime-jit. (#201)
* Fix compilation of wasmtime-environ from within wasmtime-jit.
Enable wasmtime-environ/std when wasmtime-jit's std feature is enabled.
Fixes #200.
* Fix wasmtime-debug build too. | diff --git a/wasmtime-debug/Cargo.toml b/wasmtime-debug/Cargo.toml
index a5521c8e9..c3f696729 100644
--- a/wasmtime-debug/Cargo.toml
+++ b/wasmtime-debug/Cargo.toml
@@ -25,7 +25,7 @@ failure_derive = { version = "0.1.3", default-features = false }
[features]
default = ["std"]
-std = ["cranelift-codegen/std", "crane... | 2 | 2 | 2 |
8efaeec502678898210b519411afe7bf4fdc328c | Sean Stangl | 2019-07-19T15:52:05 | Verify that FunctionBuilder blocks are basic blocks in debug mode (#857)
To use, enable the "basic-blocks" feature on cranelift-frontend. | diff --git a/cranelift/codegen/src/ir/function.rs b/cranelift/codegen/src/ir/function.rs
index c856f70e5..adbb24427 100644
--- a/cranelift/codegen/src/ir/function.rs
+++ b/cranelift/codegen/src/ir/function.rs
@@ -19,6 +19,9 @@ use crate::value_label::ValueLabelsRanges;
use crate::write::write_function;
use core::fmt;... | 4 | 45 | 36 |
c80508c8a9aba77a490f4f513c6ec32520acc904 | Artur Jamro | 2019-07-18T21:40:03 | Make the calls to wasm's memory.grow and memory.size indirect (#194)
* Make the calls to wasm's memory.grow and memory.size indirect | diff --git a/wasmtime-environ/src/func_environ.rs b/wasmtime-environ/src/func_environ.rs
index 7fd3a9b12..591e07c40 100644
--- a/wasmtime-environ/src/func_environ.rs
+++ b/wasmtime-environ/src/func_environ.rs
@@ -8,9 +8,7 @@ use cranelift_codegen::ir;
use cranelift_codegen::ir::condcodes::*;
use cranelift_codegen::ir... | 5 | 187 | 104 |
9b97ddf29a10ec9c73d5e2afe5013eaff9e4b5ba | Sean Stangl | 2019-07-18T15:59:28 | Enable basic block checks through a feature. (#856)
This allows prefixing BB-specific code with "#[cfg(feature = "basic-blocks")]",
which avoids having to reference an environment variable across the codebase.
The easiest way to enable the feature locally is to add the arguments
'features = ["basic-blocks"]' to t... | diff --git a/cranelift/codegen/Cargo.toml b/cranelift/codegen/Cargo.toml
index aa579c4cd..a9834dac0 100644
--- a/cranelift/codegen/Cargo.toml
+++ b/cranelift/codegen/Cargo.toml
@@ -62,6 +62,9 @@ riscv = []
# For dependent crates that want to serialize some parts of cranelift
enable-serde = ["serde"]
+# Temporary fe... | 2 | 6 | 8 |
d27d190b7490933bf834c12a2d26f03679604fbd | Yury Delendik | 2019-07-12T20:00:01 | reverse dependency
https://github.com/CraneStation/wasmtime/pull/186#discussion_r302780035 | diff --git a/wasmtime-debug/Cargo.toml b/wasmtime-debug/Cargo.toml
index 0b4cc292d..a5521c8e9 100644
--- a/wasmtime-debug/Cargo.toml
+++ b/wasmtime-debug/Cargo.toml
@@ -18,6 +18,7 @@ cranelift-codegen = "0.33.0"
cranelift-entity = "0.33.0"
cranelift-wasm = "0.33.0"
faerie = "0.10.1"
+wasmtime-environ = { path = "../... | 9 | 46 | 38 |
748abd97d62114d80d5a180f393e6af05b24de4a | Yury Delendik | 2019-07-12T19:45:04 | https://github.com/CraneStation/wasmtime/pull/186#discussion_r302781231 | diff --git a/wasmtime-debug/src/transform.rs b/wasmtime-debug/src/transform.rs
index 022f9281c..cf10a9405 100644
--- a/wasmtime-debug/src/transform.rs
+++ b/wasmtime-debug/src/transform.rs
@@ -76,7 +76,7 @@ where
debug_addr_base: DebugAddrBase<R::Offset>,
rnglists: &'a RangeLists<R>,
loclists: &'a Locati... | 1 | 2 | 2 |
5362bd1a232a5ccd6bc70cfee4ae58287b04f5df | Yury Delendik | 2019-07-05T19:37:22 | Improve performance of BTreeMap::search().last() | diff --git a/wasmtime-debug/src/address_transform.rs b/wasmtime-debug/src/address_transform.rs
index 663b7549f..ef4cd4fa7 100644
--- a/wasmtime-debug/src/address_transform.rs
+++ b/wasmtime-debug/src/address_transform.rs
@@ -4,7 +4,7 @@ use cranelift_entity::{EntityRef, PrimaryMap};
use cranelift_wasm::DefinedFuncInde... | 2 | 33 | 13 |
cafe821f248122ee971c95ba6e32dab829a25418 | Yury Delendik | 2019-07-05T14:29:15 | Properly collect/identify used DWARF entries. | diff --git a/wasmtime-debug/src/address_transform.rs b/wasmtime-debug/src/address_transform.rs
index 427b1f682..663b7549f 100644
--- a/wasmtime-debug/src/address_transform.rs
+++ b/wasmtime-debug/src/address_transform.rs
@@ -83,6 +83,10 @@ impl AddressTransform {
}
}
+ pub fn can_translate_address(&s... | 4 | 264 | 23 |
efe9dd7b86026c63ca1fda601f1e8c068d214731 | Yury Delendik | 2019-07-03T21:58:35 | Update gimli version; refactor debug data structures | diff --git a/wasmtime-debug/Cargo.toml b/wasmtime-debug/Cargo.toml
index 659334746..0b4cc292d 100644
--- a/wasmtime-debug/Cargo.toml
+++ b/wasmtime-debug/Cargo.toml
@@ -12,13 +12,12 @@ readme = "README.md"
edition = "2018"
[dependencies]
-gimli = "0.17.0"
+gimli = "0.19.0"
wasmparser = { version = "0.32.1" }
cran... | 9 | 120 | 192 |
356e6dafe22e622dcd5145e9ee86dd568444d7f3 | Andrew Brown | 2019-07-11T17:29:39 | Allow CDSL instructions to bind to vector types | diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs
index 11d7114b5..00a166fb6 100644
--- a/cranelift/codegen/meta/src/cdsl/instructions.rs
+++ b/cranelift/codegen/meta/src/cdsl/instructions.rs
@@ -12,7 +12,7 @@ use crate::cdsl::formats::{
};
use crate::cdsl:... | 1 | 31 | 3 |
c39a9b4e3f3c3192c70ab5f3434ed85c3df06c2e | Andrew Brown | 2019-07-11T17:26:08 | Assign vector arguments to FPR registers | diff --git a/cranelift/codegen/src/isa/x86/abi.rs b/cranelift/codegen/src/isa/x86/abi.rs
index 549ec644c..85e9c18ff 100644
--- a/cranelift/codegen/src/isa/x86/abi.rs
+++ b/cranelift/codegen/src/isa/x86/abi.rs
@@ -1,6 +1,8 @@
//! x86 ABI implementation.
+use super::super::settings as shared_settings;
use super::regi... | 2 | 62 | 10 |
659725b46500f2111aeb8ae1956e4f5e3b4112af | Andrew Brown | 2019-07-11T17:21:12 | Add x86-specific SIMD settings, e.g. SSE2
Also, ties SIMD ISA predicates to the shared enable_simd setting | diff --git a/cranelift/codegen/meta/src/isa/x86/settings.rs b/cranelift/codegen/meta/src/isa/x86/settings.rs
index 15f17621c..bc8c81f48 100644
--- a/cranelift/codegen/meta/src/isa/x86/settings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/settings.rs
@@ -3,6 +3,9 @@ use crate::cdsl::settings::{PredicateNode, SettingGroup... | 1 | 15 | 4 |
8378297f33d4ae6d261bb696f1c12313b1bb2d86 | Andrew Brown | 2019-07-11T17:09:58 | Prepare legalizer codegen for SIMD features
Contains fixes from @bnjbvr to codegen as a part of https://github.com/bnjbvr/cranelift/pull/2; necessary for SIMD features to work | diff --git a/cranelift/codegen/meta/src/gen_legalizer.rs b/cranelift/codegen/meta/src/gen_legalizer.rs
index b09a06a33..b823bb559 100644
--- a/cranelift/codegen/meta/src/gen_legalizer.rs
+++ b/cranelift/codegen/meta/src/gen_legalizer.rs
@@ -51,7 +51,7 @@ fn unwrap_inst(
fmtln!(
fmt,
- "let ({}, p... | 1 | 36 | 21 |
1531fabf4315e787946d7aa447e8e9ea50749ee8 | Jakub Konka | 2019-07-15T21:17:50 | Update wasmtime-wasi to new wasi-common interface | diff --git a/wasmtime-wasi/src/instantiate.rs b/wasmtime-wasi/src/instantiate.rs
index ec189642d..2d6ff67b8 100644
--- a/wasmtime-wasi/src/instantiate.rs
+++ b/wasmtime-wasi/src/instantiate.rs
@@ -101,12 +101,13 @@ pub fn instantiate_wasi(
let data_initializers = Vec::new();
let signatures = PrimaryMap::new()... | 1 | 7 | 6 |
a64ada7e303dfc6bf8460d3f040df86b450616ba | Artur Jamro | 2019-07-12T22:42:00 | Do not import libc on windows (#848)
* Do not import libc on windows | diff --git a/cranelift/simplejit/src/backend.rs b/cranelift/simplejit/src/backend.rs
index c182ada67..16612d0a3 100644
--- a/cranelift/simplejit/src/backend.rs
+++ b/cranelift/simplejit/src/backend.rs
@@ -8,6 +8,7 @@ use cranelift_module::{
Backend, DataContext, DataDescription, Init, Linkage, ModuleNamespace, Mod... | 2 | 2 | 1 |
9e884b4433d142718b78b79660fdc1267d682d77 | Artur Jamro | 2019-07-12T22:30:50 | Add support for some serde serialization (#847)
* Add support for some serde serialization | diff --git a/cranelift/codegen/Cargo.toml b/cranelift/codegen/Cargo.toml
index 5cde9d47d..e088e6f84 100644
--- a/cranelift/codegen/Cargo.toml
+++ b/cranelift/codegen/Cargo.toml
@@ -20,6 +20,7 @@ failure_derive = { version = "0.1.1", default-features = false }
hashmap_core = { version = "0.1.9", optional = true }
targ... | 8 | 33 | 0 |
f856b124fd0d98ddf81ae6feb9bbed25da072bd1 | Mark McCaskey | 2019-07-12T09:21:00 | Use Default trait for Position and DisplayFunctionAnnotations (#843) | diff --git a/cranelift/codegen/src/ir/function.rs b/cranelift/codegen/src/ir/function.rs
index f4b62dc59..c856f70e5 100644
--- a/cranelift/codegen/src/ir/function.rs
+++ b/cranelift/codegen/src/ir/function.rs
@@ -222,6 +222,7 @@ impl Function {
}
/// Additional annotations for function display.
+#[derive(Default)]
... | 2 | 2 | 17 |
6a19866da23f7dd05d9dc019bbace638d837af20 | Benson Chau | 2019-05-23T20:14:45 | issue #772: added an memmap replacement to support selinux | diff --git a/cranelift/simplejit/Cargo.toml b/cranelift/simplejit/Cargo.toml
index a8edcd332..b584cc490 100644
--- a/cranelift/simplejit/Cargo.toml
+++ b/cranelift/simplejit/Cargo.toml
@@ -17,10 +17,15 @@ region = "2.0.0"
libc = { version = "0.2.42" }
errno = "0.2.4"
target-lexicon = { version = "0.4.0" }
+memmap = ... | 2 | 80 | 11 |
7cc6a1d9f33b5490a95e35f4d9fef016905369a1 | Jef | 2019-07-11T11:10:47 | Fix stack depth in rem, update cranelift-codegen | diff --git a/Cargo.toml b/Cargo.toml
index 9fea0c387..9c7ebe476 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,7 +19,7 @@ itertools = "0.8"
capstone = "0.5.0"
failure = "0.1.3"
failure_derive = "0.1.3"
-cranelift-codegen = "0.30"
+cranelift-codegen = "0.33"
multi_mut = "0.1"
either = "1.5"
wabt = "0.7"
diff --gi... | 2 | 13 | 1 |
bfc146868841b3aae8c5c737fda19d61b31c6230 | Benjamin Bouvier | 2019-07-10T15:19:57 | [docs] Don't accidentally generate doc tests; | diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs
index ed8f0b957..8aaa71947 100644
--- a/cranelift/codegen/meta/src/shared/instructions.rs
+++ b/cranelift/codegen/meta/src/shared/instructions.rs
@@ -216,14 +216,18 @@ pub fn define(
Compare scala... | 1 | 24 | 18 |
062ed8f6ea330775fd9c66fbf1154f0de48b587d | Benjamin Bouvier | 2019-07-10T15:03:55 | [docs] Remove rst annotations in instructions doc comments; | diff --git a/cranelift/codegen/meta/src/isa/x86/instructions.rs b/cranelift/codegen/meta/src/isa/x86/instructions.rs
index 2f365165b..9aa7363e1 100644
--- a/cranelift/codegen/meta/src/isa/x86/instructions.rs
+++ b/cranelift/codegen/meta/src/isa/x86/instructions.rs
@@ -151,7 +151,7 @@ pub fn define(
Floating po... | 2 | 57 | 61 |
d5b80b2803a8df6fd8e4174598b080e0f1fbeea2 | Benjamin Bouvier | 2019-07-10T10:01:37 | [meta] Generate full documentation for instructions in InstBuilder; | diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs
index aa3262c66..11d7114b5 100644
--- a/cranelift/codegen/meta/src/cdsl/instructions.rs
+++ b/cranelift/codegen/meta/src/cdsl/instructions.rs
@@ -97,7 +97,7 @@ pub struct InstructionContent {
pub opcode_n... | 2 | 2 | 12 |
84a6795873fdb4187ff48a777309f6eb7ee711cd | Benjamin Bouvier | 2019-07-08T11:00:02 | [meta] Riscv: add back stacknull encodings for copy_nop; | diff --git a/cranelift/codegen/meta/src/isa/riscv/encodings.rs b/cranelift/codegen/meta/src/isa/riscv/encodings.rs
index 3f1c199bc..88a62ac74 100644
--- a/cranelift/codegen/meta/src/isa/riscv/encodings.rs
+++ b/cranelift/codegen/meta/src/isa/riscv/encodings.rs
@@ -7,7 +7,8 @@ use crate::cdsl::recipes::{EncodingRecipeNu... | 2 | 24 | 1 |
41a3d88b37b727b1a78e684576934a1d61ceaf94 | Benjamin Bouvier | 2019-07-09T15:59:36 | Fixes #837: Use an u64 comparison instead of a usize comparison in meta; | diff --git a/cranelift/codegen/meta/src/gen_encodings.rs b/cranelift/codegen/meta/src/gen_encodings.rs
index aff6d32d5..14ea39267 100644
--- a/cranelift/codegen/meta/src/gen_encodings.rs
+++ b/cranelift/codegen/meta/src/gen_encodings.rs
@@ -46,6 +46,7 @@
use std::collections::btree_map;
use std::collections::{BTree... | 1 | 2 | 1 |
237d48477ab8b0e666dace3081e16b335aa00219 | Sean Stangl | 2019-07-09T16:01:29 | Fix an outdated comment referring to `FunctionLayout` instead of `Layout` | diff --git a/cranelift/codegen/src/ir/dfg.rs b/cranelift/codegen/src/ir/dfg.rs
index d26abaa3e..1467ab23b 100644
--- a/cranelift/codegen/src/ir/dfg.rs
+++ b/cranelift/codegen/src/ir/dfg.rs
@@ -25,7 +25,7 @@ use std::collections::HashMap;
/// instruction results or EBB parameters.
///
/// The layout of EBBs in the fu... | 1 | 1 | 1 |
f11fc34066ec5c17f32c19ec84ed212d7aab4cee | Benjamin Bouvier | 2019-07-09T09:29:48 | Build fix: add crates::predicates to the Riscv enc_tables file; | diff --git a/cranelift/codegen/src/isa/riscv/enc_tables.rs b/cranelift/codegen/src/isa/riscv/enc_tables.rs
index 19488003a..76184ad72 100644
--- a/cranelift/codegen/src/isa/riscv/enc_tables.rs
+++ b/cranelift/codegen/src/isa/riscv/enc_tables.rs
@@ -6,6 +6,7 @@ use crate::isa;
use crate::isa::constraints::*;
use crate... | 1 | 1 | 0 |
56f6908020ae5ceba3ff5ec4e4d4cd887606bdba | Benjamin Bouvier | 2019-07-04T15:48:55 | [meta] Legalization: Don't generate a variable for replaced instructions;
(since they're unused) | diff --git a/cranelift/codegen/meta/src/gen_legalizer.rs b/cranelift/codegen/meta/src/gen_legalizer.rs
index 554ae13e2..b09a06a33 100644
--- a/cranelift/codegen/meta/src/gen_legalizer.rs
+++ b/cranelift/codegen/meta/src/gen_legalizer.rs
@@ -290,8 +290,7 @@ fn emit_dst_inst(def: &Def, def_pool: &DefPool, var_pool: &VarP... | 1 | 1 | 2 |
cd4c28ad97c0998fd50fce35f3c2a4845c731ec7 | Benjamin Bouvier | 2019-07-04T15:45:20 | [meta] Legalization: Unprefix some module paths to make code neater; | diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs
index 9b6a354ca..aa3262c66 100644
--- a/cranelift/codegen/meta/src/cdsl/instructions.rs
+++ b/cranelift/codegen/meta/src/cdsl/instructions.rs
@@ -654,36 +654,32 @@ impl FormatPredicateNode {
fn rust_predi... | 4 | 33 | 36 |
15d8b95e7295549ebfd6ee9ef49c354d6ccbc238 | Benjamin Bouvier | 2019-07-04T15:36:49 | [meta] Legalization: remove spurious Option wrapping for type variables; | diff --git a/cranelift/codegen/meta/src/gen_legalizer.rs b/cranelift/codegen/meta/src/gen_legalizer.rs
index f9cf8ba1a..f56da5fe5 100644
--- a/cranelift/codegen/meta/src/gen_legalizer.rs
+++ b/cranelift/codegen/meta/src/gen_legalizer.rs
@@ -187,15 +187,11 @@ fn build_derived_expr(tv: &TypeVar) -> String {
Some... | 1 | 4 | 19 |
f1222dce10bd605b092a23d0a913a2e83e8e76ec | Benjamin Bouvier | 2019-07-02T16:30:04 | [meta] Legalization: emit typeof type variables for results in all the cases; | diff --git a/cranelift/codegen/meta/src/gen_legalizer.rs b/cranelift/codegen/meta/src/gen_legalizer.rs
index 545928db1..f9cf8ba1a 100644
--- a/cranelift/codegen/meta/src/gen_legalizer.rs
+++ b/cranelift/codegen/meta/src/gen_legalizer.rs
@@ -134,6 +134,21 @@ fn unwrap_inst(
.get(var_pool.get(def.def... | 1 | 15 | 0 |
3545363006249b8748ae6177d9f200372d04325f | Benjamin Bouvier | 2019-07-02T16:29:41 | Add ir::Types::lane_of as an alias of lane_type to be used in typevar constraints; | diff --git a/cranelift/codegen/src/ir/instructions.rs b/cranelift/codegen/src/ir/instructions.rs
index 8278888d7..a94b0f3a6 100644
--- a/cranelift/codegen/src/ir/instructions.rs
+++ b/cranelift/codegen/src/ir/instructions.rs
@@ -498,7 +498,7 @@ enum OperandConstraint {
/// This operand is the same type as the cont... | 2 | 10 | 3 |
4fef03f5f8e1d24528c4f22931f2f0f2219878ec | Benjamin Bouvier | 2019-07-02T16:24:50 | [meta] Legalization: remove spurious assert;
This assert was added when porting legalization from Python to Rust and
doesn't hold when we have derived type variables. | diff --git a/cranelift/codegen/meta/src/cdsl/type_inference.rs b/cranelift/codegen/meta/src/cdsl/type_inference.rs
index e3a1e9bb0..101cfa410 100644
--- a/cranelift/codegen/meta/src/cdsl/type_inference.rs
+++ b/cranelift/codegen/meta/src/cdsl/type_inference.rs
@@ -364,7 +364,6 @@ impl TypeEnvironment {
/... | 1 | 0 | 1 |
5672cd651ccbcae3755f37b567c42a97483296da | superriva | 2019-07-07T11:52:27 | Fix mem::uninitialized depricated since 1.38
Fix for `https://github.com/CraneStation/cranelift/issues/826`.
This fix will require 1.36 minimal version for all Cranelift. Right?
Update cranelift-simplejit/src/memory.rs
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
Update memory.rs | diff --git a/cranelift/simplejit/src/memory.rs b/cranelift/simplejit/src/memory.rs
index 6b0419331..0730e086e 100644
--- a/cranelift/simplejit/src/memory.rs
+++ b/cranelift/simplejit/src/memory.rs
@@ -28,10 +28,10 @@ impl PtrLen {
/// suitably sized and aligned for memory protection.
#[cfg(not(target_os = "wi... | 1 | 1 | 1 |
f53dc0b30964e4be73127273e96db33cf2840678 | Jef | 2019-07-08T11:52:10 | Fix problems found by fuzzing | diff --git a/src/backend.rs b/src/backend.rs
index 65f9f6946..838f6cc0d 100644
--- a/src/backend.rs
+++ b/src/backend.rs
@@ -346,7 +346,7 @@ impl Registers {
}
}
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq, Eq)]
pub struct BlockCallingConvention {
pub stack_depth: StackDepth,
pub argum... | 2 | 97 | 44 |
563525b090d2f8d5935374fab83bf0ecba7013c8 | Benjamin Bouvier | 2019-06-20T16:42:23 | [meta] Remove mentions to Python in comments of the non-meta crate; | diff --git a/cranelift/codegen/build.rs b/cranelift/codegen/build.rs
index d9d6f13fc..ef89d48ff 100644
--- a/cranelift/codegen/build.rs
+++ b/cranelift/codegen/build.rs
@@ -50,8 +50,7 @@ fn main() {
let crate_dir = cur_dir.as_path();
// Make sure we rebuild if this build script changes (will not happen with... | 17 | 39 | 40 |
88307f693a122249cdead70e9af2e67ded105d54 | Benjamin Bouvier | 2019-06-24T14:44:59 | [meta] Generate the encodings files; | diff --git a/cranelift/codegen/meta/src/gen_encodings.rs b/cranelift/codegen/meta/src/gen_encodings.rs
new file mode 100644
index 000000000..aff6d32d5
--- /dev/null
+++ b/cranelift/codegen/meta/src/gen_encodings.rs
@@ -0,0 +1,1071 @@
+//! Generate sources for instruction encoding.
+//!
+//! The tables and functions gen... | 4 | 1,081 | 0 |
f574ab870309f6bc2de0681dfb4cf6f69c5a06e6 | Benjamin Bouvier | 2019-06-24T14:45:43 | [meta] Generate the binemits files;
Co-authored-by: Benjamin Bouvier <public@benj.me>
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com> | diff --git a/cranelift/codegen/meta/src/gen_binemit.rs b/cranelift/codegen/meta/src/gen_binemit.rs
new file mode 100644
index 000000000..1950f59e9
--- /dev/null
+++ b/cranelift/codegen/meta/src/gen_binemit.rs
@@ -0,0 +1,224 @@
+//! Generate binary emission code for each ISA.
+
+use cranelift_entity::EntityRef;
+
+use c... | 2 | 234 | 0 |
ca277422bb68090f8ac9fc21aa9d00f3ae9177dd | Benjamin Bouvier | 2019-06-24T14:46:59 | [meta] Recipes and encodings descriptions for RiscV; | diff --git a/cranelift/codegen/meta/src/isa/riscv/encodings.rs b/cranelift/codegen/meta/src/isa/riscv/encodings.rs
new file mode 100644
index 000000000..3f1c199bc
--- /dev/null
+++ b/cranelift/codegen/meta/src/isa/riscv/encodings.rs
@@ -0,0 +1,383 @@
+use crate::cdsl::ast::{Apply, Expr, Literal, VarPool};
+use crate::c... | 3 | 662 | 5 |
21aaf0c89f7609d60feaaaa174c9af68ebd01d7d | Benjamin Bouvier | 2019-06-24T14:48:31 | [meta] Add cdsl facilities for encodings and recipes;
Co-authored-by: Benjamin Bouvier <public@benj.me>
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com> | diff --git a/cranelift/codegen/meta/src/cdsl/cpu_modes.rs b/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
index 30a7028cf..4b4406d2d 100644
--- a/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
+++ b/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
@@ -1,25 +1,34 @@
-use crate::cdsl::types::LaneType;
-use crate::cdsl::xform::{... | 13 | 608 | 28 |
4a6b88193e881e6e76c7e5201cec0e58e1fa57ac | Benjamin Bouvier | 2019-06-24T15:20:05 | [meta] Map global TransformGroup to local TransformGroup indices; | diff --git a/cranelift/codegen/meta/src/cdsl/cpu_modes.rs b/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
index 5e0e5b476..30a7028cf 100644
--- a/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
+++ b/cranelift/codegen/meta/src/cdsl/cpu_modes.rs
@@ -35,37 +35,6 @@ impl CpuMode {
.is_none());
}
- /// R... | 4 | 53 | 43 |
1e42aac41a08d9fc67db8f18af4411dff91830eb | Benjamin Bouvier | 2019-06-24T14:56:00 | [meta] Add new instruction predicates and the InstructionPredicateMap;
The latter helps deduplicating predicates during encodings and recipes
construction. | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 68d99a021..5e1c192f0 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -440,7 +440,7 @@ impl Apply {
format!("{}({})", self.inst.name, args)
}
- fn inst... | 3 | 349 | 20 |
89cd327c977f9b41e0652fe6553dc5e033d9ff60 | Salim Shaaban Salim | 2019-07-03T18:12:32 | Print correct version of bin tools (#183)
* Print correct version of bin tools
Not something important, but I use these tools for some testing and
they print wrong version with --version flag. | diff --git a/src/wasm2obj.rs b/src/wasm2obj.rs
index 8b7b6de97..4edb94982 100644
--- a/src/wasm2obj.rs
+++ b/src/wasm2obj.rs
@@ -86,10 +86,11 @@ fn read_wasm_file(path: PathBuf) -> Result<Vec<u8>, io::Error> {
}
fn main() {
+ let version = env!("CARGO_PKG_VERSION");
let args: Args = Docopt::new(USAGE)
... | 3 | 6 | 3 |
e34a4759cd3df5fd7472512eb5879de3f989785e | Benjamin Bouvier | 2019-06-21T10:17:05 | [meta] Fix typo in x86 setting name use_lzcnt; | diff --git a/cranelift/codegen/meta/src/isa/x86/settings.rs b/cranelift/codegen/meta/src/isa/x86/settings.rs
index 52486d7de..15f17621c 100644
--- a/cranelift/codegen/meta/src/isa/x86/settings.rs
+++ b/cranelift/codegen/meta/src/isa/x86/settings.rs
@@ -34,7 +34,7 @@ pub fn define(shared: &SettingGroup) -> SettingGroup ... | 1 | 1 | 1 |
ec5678ab7a41694457b7261e3859cbd924d5dd68 | Benjamin Bouvier | 2019-06-21T10:15:09 | [meta] Add the ability to bind any type to an instruction; | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index 6604a5e87..68d99a021 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -376,11 +376,17 @@ pub struct Apply {
impl Apply {
pub fn new(target: InstSpec, args: Vec<Ex... | 2 | 50 | 7 |
9dcc185264e7b15f042925c51fbf4841216f2d31 | Benjamin Bouvier | 2019-06-21T10:08:43 | [meta] Add a MapWithDefault trait;
This traits augments HashMap so they have a `get_or_default` method that
can be used to avoid boilerplate around usage of `entry.or_default`. | diff --git a/cranelift/codegen/meta/src/default_map.rs b/cranelift/codegen/meta/src/default_map.rs
new file mode 100644
index 000000000..da6d47143
--- /dev/null
+++ b/cranelift/codegen/meta/src/default_map.rs
@@ -0,0 +1,19 @@
+use std::collections::HashMap;
+use std::hash::Hash;
+
+pub trait MapWithDefault<K, V: Defaul... | 2 | 20 | 0 |
18fb87cd9c97d15eec26d42f646094f603e24975 | Benjamin Bouvier | 2019-05-29T15:20:34 | [meta] Refactor instruction predicates to distinguish format and type checks;
Also add the instruction format name in format predicates, since they're
going to be used when generating encodings. | diff --git a/cranelift/codegen/meta/src/cdsl/ast.rs b/cranelift/codegen/meta/src/cdsl/ast.rs
index f4ebea076..6604a5e87 100644
--- a/cranelift/codegen/meta/src/cdsl/ast.rs
+++ b/cranelift/codegen/meta/src/cdsl/ast.rs
@@ -449,6 +449,7 @@ impl Apply {
continue;
}
pred = pred.and... | 2 | 68 | 18 |
f1d1d1e960496befd5ea9dd0f727800a431f2ad7 | Benjamin Bouvier | 2019-06-06T14:33:18 | [meta] Uniquely number every instruction in the Rust crate; | diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs
index d57bcc254..4bcd6ea40 100644
--- a/cranelift/codegen/meta/src/cdsl/instructions.rs
+++ b/cranelift/codegen/meta/src/cdsl/instructions.rs
@@ -1,3 +1,10 @@
+use std::fmt;
+use std::ops;
+use std::rc::Rc;
+u... | 13 | 127 | 90 |
f6ac165ff67b594adab7c9d6c226a6dc82ca22b3 | Benjamin Bouvier | 2019-07-01T10:23:14 | [wasm] Don't panic when seeing unexpected types but properly fail instead; | diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs
index 839e178f7..6365ed7e6 100644
--- a/cranelift/wasm/src/code_translator.rs
+++ b/cranelift/wasm/src/code_translator.rs
@@ -135,7 +135,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
if let Ok(ty_cre)... | 3 | 40 | 22 |
460fdaa34d3de41c06715e1fb9337b679c36520d | Nicolas B. Pierron | 2019-06-26T12:34:27 | Add verification pass to migrate from EBB to BB. | diff --git a/cranelift/codegen/src/verifier/mod.rs b/cranelift/codegen/src/verifier/mod.rs
index 7e8d7909c..694e5e46d 100644
--- a/cranelift/codegen/src/verifier/mod.rs
+++ b/cranelift/codegen/src/verifier/mod.rs
@@ -267,6 +267,8 @@ struct Verifier<'a> {
expected_cfg: ControlFlowGraph,
expected_domtree: Domin... | 1 | 51 | 0 |
210e9593335a59d928655618ad0c2ea67c7ebf4b | Yury Delendik | 2019-07-02T16:54:11 | Allow jump tables in wasmtime. | diff --git a/wasmtime-environ/src/compilation.rs b/wasmtime-environ/src/compilation.rs
index c67a62687..1a130a518 100644
--- a/wasmtime-environ/src/compilation.rs
+++ b/wasmtime-environ/src/compilation.rs
@@ -9,7 +9,17 @@ use cranelift_wasm::{DefinedFuncIndex, FuncIndex, WasmError};
use std::ops::Range;
use std::vec:... | 7 | 103 | 29 |
fb9d6061e41209828f36787ac027b569179b6519 | Yury Delendik | 2019-07-01T21:17:20 | Update cranelift, faerie, target-lexicon and wasmparser deps | diff --git a/Cargo.toml b/Cargo.toml
index 2a17415ef..8d5f3f398 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,8 +22,8 @@ name = "wasm2obj"
path = "src/wasm2obj.rs"
[dependencies]
-cranelift-codegen = "0.30.0"
-cranelift-native = "0.30.0"
+cranelift-codegen = "0.32.0"
+cranelift-native = "0.32.0"
wasmtime-debug =... | 13 | 72 | 59 |
8b9c170a9163fa1aa47fcce6fe09dac0ca0b8a3c | Yury Delendik | 2019-07-02T20:58:41 | Update cranelift (v0.32) and wasmparser deps | diff --git a/Cargo.toml b/Cargo.toml
index 9fea0c387..321b81358 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,13 +13,13 @@ edition = "2018"
smallvec = "0.6"
dynasm = "0.3"
dynasmrt = "0.3"
-wasmparser = "0.29"
+wasmparser = "0.32"
memoffset = "0.2"
itertools = "0.8"
capstone = "0.5.0"
failure = "0.1.3"
failur... | 2 | 14 | 7 |
e3c021cc595a17032b888f37a7f3209874348111 | Dan Gohman | 2019-07-02T20:10:26 | Downgrade memoffset to 0.2.1.
Version 0.3.0 was yanked from crates.io. | diff --git a/wasmtime-runtime/Cargo.toml b/wasmtime-runtime/Cargo.toml
index 1d2ae3aaf..3b2ccc31a 100644
--- a/wasmtime-runtime/Cargo.toml
+++ b/wasmtime-runtime/Cargo.toml
@@ -20,7 +20,7 @@ region = "2.0.0"
lazy_static = "1.2.0"
libc = { version = "0.2.48", default-features = false }
errno = "0.2.4"
-memoffset = "0... | 1 | 1 | 1 |
b4280d6cd67c2ba09ef07ed23fd8f1e033764a79 | Jakub Konka | 2019-06-29T09:21:48 | Use ManuallyDrop instead of forget | diff --git a/src/sys/unix/fdentry.rs b/src/sys/unix/fdentry.rs
index a2237161a..2491b6ed2 100644
--- a/src/sys/unix/fdentry.rs
+++ b/src/sys/unix/fdentry.rs
@@ -79,10 +79,9 @@ pub unsafe fn determine_type_rights(
host::__wasi_errno_t,
> {
let (ty, rights_base, rights_inheriting) = {
- let file = File:... | 1 | 2 | 3 |
f163050c9a208dc80bc564f3aa662ed317a1d4f2 | Dan Gohman | 2019-07-02T18:54:31 | Update to wasmparser 0.32.1. | diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml
index 600980375..7903cdd30 100644
--- a/cranelift/wasm/Cargo.toml
+++ b/cranelift/wasm/Cargo.toml
@@ -11,7 +11,7 @@ keywords = ["webassembly", "wasm"]
edition = "2018"
[dependencies]
-wasmparser = { version = "0.31.0", default-features = false }
+wa... | 2 | 4 | 2 |
ccd77c1d0b19dd9459900119d83b6804c7baa08c | Dan Gohman | 2019-06-27T23:20:14 | Update to wasmparser 0.31.0 and goblin 0.0.22. | diff --git a/cranelift/faerie/Cargo.toml b/cranelift/faerie/Cargo.toml
index 71a517988..1154d422d 100644
--- a/cranelift/faerie/Cargo.toml
+++ b/cranelift/faerie/Cargo.toml
@@ -13,7 +13,7 @@ edition = "2018"
cranelift-codegen = { path = "../cranelift-codegen", version = "0.30.0" }
cranelift-module = { path = "../cran... | 4 | 26 | 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.