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 |
|---|---|---|---|---|---|---|---|
75e4ff62a056139fbeb4d5c6320458f5c50ffbb0 | Dan Gohman | 2018-09-28T00:30:16 | Update to filecheck 0.4.0. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index 39e3ef182..e97cbbc00 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -26,7 +26,7 @@ cranelift-module = { path = "lib/module", version = "0.22.0" }
cranelift-faerie = { path = "lib/faerie", version = "0.22.0" }
cranelift-simplejit = { path ... | 2 | 2 | 2 |
2c53e2102c43a7b9b1369df4e387c1549000ead1 | bjorn3 | 2018-09-25T14:34:32 | Add a sparse Switch usable instead of JumpTable to cranelift-frontend (#517)
* Add a sparse Switch usable instead of JumpTable to cranelift-frontend (fixes #438) | diff --git a/lib/frontend/Cargo.toml b/lib/frontend/Cargo.toml
index d8b156cb8..6c813b396 100644
--- a/lib/frontend/Cargo.toml
+++ b/lib/frontend/Cargo.toml
@@ -11,6 +11,7 @@ readme = "README.md"
[dependencies]
cranelift-codegen = { path = "../codegen", version = "0.22.0", default-features = false }
+log = { versio... | 3 | 355 | 0 |
81d6731e7676465d0a0867d13b0f27876dc65d18 | Bruce Mitchener | 2018-09-23T07:27:00 | clippy: Remove explicit return statements. | diff --git a/lib/codegen/src/ir/dfg.rs b/lib/codegen/src/ir/dfg.rs
index 9a6a22e9f..bb8ddbe9c 100644
--- a/lib/codegen/src/ir/dfg.rs
+++ b/lib/codegen/src/ir/dfg.rs
@@ -165,19 +165,18 @@ fn valid_valuedata(data: &ValueData) -> bool {
return false;
}
}
- return true;
+ true
}
impl<'a... | 1 | 3 | 4 |
c8a65a721c881a3e164c41be759fc302343bd307 | Bruce Mitchener | 2018-09-23T07:26:28 | clippy: Remove useless format call. | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index 9d87983b4..b38d4c587 100755
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -264,7 +264,7 @@ fn main() {
result
}
- _ => Err(format!("Invalid subcommand.")),
+ _ => Err("Invalid subcomma... | 1 | 1 | 1 |
e07e159bdab6fd8f081c5eb7beb8f761bb267f08 | Bruce Mitchener | 2018-09-23T07:21:28 | filetests: run_passes can take &str, not &String. | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index d1ad95ed3..9d87983b4 100755
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -217,7 +217,7 @@ fn main() {
rest_cmd.is_present("verbose"),
&get_vec(rest_cmd.values_of("pass")),
... | 2 | 2 | 2 |
2a7cc7e644d87b4e802e1c4828f1a746789bf9d9 | Sergey Pepyakin | 2018-09-23T14:48:17 | Bump wabt version to 0.6. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index 59e940b5d..39e3ef182 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -31,7 +31,7 @@ clap = "2.32.0"
serde = "1.0.8"
term = "0.5.1"
capstone = { version = "0.5.0", optional = true }
-wabt = { version = "0.5", optional = true }
+wabt = { ve... | 2 | 2 | 2 |
09f2b78b14cb9bcf0f0a536edcf2bb0d5a492338 | Aaron Power | 2018-09-09T09:28:05 | Added FunctionBuilder::{call_memcpy, call_memset, call_memmove} | diff --git a/lib/codegen/src/ir/libcall.rs b/lib/codegen/src/ir/libcall.rs
index 95c8f7f06..6e749c72d 100644
--- a/lib/codegen/src/ir/libcall.rs
+++ b/lib/codegen/src/ir/libcall.rs
@@ -38,6 +38,12 @@ pub enum LibCall {
NearestF32,
/// nearest.f64
NearestF64,
+ /// libc.memcpy
+ Memcpy,
+ /// lib... | 5 | 153 | 3 |
3e996c198f443f9ef2aff29d22b487b4bf404d11 | Dan Gohman | 2018-09-23T05:22:54 | Remove the scroll 0.9.0 dependency.
Scroll 0.9.2 is now published which fixes the issue in 0.9.1, so
we can drop our fixed dependency on 0.9.0. | diff --git a/lib/faerie/Cargo.toml b/lib/faerie/Cargo.toml
index 9d57533e2..b19c5c177 100644
--- a/lib/faerie/Cargo.toml
+++ b/lib/faerie/Cargo.toml
@@ -16,12 +16,6 @@ goblin = "0.0.17"
failure = "0.1.2"
target-lexicon = "0.0.3"
-# Temporarily depend on 0.9.0 since 0.9.1 uses i128 which isn't
-# supported in Rust 1... | 1 | 0 | 6 |
c187e7a345ba7ce310081f7fd0337f159d6786e0 | Aaron Power | 2018-09-23T01:41:11 | Replaced LibCall's fmt::Display implementation | diff --git a/lib/codegen/src/ir/libcall.rs b/lib/codegen/src/ir/libcall.rs
index 8bf8cc08c..95c8f7f06 100644
--- a/lib/codegen/src/ir/libcall.rs
+++ b/lib/codegen/src/ir/libcall.rs
@@ -40,21 +40,9 @@ pub enum LibCall {
NearestF64,
}
-const NAME: [&str; 9] = [
- "Probestack",
- "CeilF32",
- "CeilF64",
-... | 1 | 1 | 13 |
15a237520ee2bf6cd4c4781105bcdff3cebc3a3e | Dan Gohman | 2018-09-23T03:59:54 | Depend on scroll 0.9.0 to fix Rust 1.25 compatibility. | diff --git a/lib/faerie/Cargo.toml b/lib/faerie/Cargo.toml
index b19c5c177..9d57533e2 100644
--- a/lib/faerie/Cargo.toml
+++ b/lib/faerie/Cargo.toml
@@ -16,6 +16,12 @@ goblin = "0.0.17"
failure = "0.1.2"
target-lexicon = "0.0.3"
+# Temporarily depend on 0.9.0 since 0.9.1 uses i128 which isn't
+# supported in Rust 1... | 1 | 6 | 0 |
10edc1b6abbb56fb335adca3253e40c18ecbb3c7 | Dan Gohman | 2018-09-22T04:29:14 | Format src/wasm.rs with newer rustfmt. | diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs
index f12509652..11b859d52 100644
--- a/cranelift/src/wasm.rs
+++ b/cranelift/src/wasm.rs
@@ -2,7 +2,10 @@
//! crate.
//!
//! Reads Wasm binary files, translates the functions' code to Cranelift IR.
-#![cfg_attr(feature = "cargo-clippy", allow(too_many_argum... | 1 | 4 | 1 |
cb6b1a76dbe99e992ea34977f788ccc107835959 | Dan Gohman | 2018-09-22T04:14:06 | Add a `use std::vec::Vec;` to fix the no_std build. | diff --git a/lib/module/src/module.rs b/lib/module/src/module.rs
index bcfa7491b..626c34e4f 100644
--- a/lib/module/src/module.rs
+++ b/lib/module/src/module.rs
@@ -11,6 +11,7 @@ use data_context::DataContext;
use std::borrow::ToOwned;
use std::collections::HashMap;
use std::string::String;
+use std::vec::Vec;
use ... | 1 | 1 | 0 |
46beddecde1a735f4d56726a09bf5b93872fa886 | Dan Gohman | 2018-09-22T03:57:40 | Update to capstone 0.5.0. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index 4ae89e3e3..448856644 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -30,7 +30,7 @@ filecheck = "0.3.0"
clap = "2.32.0"
serde = "1.0.8"
term = "0.5.1"
-capstone = { version = "0.4", optional = true }
+capstone = { version = "0.5.0", optio... | 1 | 1 | 1 |
8d6a8e9069060b724748c8427efc6c693915a1f3 | Dan Gohman | 2018-09-22T03:13:33 | Remove `Module`'s `finalize_function` and `finalize_data`. (#519)
* Remove `Module`'s `finalize_function` and `finalize_data`.
Remove the ability to finalize individiual functions and data objects,
and instead just provide a way to finalize everything that's been
defined but not yet finalized. This allows SimpleJ... | diff --git a/lib/module/src/module.rs b/lib/module/src/module.rs
index bdeb90c62..bcfa7491b 100644
--- a/lib/module/src/module.rs
+++ b/lib/module/src/module.rs
@@ -154,8 +154,6 @@ where
decl: FunctionDeclaration,
/// The compiled artifact, once it's available.
compiled: Option<B::CompiledFunction>,
- ... | 3 | 44 | 97 |
c840fb2f088231b3eb2d80414cad0a6b4e936582 | Dan Gohman | 2018-09-20T03:07:30 | Move tests/moduletests.rs into lib/simplejit/tests.
These tests depend on cranelift-simplejit, which is higher-level than the
other crates they depend on, so lib/simplejit is a good place for them. | diff --git a/lib/simplejit/Cargo.toml b/lib/simplejit/Cargo.toml
index 341e27e75..d1df47822 100644
--- a/lib/simplejit/Cargo.toml
+++ b/lib/simplejit/Cargo.toml
@@ -23,6 +23,8 @@ winapi = { version = "0.3", features = ["winbase", "memoryapi"] }
[dev-dependencies]
cranelift = { path = "../umbrella", version = "0.21.... | 2 | 2 | 0 |
6e9c33a1efc27dec44ee274b51534abc4f25ab38 | Dan Gohman | 2018-09-20T01:44:23 | Mark JIT memory as readable in addition to executable.
While we don't currently need this, we will for jump tables and constant
pools. | diff --git a/lib/simplejit/src/backend.rs b/lib/simplejit/src/backend.rs
index 09a12dd7a..3fc46cd99 100644
--- a/lib/simplejit/src/backend.rs
+++ b/lib/simplejit/src/backend.rs
@@ -406,7 +406,7 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
fn publish(&mut self) {
// Now that we're done patch... | 2 | 5 | 5 |
d514cec06590d4969d5bc1f11d89428dfa62eb53 | Dan Gohman | 2018-09-20T01:18:40 | Avoid unneeded '&'s in let patterns. | diff --git a/lib/bforest/src/pool.rs b/lib/bforest/src/pool.rs
index ceab96d38..9330ee550 100644
--- a/lib/bforest/src/pool.rs
+++ b/lib/bforest/src/pool.rs
@@ -90,7 +90,7 @@ impl<F: Forest> NodePool<F> {
// The root node can't be an inner node with just a single sub-tree. It should have been
// pru... | 2 | 3 | 3 |
53a0c6c67f4bb70f9e61e55e93afac448130ca7f | Dan Gohman | 2018-09-13T19:59:25 | Update to the rustfmt in rust 1.29, which is now stable. | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index f608e78e1..d1ad95ed3 100755
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -1,10 +1,19 @@
#![deny(trivial_numeric_casts)]
-#![warn(unused_import_braces, unstable_features, unused_extern_crates)]
+#![warn(
+ unused_impor... | 30 | 305 | 135 |
f23ea042428f881f06acdab51cb563271b3f23b3 | Dan Gohman | 2018-09-12T23:59:03 | Fix a panic when splitting a critical edge on a jump_table with nulls.
This fixes #505. | diff --git a/lib/frontend/src/ssa.rs b/lib/frontend/src/ssa.rs
index f41e6a32c..3474b5104 100644
--- a/lib/frontend/src/ssa.rs
+++ b/lib/frontend/src/ssa.rs
@@ -657,7 +657,7 @@ impl SSABuilder {
self.blocks[middle_block].add_predecessor(jump_inst_block, jump_inst);
self.mark_ebb_header... | 1 | 2 | 1 |
f6519c87a4438cce05ff70fd0f4ffb13c44da192 | Dan Gohman | 2018-09-12T23:58:36 | Improve the assertion failure message for sealing a block twice. | diff --git a/lib/frontend/src/ssa.rs b/lib/frontend/src/ssa.rs
index b15eea172..f41e6a32c 100644
--- a/lib/frontend/src/ssa.rs
+++ b/lib/frontend/src/ssa.rs
@@ -442,14 +442,18 @@ impl SSABuilder {
fn seal_one_ebb_header_block(&mut self, ebb: Ebb, func: &mut Function) {
let block = self.header_block(ebb);
... | 1 | 8 | 4 |
f2177deec1d41f4a0f22d2acc9de10dbe661c258 | Dan Gohman | 2018-09-12T23:07:43 | Improve assertion messages in Module finalization.
When an object being finalized references an object declared as needing
a definition, the definition needs to be available. Add asserts to catch
this specific case. | diff --git a/lib/module/src/module.rs b/lib/module/src/module.rs
index 909fa36c6..0f04440f2 100644
--- a/lib/module/src/module.rs
+++ b/lib/module/src/module.rs
@@ -263,7 +263,13 @@ where
name: &ir::ExternalName,
) -> (Option<&B::CompiledFunction>, &str, &ir::Signature) {
let info = self.contents... | 1 | 12 | 0 |
9e65b694bd23ad5c0426afba14b804df1204d96c | Dan Gohman | 2018-09-12T23:06:03 | Minor code simplification; avoid an unneeded `match`. | diff --git a/lib/simplejit/src/backend.rs b/lib/simplejit/src/backend.rs
index ea9dd3611..09a12dd7a 100644
--- a/lib/simplejit/src/backend.rs
+++ b/lib/simplejit/src/backend.rs
@@ -350,53 +350,50 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
) -> Self::FinalizedData {
use std::ptr::write_una... | 1 | 42 | 45 |
d0f703a6ff369661f4a94b99376d43c2f846726f | Dan Gohman | 2018-09-12T21:38:15 | Fix the type of table bounds in DummyEnvironment.
Also, fix the wasm testsuite harness to run the verifier with a
TargetIsa so that it catches problems like this. | diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs
index 229e2a727..d1e6a8052 100644
--- a/lib/wasm/src/environ/dummy.rs
+++ b/lib/wasm/src/environ/dummy.rs
@@ -206,7 +206,7 @@ impl<'dummy_environment> FuncEnvironment for DummyFuncEnvironment<'dummy_environ
let bound_gv = func.create_gl... | 2 | 8 | 3 |
ea85018ccfe21a26fe0420b4021ca96e70341837 | Nick Fitzgerald | 2018-09-08T23:13:00 | clif-util: fix `clif-util pass` subcommand arguments
Because of the way that the `pass` subcommand orders its arguments, the
positional "single-file" input cannot be optional with a default value, because
it is followed by required positional arguments. If it were optional, that would
result in argument ambiguity wher... | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index 925f42f3f..f608e78e1 100755
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -55,9 +55,9 @@ fn add_input_file_arg<'a>() -> clap::Arg<'a, 'a> {
fn add_single_input_file_arg<'a>() -> clap::Arg<'a, 'a> {
Arg::with_name("... | 1 | 2 | 2 |
f012bd85007a112cab361857650467be34e56d26 | Joshua Warner | 2018-09-07T04:30:40 | Demonstrate arguments, returns, and adds in example | diff --git a/lib/simplejit/examples/simplejit-minimal.rs b/lib/simplejit/examples/simplejit-minimal.rs
index 054204882..e39336376 100644
--- a/lib/simplejit/examples/simplejit-minimal.rs
+++ b/lib/simplejit/examples/simplejit-minimal.rs
@@ -11,24 +11,40 @@ fn main() {
let mut module: Module<SimpleJITBackend> = Mod... | 1 | 32 | 8 |
e051e9f4c874ea84a74ddf42046ea11b2f53bf1c | Joshua Warner | 2018-09-07T04:30:23 | Fix std feature propagation | diff --git a/lib/simplejit/Cargo.toml b/lib/simplejit/Cargo.toml
index ebbe58558..bfbbfe0f7 100644
--- a/lib/simplejit/Cargo.toml
+++ b/lib/simplejit/Cargo.toml
@@ -22,7 +22,7 @@ target-lexicon = { version = "0.0.3", default-features = false }
winapi = { version = "0.3", features = ["winbase", "memoryapi"] }
[dev-d... | 1 | 1 | 1 |
90756a8a01523afcea0e67b2efe417388fdc0386 | Nick Fitzgerald | 2018-09-06T23:46:49 | clif-util: Default to reading input files from stdin
Fixes #495 | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
old mode 100644
new mode 100755
index c54c5b2d2..925f42f3f
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -47,17 +47,17 @@ pub type CommandResult = Result<(), String>;
fn add_input_file_arg<'a>() -> clap::Arg<'a, 'a> {
Ar... | 3 | 21 | 9 |
8fb681b86df5a17a3f4717c11b25a8195d26d06d | Nick Fitzgerald | 2018-09-06T23:44:58 | clif-util wasm: don't panic when terminal colors are unsupported
This breaks inside of Emacs' `M-x shell` and `compilation-mode`. | diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs
index f446bb6cc..f12509652 100644
--- a/cranelift/src/wasm.rs
+++ b/cranelift/src/wasm.rs
@@ -72,13 +72,13 @@ fn handle_module(
fisa: FlagsOrIsa,
) -> Result<(), String> {
let mut terminal = term::stdout().unwrap();
- terminal.fg(term::color::YELL... | 1 | 11 | 11 |
112e4a60836772e75be097adfcb2a569f8780aa4 | Dan Gohman | 2018-09-05T04:57:32 | Add a `use std::vec::Vec;` to fix the no_std build. | diff --git a/lib/codegen/src/write.rs b/lib/codegen/src/write.rs
index 2e9faf6b4..0c3b7cbae 100644
--- a/lib/codegen/src/write.rs
+++ b/lib/codegen/src/write.rs
@@ -10,6 +10,7 @@ use isa::{RegInfo, TargetIsa};
use packed_option::ReservedValue;
use std::fmt::{self, Write};
use std::string::String;
+use std::vec::Vec;... | 1 | 1 | 0 |
59b83912ba66575057e2a6bdbf2199410010f1bb | Caroline Cullen | 2018-09-04T23:31:24 | Adds pass command to clif-util. (#487)
* Adds pass command to clif-util. | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index 10875b927..c54c5b2d2 100644
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -1,5 +1,5 @@
-#![deny(trivial_numeric_casts, unused_extern_crates, unstable_features)]
-#![warn(unused_import_braces)]
+#![deny(trivial_numeric_cast... | 8 | 206 | 29 |
7e571f4a4949fd2def8fed92008a83d6bf9953db | Kaz Wesley | 2018-09-04T22:02:46 | Print value aliases at referrent definition (#492)
* Print value aliases at referrent definition
Closes #488. | diff --git a/lib/codegen/src/ir/dfg.rs b/lib/codegen/src/ir/dfg.rs
index 9db736400..6d799a43c 100644
--- a/lib/codegen/src/ir/dfg.rs
+++ b/lib/codegen/src/ir/dfg.rs
@@ -1,6 +1,6 @@
//! Data flow graph tracking Instructions, Values, and EBBs.
-use entity::{EntityMap, PrimaryMap};
+use entity::{self, EntityMap, Primar... | 4 | 131 | 24 |
300a76469f0b0c832813357eabbe45821c65a94b | Benjamin Bouvier | 2018-08-30T16:01:07 | wasm: Clear tables too in TranslationState::clear(); (#491) | diff --git a/lib/wasm/src/state.rs b/lib/wasm/src/state.rs
index 88374be17..2d6d3610a 100644
--- a/lib/wasm/src/state.rs
+++ b/lib/wasm/src/state.rs
@@ -175,6 +175,7 @@ impl TranslationState {
self.reachable = true;
self.globals.clear();
self.heaps.clear();
+ self.tables.clear();
... | 1 | 1 | 0 |
ecae909b9e63416958448f3887886721c9f54a11 | Dan Gohman | 2018-08-29T04:03:07 | Add the "wasm" category in Cargo.toml files. | diff --git a/Cargo.toml b/Cargo.toml
index b376ed93f..ef5c09ade 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ version = "0.0.0"
description = "Command-line interface for the wasmtime crate"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://cranelift.readthedocs.io/"
+categories = ["wasm"... | 4 | 4 | 0 |
fb7153ccf4108341aae3c9eb61bbc30eb555aa1e | Dan Gohman | 2018-08-29T03:56:58 | Update to cranelift 0.20.0.
The biggest change is the split from FunctionIndex to
DefinedFuncIndex to FuncIndex. Take better advantage of this by
converting several Vecs to PrimaryMaps.
Also, table_addr can now handle indices of the table index type,
so we don't need to explicitly uextend them anymore. | diff --git a/Cargo.toml b/Cargo.toml
index 99a5df273..b376ed93f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,15 +17,15 @@ name = "wasm2obj"
path = "src/wasm2obj.rs"
[dependencies]
-cranelift-codegen = "0.18.1"
-cranelift-native = "0.18.1"
+cranelift-codegen = "0.20.0"
+cranelift-native = "0.20.0"
wasmtime-envir... | 14 | 109 | 78 |
67b7a8594a0605178d2c2f82242f3255b61862b9 | Dan Gohman | 2018-08-29T03:51:15 | Implementing Deref in PrimaryMap turns out to be error-prone, so remove it.
One of the big advantages of PrimaryMap is that it protects against
using the wrong indices via a distinct index type. A Deref trait that
returns a plain slice would accept other indices. Add a comment
explaining this. | diff --git a/lib/entity/src/primary.rs b/lib/entity/src/primary.rs
index d07137318..0902621c2 100644
--- a/lib/entity/src/primary.rs
+++ b/lib/entity/src/primary.rs
@@ -1,6 +1,6 @@
//! Densely numbered entity references as mapping keys.
use std::marker::PhantomData;
-use std::ops::{Deref, DerefMut, Index, IndexMut};
... | 1 | 6 | 30 |
c836a96e30442a9a19f314ddcdd1353a4ede5e49 | Dan Gohman | 2018-08-29T03:19:09 | Bump cranelift-entity version to 0.20.1. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index 1bd2dd33e..f154579a9 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -15,7 +15,7 @@ path = "src/clif-util.rs"
[dependencies]
cfg-if = "0.1"
cranelift-codegen = { path = "lib/codegen", version = "0.20.0" }
-cranelift-entity = { path = "lib... | 6 | 6 | 6 |
1affd5eae710589273c2b51d033a5cb025230b72 | Dan Gohman | 2018-08-29T03:19:01 | Add Deref and DerefMut implementations for PrimaryMap. | diff --git a/lib/entity/src/primary.rs b/lib/entity/src/primary.rs
index 07e00cb88..d07137318 100644
--- a/lib/entity/src/primary.rs
+++ b/lib/entity/src/primary.rs
@@ -1,6 +1,6 @@
//! Densely numbered entity references as mapping keys.
use std::marker::PhantomData;
-use std::ops::{Index, IndexMut};
+use std::ops::{D... | 1 | 29 | 1 |
f834afb5f6c4d59a97482cf424bfabf7eee4db9b | Dan Gohman | 2018-08-29T00:18:36 | Bump cranelift-wasm version to 0.20.1. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index 86111cf8f..1bd2dd33e 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -19,7 +19,7 @@ cranelift-entity = { path = "lib/entity", version = "0.20.0" }
cranelift-reader = { path = "lib/reader", version = "0.20.0" }
cranelift-frontend = { path =... | 2 | 2 | 2 |
fcd859a45e6c7bf782db0f7416f6d5c29eeff96d | Dan Gohman | 2018-08-29T00:05:26 | Make FuncIndex and DefinedFuncIndex implement the Debug trait. | diff --git a/lib/wasm/src/translation_utils.rs b/lib/wasm/src/translation_utils.rs
index 752256f3f..5d4053972 100644
--- a/lib/wasm/src/translation_utils.rs
+++ b/lib/wasm/src/translation_utils.rs
@@ -4,12 +4,12 @@ use std::u32;
use wasmparser;
/// Index type of a function (imported or defined) inside the WebAssemb... | 1 | 2 | 2 |
c5f0cd7d5e350afe4dd2d18e8efc009ad7f1eae3 | Dan Gohman | 2018-08-28T23:51:05 | Enforce the wasm memory size limit on heaps with no maximum. | diff --git a/lib/execute/src/memory.rs b/lib/execute/src/memory.rs
index 10069d95b..4830b9386 100644
--- a/lib/execute/src/memory.rs
+++ b/lib/execute/src/memory.rs
@@ -57,6 +57,13 @@ impl LinearMemory {
if new_pages > val {
return None;
}
+ } else {
+ // Was... | 1 | 7 | 0 |
f2ad79963c2dfba4f931bb231897133adcb8fcf1 | Dan Gohman | 2018-08-28T23:49:05 | Add a comment about "dynamic" heaps. | diff --git a/lib/execute/src/memory.rs b/lib/execute/src/memory.rs
index fdd566c8d..10069d95b 100644
--- a/lib/execute/src/memory.rs
+++ b/lib/execute/src/memory.rs
@@ -63,6 +63,8 @@ impl LinearMemory {
let new_bytes = (new_pages * PAGE_SIZE) as usize;
if self.mmap.len() < new_bytes {
+ /... | 1 | 2 | 0 |
d3fcb596b3b2d09b2e19b2a4ea5f94d0629251c1 | Dan Gohman | 2018-08-11T15:05:35 | Support multiple memory spaces. | diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs
index 8616468c8..08583fb78 100644
--- a/lib/environ/src/environ.rs
+++ b/lib/environ/src/environ.rs
@@ -411,12 +411,12 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
_heap: ir::Heap,
val: ir::Valu... | 2 | 16 | 12 |
c12ae182c31251b0422ff0a34039568d75a8ba52 | Dan Gohman | 2018-08-11T14:12:44 | Enforce the linear-memory maximum size.
Also, support linear memories with no maximum, and dynamic remapping. | diff --git a/lib/execute/src/memory.rs b/lib/execute/src/memory.rs
index faa87ce7a..fdd566c8d 100644
--- a/lib/execute/src/memory.rs
+++ b/lib/execute/src/memory.rs
@@ -11,21 +11,21 @@ const MAX_PAGES: u32 = 65536;
pub struct LinearMemory {
mmap: memmap::MmapMut,
current: u32,
- maximum: u32,
+ maximum... | 1 | 23 | 9 |
0842825c385a4cf27bb4e1a3aa3f59ab86678d1a | Dan Gohman | 2018-08-28T23:30:51 | Minor code simplification. | diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs
index 767ae2c9d..e0c972c27 100644
--- a/lib/wasm/src/environ/dummy.rs
+++ b/lib/wasm/src/environ/dummy.rs
@@ -16,7 +16,6 @@ use translation_utils::{
DefinedFuncIndex, FuncIndex, Global, GlobalIndex, Memory, MemoryIndex, SignatureIndex, Tabl... | 1 | 1 | 3 |
bdd1949b34b853ca15d86087b260e7ad25a2f493 | Dan Gohman | 2018-08-28T21:34:11 | Don't pass Copy objects by reference. | diff --git a/lib/reader/src/parser.rs b/lib/reader/src/parser.rs
index 3f607f1d1..ee0472821 100644
--- a/lib/reader/src/parser.rs
+++ b/lib/reader/src/parser.rs
@@ -206,7 +206,7 @@ impl<'a> Context<'a> {
}
// Resolve a reference to a table.
- fn check_table(&self, table: Table, loc: &Location) -> ParseRe... | 2 | 5 | 5 |
9ada394d1184dcc2837451d56d3691f5129dc8e7 | Dan Gohman | 2018-08-28T22:27:52 | [SimpleJIT] When finalizing multiple functions, make them all executable at the end. (#474)
Add `publish()` function to cranelift-module's `Backend` trait, which
allows `finalize_all()` to defer making memory executable until it
has finished all of the patching it needs to do. | diff --git a/lib/faerie/src/backend.rs b/lib/faerie/src/backend.rs
index 0d27ed490..395a5c376 100644
--- a/lib/faerie/src/backend.rs
+++ b/lib/faerie/src/backend.rs
@@ -281,6 +281,10 @@ impl Backend for FaerieBackend {
// Nothing to do.
}
+ fn publish(&mut self) {
+ // Nothing to do.
+ }
+
... | 4 | 23 | 4 |
00ddf3a7a660ebf1905f5995e7832515f1f6223d | Dan Gohman | 2018-08-28T20:23:55 | Update to serde_derive 1.0.75. | diff --git a/lib/serde/Cargo.toml b/lib/serde/Cargo.toml
index 0ed69ebad..d4e66b286 100644
--- a/lib/serde/Cargo.toml
+++ b/lib/serde/Cargo.toml
@@ -16,8 +16,8 @@ path = "src/clif-json.rs"
[dependencies]
clap = "2.32.0"
serde = "1.0.8"
-serde_derive = "1.0.8"
-serde_json = "1.0"
+serde_derive = "1.0.75"
+serde_json ... | 1 | 2 | 2 |
ba8dd836fffd7101edac54b4c63d0229a19a39d3 | Dan Gohman | 2018-08-28T20:23:37 | Update to wabt 0.5.0. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index 93f35f0c6..e132bf3e0 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -31,7 +31,7 @@ clap = "2.32.0"
serde = "1.0.8"
term = "0.5.1"
capstone = { version = "0.4", optional = true }
-wabt = { version = "0.4", optional = true }
+wabt = { vers... | 2 | 2 | 2 |
6af407144c6441720b2953d080455e565ee81b0e | Dan Gohman | 2018-08-28T19:36:21 | Remove `Signature`'s `argument_bytes` field.
It's not currently used. If we do need such information, it would be
better to compute it on demand. | diff --git a/cranelift/tests/moduletests.rs b/cranelift/tests/moduletests.rs
index c2312fe4f..a4aea4b38 100644
--- a/cranelift/tests/moduletests.rs
+++ b/cranelift/tests/moduletests.rs
@@ -19,7 +19,6 @@ fn error_on_incompatible_sig_in_declare_function() {
params: vec![AbiParam::new(types::I64)],
retur... | 5 | 1 | 48 |
e60477092a26a2f5986fd26cf2754363417479ca | Dan Gohman | 2018-08-28T19:31:38 | Add a `make_signature` function for making callable signatures.
The `Module` can create signatures with the appropriate calling
convention. | diff --git a/lib/module/src/module.rs b/lib/module/src/module.rs
index 185057b94..cc89ad68c 100644
--- a/lib/module/src/module.rs
+++ b/lib/module/src/module.rs
@@ -339,7 +339,7 @@ where
ctx
}
- /// Create a new `Context` initialized for use with this `Module`.
+ /// Clear the given `Context` and ... | 1 | 16 | 1 |
8e74a4f8fcbf9a3c31d842f5056ee6a3232bb386 | Grégoire Geis | 2018-08-27T16:38:44 | Pretty printing preamble errors. (#472)
* Pretty printing preamble errors. | diff --git a/lib/codegen/src/print_errors.rs b/lib/codegen/src/print_errors.rs
index 472f8ab00..6e14182b1 100644
--- a/lib/codegen/src/print_errors.rs
+++ b/lib/codegen/src/print_errors.rs
@@ -1,9 +1,9 @@
//! Utility routines for pretty-printing error messages.
use ir;
-use ir::entities::Inst;
+use ir::entities::{A... | 2 | 108 | 86 |
2c9b7fd73a80500d5875b33ca5848699f2121f5a | Dan Gohman | 2018-08-20T23:30:30 | Add "no-std" category to crates supporting no-std.
And add "wasm" category to cranelift-wasm. | diff --git a/lib/bforest/Cargo.toml b/lib/bforest/Cargo.toml
index ab244abc8..72f146adb 100644
--- a/lib/bforest/Cargo.toml
+++ b/lib/bforest/Cargo.toml
@@ -6,6 +6,7 @@ description = "A forest of B+-trees"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://cranelift.readthedocs.io/"
repository = "ht... | 10 | 10 | 0 |
18f781e2ab53cc80183f5ce70964f35a70d9ee36 | Dan Gohman | 2018-08-20T23:27:45 | Update to faerie 0.5.0. | diff --git a/lib/faerie/Cargo.toml b/lib/faerie/Cargo.toml
index 3df9d2d84..320a8fae6 100644
--- a/lib/faerie/Cargo.toml
+++ b/lib/faerie/Cargo.toml
@@ -11,9 +11,9 @@ readme = "README.md"
[dependencies]
cranelift-codegen = { path = "../codegen", version = "0.19.0" }
cranelift-module = { path = "../module", version =... | 2 | 4 | 4 |
0f93ef5cee35d3fb20550fe554aa24fd04fb861a | Caroline Cullen | 2018-08-22T18:25:55 | Changing from docopt to clap for the clif-util #434 (#463)
* Changing from docopt to clap for the clif-util
* Updates to cargo file.
* Remove filecheck subcommand. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index f27fe9c2e..93f35f0c6 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -27,9 +27,8 @@ cranelift-faerie = { path = "lib/faerie", version = "0.19.0" }
cranelift-simplejit = { path = "lib/simplejit", version = "0.19.0" }
cranelift = { path = "l... | 3 | 180 | 182 |
77eb38c41fe5f3fa14f85ed5d682187c08066be8 | Dan Gohman | 2018-08-17T01:31:05 | [Module] Remove DataDescription's writable field.
It was redundant, as data object declarations also have a writable
field, so just use that, avoiding the need for users to declare the
same thing twice.
Fixes #456. | diff --git a/lib/faerie/src/backend.rs b/lib/faerie/src/backend.rs
index 4f30406a0..b1d5368ba 100644
--- a/lib/faerie/src/backend.rs
+++ b/lib/faerie/src/backend.rs
@@ -193,11 +193,11 @@ impl Backend for FaerieBackend {
fn define_data(
&mut self,
name: &str,
+ _writable: bool,
dat... | 6 | 16 | 35 |
30d09cf6b06cc8de9e4e37b4cd07699a78187902 | ms2300 | 2018-08-17T17:13:06 | Fixing a couple clippy warnings : #392 | diff --git a/lib/filetests/src/test_verifier.rs b/lib/filetests/src/test_verifier.rs
index 9c356d673..0f5291c70 100644
--- a/lib/filetests/src/test_verifier.rs
+++ b/lib/filetests/src/test_verifier.rs
@@ -51,10 +51,10 @@ impl SubTest for TestVerifier {
}
match verify_function(func, context.flags_or_... | 4 | 15 | 16 |
37272f5ceba5305a1070485a829ab4b560516741 | Dan Gohman | 2018-08-17T19:13:34 | Removed "Variable" parametricity for SSABuilder and related code too. | diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs
index 31b27b4f8..0a6732a89 100644
--- a/lib/frontend/src/frontend.rs
+++ b/lib/frontend/src/frontend.rs
@@ -23,7 +23,7 @@ use variable::Variable;
/// implement `EntityRef`. For frontends that don't have an obvious type to
/// use here, `variable... | 2 | 20 | 28 |
ad170c7412759a6e2c5a9e7cd473887539ad5586 | Dan Gohman | 2018-08-17T19:04:01 | Update to log 0.4.4. | diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml
index 59f9cf173..b8333e0bf 100644
--- a/lib/codegen/Cargo.toml
+++ b/lib/codegen/Cargo.toml
@@ -17,7 +17,7 @@ failure = { version = "0.1.1", default-features = false, features = ["derive"] }
failure_derive = { version = "0.1.1", default-features = false }
h... | 5 | 6 | 6 |
ae1a17f6b3775c6fdbc8c68be91638976193fc6f | Dan Gohman | 2018-08-17T01:14:58 | [SimpleJIT] Fix allocation of readonly memory.
Fixes #457. | diff --git a/lib/simplejit/src/backend.rs b/lib/simplejit/src/backend.rs
index c867c0d82..043e765be 100644
--- a/lib/simplejit/src/backend.rs
+++ b/lib/simplejit/src/backend.rs
@@ -207,7 +207,7 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
let size = init.size();
let storage = match writ... | 1 | 1 | 1 |
e2badb0ad63ad7a358f2dc35c3218b69b5118732 | Grégoire Geis | 2018-08-16T18:34:52 | Improvements to error reporting (#470)
* Fixed error reporting.
* Fixed compile time error when wasm feature is disabled.
* Fixed valid instructions not being printed in print_function_error.
* Fixed errors print_function_error not writing valid instructions after end.
* Made multiple checks non-fatal.
... | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index 890bf95be..5b8eb2f3c 100644
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -21,12 +21,12 @@ extern crate serde_derive;
#[cfg(feature = "disas")]
extern crate capstone;
extern crate pretty_env_logger;
-extern crate term;
... | 3 | 104 | 52 |
304134d351d6f539ec2a73b982840436cea993ee | Dan Gohman | 2018-08-14T23:47:45 | Update a testcase for API changes. | diff --git a/cranelift/tests/moduletests.rs b/cranelift/tests/moduletests.rs
index 1f4c9d204..c2312fe4f 100644
--- a/cranelift/tests/moduletests.rs
+++ b/cranelift/tests/moduletests.rs
@@ -47,7 +47,7 @@ fn define_simple_function(module: &mut Module<SimpleJITBackend>) -> FuncId {
ctx.func = Function::with_name_sign... | 1 | 1 | 1 |
5f679a73108ccfa89e349ba81ce19847348d05ac | Caroline Cullen | 2018-08-14T22:18:10 | Change command line parsing to clap in serde util #434 (#435)
* Change command line parsing to clap in serde util #434 | diff --git a/lib/serde/Cargo.toml b/lib/serde/Cargo.toml
index ecbdd781e..b1224c9a1 100644
--- a/lib/serde/Cargo.toml
+++ b/lib/serde/Cargo.toml
@@ -13,7 +13,7 @@ name = "clif-json"
path = "src/clif-json.rs"
[dependencies]
-docopt = "1"
+clap = "2.32.0"
serde = "1.0.8"
serde_derive = "1.0.8"
serde_json = "1.0"
d... | 2 | 47 | 61 |
ce7b72743c3d275d73e783fa2af5cff88c4d201d | Denis Merigoux | 2018-08-14T12:51:06 | Updated doc now that Variable is now longer a type parameter | diff --git a/lib/frontend/src/lib.rs b/lib/frontend/src/lib.rs
index f6fbf6fec..07a79f435 100644
--- a/lib/frontend/src/lib.rs
+++ b/lib/frontend/src/lib.rs
@@ -10,8 +10,8 @@
//!
//! The most interesting feature of this API is that it provides a single way to deal with all your
//! variable problems. Indeed, the [`F... | 1 | 9 | 13 |
bed8e33c9d435d33e4258f42de493e360685e48a | Denis Merigoux | 2018-08-14T12:37:19 | Removed "Variable" parametricity for FunctionBuilder as discussed in PR https://github.com/CraneStation/cranelift/pull/437 | diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs
index 5888828ba..31b27b4f8 100644
--- a/lib/frontend/src/frontend.rs
+++ b/lib/frontend/src/frontend.rs
@@ -1,6 +1,6 @@
//! A frontend for building Cranelift IR from other languages.
use cranelift_codegen::cursor::{Cursor, FuncCursor};
-use cran... | 4 | 34 | 72 |
b7d2df9307bb404b5548e8d72ae549a0e867ba10 | Denis Merigoux | 2018-08-06T09:06:42 | Rewrote doc with @sunfishcode's comments in mind | diff --git a/lib/frontend/src/lib.rs b/lib/frontend/src/lib.rs
index ed0b21a30..969ed227c 100644
--- a/lib/frontend/src/lib.rs
+++ b/lib/frontend/src/lib.rs
@@ -6,35 +6,38 @@
//! To get started, create an [`FunctionBuilderContext`](struct.FunctionBuilderContext.html) and
//! pass it as an argument to a [`FunctionBuil... | 1 | 20 | 17 |
73511435d018a40e464b55e000a77297018b5dcc | Denis Merigoux | 2018-08-02T08:51:20 | Better explanation for how to use FunctionBuilder to deal with variable translation | diff --git a/lib/frontend/src/lib.rs b/lib/frontend/src/lib.rs
index 6830d2385..ed0b21a30 100644
--- a/lib/frontend/src/lib.rs
+++ b/lib/frontend/src/lib.rs
@@ -1,12 +1,43 @@
//! Cranelift IR builder library.
//!
//! Provides a straightforward way to create a Cranelift IR function and fill it with instructions
-//! ... | 1 | 33 | 2 |
932b4ef9f37bb31dc7617104a5e358da9e42210c | Dan Gohman | 2018-08-14T19:48:47 | Fix a few declarations for the `no_std` build. | diff --git a/lib/codegen/src/print_errors.rs b/lib/codegen/src/print_errors.rs
index 03ba2457a..3d012ad8f 100644
--- a/lib/codegen/src/print_errors.rs
+++ b/lib/codegen/src/print_errors.rs
@@ -9,6 +9,7 @@ use std::boxed::Box;
use std::fmt;
use std::fmt::Write;
use std::string::{String, ToString};
+use std::vec::Vec;... | 1 | 1 | 0 |
3f0103f936a2d349b8f5f62df2a310e7079f2476 | bjorn3 | 2018-08-14T15:10:49 | Prevent finalize being called more than once per func/data (fixes #407) | diff --git a/cranelift/tests/moduletests.rs b/cranelift/tests/moduletests.rs
index 89a04e2cd..1f4c9d204 100644
--- a/cranelift/tests/moduletests.rs
+++ b/cranelift/tests/moduletests.rs
@@ -1,9 +1,14 @@
extern crate cranelift_codegen;
+extern crate cranelift_entity;
+extern crate cranelift_frontend;
extern crate crane... | 2 | 62 | 0 |
4769e674688662237249c5e32852c36f48bcff96 | Dan Gohman | 2018-08-13T19:52:30 | Fix a few declarations for the `no_std` build. | diff --git a/lib/codegen/src/lib.rs b/lib/codegen/src/lib.rs
index 2d740668f..5ba44b8a8 100644
--- a/lib/codegen/src/lib.rs
+++ b/lib/codegen/src/lib.rs
@@ -49,7 +49,6 @@ extern crate failure_derive;
#[cfg_attr(test, macro_use)]
extern crate target_lexicon;
-#[cfg(feature = "std")]
#[macro_use]
extern crate log;
... | 2 | 0 | 2 |
3b56b2f4fb5e8f682e06d2108228daa650f3968f | Dan Gohman | 2018-08-13T19:52:09 | Fix rustfmt errors. | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index 7db013a02..890bf95be 100644
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -12,9 +12,9 @@
extern crate cfg_if;
extern crate cranelift_codegen;
extern crate cranelift_filetests;
-extern crate file_per_thread_logger;
exte... | 2 | 2 | 2 |
d4a83576e4a187b9468ce72f10703ce640d00b23 | Dan Gohman | 2018-08-11T14:22:38 | Add a few miscellaneous comments. | diff --git a/lib/codegen/src/isa/x86/abi.rs b/lib/codegen/src/isa/x86/abi.rs
index d0305d918..21796e2a1 100644
--- a/lib/codegen/src/isa/x86/abi.rs
+++ b/lib/codegen/src/isa/x86/abi.rs
@@ -217,6 +217,7 @@ fn callee_saved_gprs(isa: &TargetIsa) -> &'static [RU] {
}
}
+/// Get the set of callee-saved registers tha... | 2 | 3 | 1 |
f34531ab365431111c1c502cbc1d077da81ebce2 | Dan Gohman | 2018-08-03T22:07:23 | Synchronize cranelift-serde's lint settings with the other crates. | diff --git a/lib/serde/src/clif-json.rs b/lib/serde/src/clif-json.rs
index 9c3338e60..5fc8a1d46 100644
--- a/lib/serde/src/clif-json.rs
+++ b/lib/serde/src/clif-json.rs
@@ -1,7 +1,9 @@
//! Utility for `cranelift_serde`.
-#![deny(trivial_numeric_casts, unused_extern_crates, unstable_features)]
+#![deny(missing_docs, ... | 1 | 3 | 1 |
cc4bf1c7fbb18ccb8841b913361fb89d7180afc4 | Dan Gohman | 2018-08-03T22:03:05 | Deny unstable_features in "std" builds. | diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs
index 86e892420..7db013a02 100644
--- a/cranelift/src/clif-util.rs
+++ b/cranelift/src/clif-util.rs
@@ -1,5 +1,5 @@
-#![deny(trivial_numeric_casts)]
-#![warn(unused_import_braces, unstable_features, unused_extern_crates)]
+#![deny(trivial_numeric_cast... | 13 | 21 | 21 |
8bd1b877efabc6303006edf4b64736e0b25f59cb | Dan Gohman | 2018-08-03T21:55:01 | Elaborate on some comments. | diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs
index 21ee1d08a..507761252 100644
--- a/lib/wasm/src/environ/dummy.rs
+++ b/lib/wasm/src/environ/dummy.rs
@@ -1,4 +1,5 @@
-//! "Dummy" environment for testing wasm translation.
+//! "Dummy" implementations of `ModuleEnvironment` and `FuncEnviron... | 1 | 2 | 1 |
a044f58cea93c33b6db0cc9f49650206e5ea61f1 | Benjamin Bouvier | 2018-07-20T17:14:04 | Fixes #404: Use log.rs and a file-per-thread logger instead of the dbg! macro; | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index b674fbf7f..b3c7672c0 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -34,6 +34,8 @@ term = "0.5.1"
capstone = { version = "0.4", optional = true }
wabt = { version = "0.4", optional = true }
target-lexicon = "0.0.3"
+pretty_env_logger = "... | 27 | 123 | 221 |
60c2cad06ea160c545085884b31a2abbe6936117 | Daniel Keep | 2018-08-07T07:47:30 | Add SimpleJIT internal symbol table.
Allows for host programs to directly expose symbols to jitted code without
needing to deal with platform-specific linker arguments, or dynamic
dispatch. | diff --git a/lib/simplejit/src/backend.rs b/lib/simplejit/src/backend.rs
index 0ae65a8a9..c867c0d82 100644
--- a/lib/simplejit/src/backend.rs
+++ b/lib/simplejit/src/backend.rs
@@ -10,6 +10,7 @@ use cranelift_module::{
use cranelift_native;
use libc;
use memory::Memory;
+use std::collections::HashMap;
use std::ffi:... | 1 | 55 | 5 |
0b548c720cd488c2f31d8ad08588b7a28a143b9c | Amanieu d'Antras | 2018-08-12T13:31:38 | Don't make the Comparator a type argument for bforest | diff --git a/lib/bforest/src/lib.rs b/lib/bforest/src/lib.rs
index 1bddcd8a7..2a1c5f843 100644
--- a/lib/bforest/src/lib.rs
+++ b/lib/bforest/src/lib.rs
@@ -114,9 +114,6 @@ trait Forest {
/// An array of values for the leaf nodes.
type LeafValues: Copy + BorrowMut<[Self::Value]>;
- /// Type used for key ... | 8 | 134 | 136 |
ad184ff9aaba4a3e68330ebf8b7735f1519af51b | Caroline Cullen | 2018-08-07T19:36:49 | Fixing serde formatting. | diff --git a/lib/serde/src/clif-json.rs b/lib/serde/src/clif-json.rs
index 81fe47b02..659bc818a 100644
--- a/lib/serde/src/clif-json.rs
+++ b/lib/serde/src/clif-json.rs
@@ -70,7 +70,7 @@ fn call_ser(file: &str, pretty: bool) -> CommandResult {
}
}
-/// Deserialize JSON to Cranelift IR
+/// Deserialize JSON to ... | 1 | 1 | 1 |
9683adec644cd0a7c5f779142e54625c4564312e | Caroline Cullen | 2018-08-06T23:06:39 | Updating documentation for serde | diff --git a/lib/serde/src/clif-json.rs b/lib/serde/src/clif-json.rs
index eb991343c..81fe47b02 100644
--- a/lib/serde/src/clif-json.rs
+++ b/lib/serde/src/clif-json.rs
@@ -1,3 +1,5 @@
+//! Utility for `cranelift_serde`.
+
#![deny(trivial_numeric_casts)]
#![warn(unused_import_braces, unstable_features, unused_extern_... | 2 | 17 | 4 |
32b332b733a9b78e6669c9ab284498c7bb861c81 | Maddy | 2018-08-03T15:17:52 | Format files. | diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs
index 4eaab00fb..21ee1d08a 100644
--- a/lib/wasm/src/environ/dummy.rs
+++ b/lib/wasm/src/environ/dummy.rs
@@ -12,7 +12,8 @@ use std::string::String;
use std::vec::Vec;
use target_lexicon::Triple;
use translation_utils::{
- DefinedFuncIndex... | 4 | 13 | 9 |
ee9e5cba495ab5b6613e705aaccc686b0bca2a44 | Maddy | 2018-08-03T13:00:31 | Convert the start function index from a `DefinedFuncIndex` to a `FuncIndex`. | diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs
index b2db269e2..4eaab00fb 100644
--- a/lib/wasm/src/environ/dummy.rs
+++ b/lib/wasm/src/environ/dummy.rs
@@ -71,7 +71,7 @@ pub struct DummyModuleInfo {
pub globals: Vec<Exportable<Global>>,
/// The start function.
- pub start_fun... | 3 | 6 | 6 |
f5d46cabe73097ed0bdd19b779e95e539ebca89e | Maddy | 2018-08-02T01:29:47 | Use types to distinguish between wasm function body indices and wasm function indices. | diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml
index 3db93b57c..b674fbf7f 100644
--- a/cranelift/Cargo.toml
+++ b/cranelift/Cargo.toml
@@ -15,6 +15,7 @@ path = "src/clif-util.rs"
[dependencies]
cfg-if = "0.1"
cranelift-codegen = { path = "lib/codegen", version = "0.18.1" }
+cranelift-entity = { path = "lib... | 12 | 71 | 53 |
48e46c4faea945df9004cf6a313f11667cf312d0 | Dan Gohman | 2018-08-03T22:43:51 | Update fuzz targets for API changes. | diff --git a/fuzz/fuzz_targets/compile.rs b/fuzz/fuzz_targets/compile.rs
index ad329fc21..bfdac002a 100644
--- a/fuzz/fuzz_targets/compile.rs
+++ b/fuzz/fuzz_targets/compile.rs
@@ -3,14 +3,12 @@
#[macro_use]
extern crate libfuzzer_sys;
extern crate cranelift_codegen;
-extern crate cranelift_wasm;
extern crate crane... | 1 | 4 | 6 |
4992162faba328ed833bd3811f94ea1d0a0a52cd | Dan Gohman | 2018-08-03T22:37:57 | Format with rustfmt. | diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs
index 85856f65f..d97db70d7 100644
--- a/lib/environ/src/environ.rs
+++ b/lib/environ/src/environ.rs
@@ -9,8 +9,8 @@ use cranelift_codegen::ir::{
use cranelift_codegen::isa;
use cranelift_codegen::settings;
use cranelift_wasm::{
- self, FunctionI... | 4 | 7 | 7 |
40791787c746d999d6cada8fb737dc72d974a71a | Dan Gohman | 2018-08-03T22:37:30 | Update repository URLs. | diff --git a/Cargo.toml b/Cargo.toml
index 6b6e395af..99a5df273 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,7 @@ version = "0.0.0"
description = "Command-line interface for the wasmtime crate"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://cranelift.readthedocs.io/"
-repository = "https:... | 3 | 3 | 2 |
bba733b7a149280001d93516871278880daf492f | Dan Gohman | 2018-08-03T22:26:26 | Tidy up a comment. | diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs
index 26afafd03..85856f65f 100644
--- a/lib/environ/src/environ.rs
+++ b/lib/environ/src/environ.rs
@@ -117,10 +117,8 @@ impl<'module_environment> FuncEnvironment<'module_environment> {
}
}
-/// This trait is useful for
-/// `cranelift_wasm::t... | 1 | 2 | 4 |
33b7dfac0069702d7d1f2ea292be5a56d9d5cf6c | Dan Gohman | 2018-08-03T21:20:15 | Rename `ptr_size`. | diff --git a/lib/runtime/src/environ.rs b/lib/runtime/src/environ.rs
index 0afb89200..cadbe1362 100644
--- a/lib/runtime/src/environ.rs
+++ b/lib/runtime/src/environ.rs
@@ -111,7 +111,7 @@ impl<'module_environment> FuncEnvironment<'module_environment> {
real_call_args
}
- fn ptr_size(&self) -> usize ... | 1 | 6 | 6 |
831b481f13a9aaffc9c58e9d25e8c0bbc2b60c14 | Dan Gohman | 2018-08-03T20:45:46 | More code reorganization. | diff --git a/lib/execute/src/execute.rs b/lib/execute/src/execute.rs
new file mode 100644
index 000000000..6642da4d3
--- /dev/null
+++ b/lib/execute/src/execute.rs
@@ -0,0 +1,113 @@
+use cranelift_codegen::binemit::Reloc;
+use cranelift_codegen::isa::TargetIsa;
+use instance::Instance;
+use region::protect;
+use region... | 10 | 177 | 180 |
6659ef7018d3bf9fd7292b4556d27502ef955300 | Dan Gohman | 2018-08-03T20:35:25 | More code reorganization. | diff --git a/lib/execute/src/lib.rs b/lib/execute/src/lib.rs
index e9ba6f664..72657df20 100644
--- a/lib/execute/src/lib.rs
+++ b/lib/execute/src/lib.rs
@@ -13,10 +13,10 @@ use region::protect;
use region::Protection;
use std::mem::transmute;
use std::ptr::write_unaligned;
-use wasmtime_runtime::{Compilation, Reloca... | 7 | 140 | 151 |
fdd3600f1b3d823520ca3d9585c76c09ef9bb7bc | Dan Gohman | 2018-08-03T20:19:21 | Delete a redundant function. | diff --git a/lib/runtime/src/lib.rs b/lib/runtime/src/lib.rs
index e0abe1843..1699bcde0 100644
--- a/lib/runtime/src/lib.rs
+++ b/lib/runtime/src/lib.rs
@@ -24,13 +24,7 @@ use cranelift_codegen::ir;
use cranelift_codegen::ir::ExternalName;
use cranelift_codegen::isa;
use cranelift_wasm::{FuncTranslator, FunctionInde... | 1 | 1 | 7 |
0d8a69189cc7e6dd57d39577a8dbfff386bb8ff1 | Dan Gohman | 2018-08-03T20:15:31 | Remove unused `TableElement` struct. | diff --git a/lib/runtime/src/module.rs b/lib/runtime/src/module.rs
index e70591027..cc0d4fc62 100644
--- a/lib/runtime/src/module.rs
+++ b/lib/runtime/src/module.rs
@@ -7,15 +7,6 @@ use cranelift_wasm::{
};
use std::collections::HashMap;
-/// Possible values for a WebAssembly table element.
-#[derive(Clone, Debug)]... | 1 | 0 | 9 |
779128d14de5376124fd5d4ea639a0b3fc3bb321 | Dan Gohman | 2018-08-03T20:04:05 | Factor out FuncEnvironment and ModuleEnvironment into a separate file. | diff --git a/lib/runtime/src/compilation.rs b/lib/runtime/src/compilation.rs
index f0e0c19a5..6fd4a578d 100644
--- a/lib/runtime/src/compilation.rs
+++ b/lib/runtime/src/compilation.rs
@@ -6,7 +6,7 @@ use module::Module;
/// An Instance of a WebAssemby module.
#[derive(Debug)]
pub struct Compilation<'module> {
- ... | 4 | 472 | 451 |
63bc52d9fdd1bbb3977c91aa8c38ddb0b41c7308 | Dan Gohman | 2018-08-03T19:43:36 | Eliminate runtime's direct dependeny on wasmparser. | diff --git a/lib/runtime/Cargo.toml b/lib/runtime/Cargo.toml
index fdb224390..c56d17b65 100644
--- a/lib/runtime/Cargo.toml
+++ b/lib/runtime/Cargo.toml
@@ -10,5 +10,4 @@ license = "Apache-2.0 WITH LLVM-exception"
[dependencies]
cranelift-codegen = "0.18.1"
cranelift-wasm = "0.18.1"
-wasmparser = "0.17.2"
target-le... | 2 | 1 | 4 |
76a7efc8db8458009372ad63370a3eff0f47c978 | Bruce Mitchener | 2018-08-03T05:10:51 | Clippy improvements (#408)
* clippy: Allow subsec_nanos usage for now.
The recommendation from clippy requires Rust 1.27, but we currently
support Rust 1.25 and later.
* Simplify ref pattern matches.
This was recommended by clippy. | diff --git a/lib/codegen/src/lib.rs b/lib/codegen/src/lib.rs
index 56320c645..5d24ddf70 100644
--- a/lib/codegen/src/lib.rs
+++ b/lib/codegen/src/lib.rs
@@ -5,6 +5,8 @@
#![cfg_attr(feature = "std", warn(unstable_features))]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr... | 3 | 10 | 4 |
753d650f1a4f0654517cd8337235a745a9074a33 | Dan Gohman | 2018-08-03T03:50:28 | Update to cranelift 0.18.1. | diff --git a/Cargo.toml b/Cargo.toml
index fa868edd3..cc04736e8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,11 +17,11 @@ name = "wasm2obj"
path = "src/wasm2obj.rs"
[dependencies]
-cranelift-codegen = "0.16.1"
-cranelift-frontend = "0.16.1"
-cranelift-reader = "0.16.1"
-cranelift-wasm = "0.16.1"
-cranelift-nativ... | 6 | 23 | 18 |
c0af810ec0e384bbf1939f322c4835f68184c556 | Dan Gohman | 2018-08-03T03:37:09 | Add an explicit version to the cranelift-codegen-meta dependency.
This allows it to work in crates.io. | diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml
index c81f204ee..bb767dd67 100644
--- a/lib/codegen/Cargo.toml
+++ b/lib/codegen/Cargo.toml
@@ -22,7 +22,7 @@ target-lexicon = { version = "0.0.3", default-features = false }
# accomodated in `tests`.
[build-dependencies]
-cranelift-codegen-meta = { path ... | 2 | 2 | 2 |
570f7bc20b5be5c780a1fbd89dc4063154d75a6f | Dan Gohman | 2018-08-02T22:36:54 | Rename "cranelift-meta" to just "meta".
This makes it easier for the publish-all.sh script to know to skip this
crate, and it avoids the need to use `extern cranelift_meta as meta`. | diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml
index faf6df011..d9094daab 100644
--- a/lib/codegen/Cargo.toml
+++ b/lib/codegen/Cargo.toml
@@ -22,7 +22,7 @@ target-lexicon = { version = "0.0.3", default-features = false }
# accomodated in `tests`.
[build-dependencies]
-cranelift-meta = { path = "meta"... | 3 | 3 | 3 |
5cf2c6f0f75b89a5f9844f8e47b94ac5e557d8b5 | Dan Gohman | 2018-08-02T18:13:25 | Update cranelift-meta's Cargo.toml to reflect that it's not published. | diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml
index b25fb6f16..faf6df011 100644
--- a/lib/codegen/Cargo.toml
+++ b/lib/codegen/Cargo.toml
@@ -22,7 +22,7 @@ target-lexicon = { version = "0.0.3", default-features = false }
# accomodated in `tests`.
[build-dependencies]
-cranelift-meta = { path = "meta"... | 2 | 3 | 11 |
26d122306d951810199879dc41f80c62de753024 | Dan Gohman | 2018-08-02T16:30:37 | Don't attempt to shrink regfill/regspill/regmove instructions.
This is a temporary workaround for bugs such as #420, where normal
operand constraint checking doesn't correctly handle such instructions. | diff --git a/lib/codegen/src/binemit/shrink.rs b/lib/codegen/src/binemit/shrink.rs
index d18ee7fdb..dc718e97c 100644
--- a/lib/codegen/src/binemit/shrink.rs
+++ b/lib/codegen/src/binemit/shrink.rs
@@ -5,6 +5,7 @@
//! flexibility. However, once register allocation is done, this is no longer important, and we
//! can s... | 1 | 20 | 1 |
987bbfa922b5fb58314b9e93d96e60c560617d2c | Dan Gohman | 2018-08-01T22:14:49 | Fix rustfmt errors. | diff --git a/cranelift/tests/moduletests.rs b/cranelift/tests/moduletests.rs
index d829aa8e9..89a04e2cd 100644
--- a/cranelift/tests/moduletests.rs
+++ b/cranelift/tests/moduletests.rs
@@ -2,8 +2,8 @@ extern crate cranelift_codegen;
extern crate cranelift_module;
extern crate cranelift_simplejit;
-use cranelift_cod... | 1 | 8 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.