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
f44fe25f9c9841031c4cf6561b8668c7223fd34f
Dan Gohman
2018-11-29T18:11:11
Rewrite linear memory handling in terms of simple mmap/VirtualAlloc. The memmap crate doesn't make it straightforward to have part of the region be writeable and part readonly. Since this is a fairly boutique use case, and we don't need all that much code, just use the low-level APIs directly. Also, introduce a conce...
diff --git a/Cargo.toml b/Cargo.toml index c15d39019..785e80997 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,10 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cranelift-codegen = "0.25.0" -cranelift-native = "0.25.0" -cranelift-entity = "0.25.0" -cranelift-wasm = "0.25.0" +cranelift-codegen...
13
360
112
02a3684a3f25591013abe98d453a8fbbe82afb58
Dan Gohman
2018-11-30T17:24:33
Update to bindgen 0.44.
diff --git a/lib/execute/Cargo.toml b/lib/execute/Cargo.toml index 04f7c24ce..9c587b1a6 100644 --- a/lib/execute/Cargo.toml +++ b/lib/execute/Cargo.toml @@ -21,7 +21,7 @@ libc = "0.2.44" [build-dependencies] cmake = "0.1.35" -bindgen = "0.43.2" +bindgen = "0.44.0" regex = "1.0.6" [features]
1
1
1
4c8f1e7a5a4d02d50dc6a474d12d2a052efa0f07
Benjamin Bouvier
2018-11-21T14:36:53
[meta] Ignore empty lines to compute indent when parsing multiple lines;
diff --git a/lib/codegen/meta/src/srcgen.rs b/lib/codegen/meta/src/srcgen.rs index 70bcfe6ef..a7941e9bf 100644 --- a/lib/codegen/meta/src/srcgen.rs +++ b/lib/codegen/meta/src/srcgen.rs @@ -3,6 +3,7 @@ //! The `srcgen` module contains generic helper routines and classes for //! generating source code. +use std::cmp;...
1
32
4
12df9434095814bcd4ee2c867dfce3a1ebdfe2ec
Benjamin Bouvier
2018-11-21T14:36:22
[meta] Add support to generate Match expressions in Rust;
diff --git a/lib/codegen/meta/src/srcgen.rs b/lib/codegen/meta/src/srcgen.rs index bd404fbc0..70bcfe6ef 100644 --- a/lib/codegen/meta/src/srcgen.rs +++ b/lib/codegen/meta/src/srcgen.rs @@ -3,7 +3,7 @@ //! The `srcgen` module contains generic helper routines and classes for //! generating source code. -use std::coll...
1
75
20
d15e56a9faa3b179d9d929d4eba8994403e162e7
Benjamin Bouvier
2018-11-20T14:40:39
Add build warning only if CRANELIFT_VERBOSE is set to anything;
diff --git a/lib/codegen/build.rs b/lib/codegen/build.rs index 1faedddd0..67bbdfe17 100644 --- a/lib/codegen/build.rs +++ b/lib/codegen/build.rs @@ -23,8 +23,11 @@ extern crate cranelift_codegen_meta as meta; use meta::isa::Isa; use std::env; use std::process; +use std::time::Instant; fn main() { + let start_t...
1
11
0
ec940ee8af74f2d7d59af156c90a3a3a888699e4
Frank Rehberger
2018-11-30T16:44:44
Migrating to wabt::wat2wasm (#29) * Add test_environ_translate * Migrating to wabt::wat2wasm
diff --git a/Cargo.toml b/Cargo.toml index 7e6a30ab8..c15d39019 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,13 +28,10 @@ wasmtime-obj = { path = "lib/obj" } docopt = "1.0.1" serde = "1.0.75" serde_derive = "1.0.75" -tempdir = "*" faerie = "0.6.0" target-lexicon = { version = "0.2.0", default-features = false }...
2
3
24
ff25397c9e77982bfa1133ca41b1033eb060fa3c
Dan Gohman
2018-11-30T03:28:35
Fix the type of the heap bound variable.
diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs index 874d1f0d2..9b4bcce80 100644 --- a/lib/environ/src/environ.rs +++ b/lib/environ/src/environ.rs @@ -345,7 +345,7 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m offset: Offset32::new( ...
1
1
1
b3d831015c2956ee3945ad9094a59a296c95a737
Dan Gohman
2018-11-29T23:38:12
Add basic logging support to the wasmtime binary.
diff --git a/Cargo.toml b/Cargo.toml index faaff386e..7e6a30ab8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,6 +31,8 @@ serde_derive = "1.0.75" tempdir = "*" faerie = "0.6.0" target-lexicon = { version = "0.2.0", default-features = false } +pretty_env_logger = "0.2.5" +file-per-thread-logger = "0.1.1" [dev-dep...
2
16
2
b7d43edfd346511207a305d9e41c2c7313364473
Dan Gohman
2018-11-29T18:28:18
Be more careful about integer overflow when computing relocs.
diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs index f5c497546..874d1f0d2 100644 --- a/lib/environ/src/environ.rs +++ b/lib/environ/src/environ.rs @@ -122,8 +122,8 @@ impl<'module_environment> FuncEnvironment<'module_environment> { real_call_args } - fn pointer_bytes(&self) -> u...
2
21
18
f7dc961d2c58012fb110b4fbbc33e64f6f2bf857
Dan Gohman
2018-11-29T18:27:49
Fix some clippy warnings.
diff --git a/lib/execute/src/signalhandlers.rs b/lib/execute/src/signalhandlers.rs index b0cf3e52e..9ce155c8f 100644 --- a/lib/execute/src/signalhandlers.rs +++ b/lib/execute/src/signalhandlers.rs @@ -45,7 +45,7 @@ pub fn ensure_eager_signal_handlers() { } state.tried = true; - assert!(state.success == f...
2
3
3
416f8c094d1db22adcc2f0fc95aafbf181418531
Dan Gohman
2018-11-29T13:48:24
Name Table and Memory's initial field `minimum` and make it u32. The spec has switched to calling the "initial" field the "minimum" field because when linear memory is imported, it may initially be greater than the "initial" value. Making it u32 instead of usize will help avoid accidental host-specific behavior.
diff --git a/lib/wasm/src/sections_translator.rs b/lib/wasm/src/sections_translator.rs index bab2ac1f9..511f7d07e 100644 --- a/lib/wasm/src/sections_translator.rs +++ b/lib/wasm/src/sections_translator.rs @@ -82,8 +82,8 @@ pub fn parse_import_section<'data>( }) => { environ.declare_memory_...
2
12
12
216c0ce14ef102fc63e789908f91dd1491eec0ac
Dan Gohman
2018-11-28T21:29:25
Fix the scope of the ScopeGuard in `call_wasm`.
diff --git a/lib/execute/src/traphandlers.rs b/lib/execute/src/traphandlers.rs index a43526956..9d1f4efe8 100644 --- a/lib/execute/src/traphandlers.rs +++ b/lib/execute/src/traphandlers.rs @@ -88,7 +88,7 @@ where { // In case wasm code calls Rust that panics and unwinds past this point, // ensure that JMP_BU...
1
1
1
f8754c2cf8fb5f8b88d1b5bca3ad5d86a5845b5e
Dan Gohman
2018-11-29T00:08:26
Fix warnings when the "wasm" feature is disabled.
diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs index 7f5d521f4..cedd82326 100755 --- a/cranelift/src/clif-util.rs +++ b/cranelift/src/clif-util.rs @@ -24,6 +24,7 @@ extern crate cfg_if; extern crate capstone; extern crate clap; extern crate cranelift_codegen; +#[cfg(feature = "wasm")] extern c...
2
20
16
13c36612b5313d58a618ce109d01b98df2924a40
Sergey Pepyakin
2018-11-28T12:53:10
increment → reserve.
diff --git a/src/backend.rs b/src/backend.rs index eea8f129d..e504df7d1 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -196,12 +196,12 @@ pub fn define_label(ctx: &mut Context, label: Label) { pub struct StackDepth(u32); impl StackDepth { - pub fn increment(&mut self) { - self.0 += 1; + pub fn res...
2
9
9
aa5643b9b5bd862391b33c1ccf9694e9441a8de5
Sergey Pepyakin
2018-11-19T22:05:09
Implement if then else
diff --git a/src/backend.rs b/src/backend.rs index 7313f2c05..eea8f129d 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -82,10 +82,6 @@ impl Registers { } } -/// Label in code. -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Label(DynamicLabel); - /// Describes location of a argument. enum ArgLo...
3
176
26
ba216b2e8abe501d74295a0edb88225e3bc10f11
Sergey Pepyakin
2018-11-19T20:56:19
Add a simple i32.eq operator.
diff --git a/src/backend.rs b/src/backend.rs index a5345496f..7313f2c05 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -243,6 +243,20 @@ pub fn store_i32(ctx: &mut Context, local_idx: u32) { ctx.regs.release_scratch_gpr(gpr); } +pub fn relop_eq_i32(ctx: &mut Context) { + let right = pop_i32(ctx); + l...
3
39
0
b42696f207e42e473ec7e8782827ea9c4a885e9b
Sergey Pepyakin
2018-11-19T20:37:12
Add a simple boilerplate.
diff --git a/src/backend.rs b/src/backend.rs index c3b5636d4..a5345496f 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -2,7 +2,7 @@ use error::Error; use dynasmrt::x64::Assembler; -use dynasmrt::{DynasmApi, AssemblyOffset, ExecutableBuffer}; +use dynasmrt::{DynasmApi, DynasmLabelApi, AssemblyOffset, Executable...
2
128
8
8e1e75f1f4ef1377a5a6e2fed0c938368eab196c
Dan Gohman
2018-11-27T13:41:19
Fix rustfmt diffs.
diff --git a/lib/environ/src/lib.rs b/lib/environ/src/lib.rs index 85db05aa5..edbc4cb3e 100644 --- a/lib/environ/src/lib.rs +++ b/lib/environ/src/lib.rs @@ -53,4 +53,4 @@ mod std { pub use alloc::{string, vec}; pub use core::*; pub use core::{i32, str, u32}; -} \ No newline at end of file +}
1
1
1
bf5a06bc952d4ffb7bfe0457abf992c04d108c7b
Geoffroy Couprie
2018-11-27T13:33:56
separate the context intialization from the function execution (#21) the start function is called from the initialization phase
diff --git a/lib/environ/src/lib.rs b/lib/environ/src/lib.rs index 770175606..85db05aa5 100644 --- a/lib/environ/src/lib.rs +++ b/lib/environ/src/lib.rs @@ -46,11 +46,11 @@ mod vmcontext; pub use compilation::{compile_module, Compilation, Relocation, RelocationTarget, Relocations}; pub use environ::{ModuleEnvironme...
4
60
20
f028c53479c9eb71d7acab7b26c91bd21f11f28a
Zach Reizner
2018-11-26T01:42:10
Fix incorrect wasm subcommand 'about' text.
diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs index 5d5ca2b5d..7f5d521f4 100755 --- a/cranelift/src/clif-util.rs +++ b/cranelift/src/clif-util.rs @@ -128,7 +128,7 @@ fn get_vec(argument_vec: Option<clap::Values>) -> Vec<String> { fn add_wasm_or_compile<'a>(cmd: &str) -> clap::App<'a, 'a> { ...
2
2
2
95fba6a9dea7d2ee7a6c1df873b07f52070cec05
Dan Gohman
2018-11-27T06:50:07
Update to Cranelift 0.25.
diff --git a/Cargo.toml b/Cargo.toml index bbbea71d0..24ebde951 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,10 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cranelift-codegen = "0.24.0" -cranelift-native = "0.24.0" -cranelift-entity = "0.24.0" -cranelift-wasm = "0.24.0" +cranelift-codegen...
6
29
21
09e5b339160982b074ef1923aad085fbf51fe955
Dan Gohman
2018-11-27T06:08:15
Update to wasmparser 0.22.
diff --git a/lib/wasm/Cargo.toml b/lib/wasm/Cargo.toml index 13d7c8c5d..31a90762d 100644 --- a/lib/wasm/Cargo.toml +++ b/lib/wasm/Cargo.toml @@ -10,7 +10,7 @@ readme = "README.md" keywords = ["webassembly", "wasm"] [dependencies] -wasmparser = { version = "0.21.4", default-features = false } +wasmparser = { version...
3
4
4
f6a6ce319933ca31c1b9e246cc59fabd15460112
Dan Gohman
2018-11-19T13:05:05
Make ModuleEnvironment's target_config() return by value. This makes it more consistent with the other target_config() functions which were all changed to return by value.
diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs index 7ed6e0296..926c87cf9 100644 --- a/lib/wasm/src/environ/dummy.rs +++ b/lib/wasm/src/environ/dummy.rs @@ -338,8 +338,8 @@ impl<'dummy_environment> FuncEnvironment for DummyFuncEnvironment<'dummy_environ } impl<'data> ModuleEnvironment<'d...
2
3
3
367f3cd5d3ff712c1a74fc5637056ce353c8ad33
Dan Gohman
2018-11-19T13:04:38
Implement `reserve` and `reserve_exact` for `PrimaryMap`.
diff --git a/lib/entity/src/primary.rs b/lib/entity/src/primary.rs index e23e8e2a6..9b8709823 100644 --- a/lib/entity/src/primary.rs +++ b/lib/entity/src/primary.rs @@ -111,6 +111,16 @@ where pub fn last(&self) -> Option<&V> { self.elems.last() } + + /// Reserves capacity for at least `additional`...
1
10
0
82c8ef95c4e85d9f8da88b58bce6e28e074a6f50
Dan Gohman
2018-11-26T12:11:09
Update for Cranelift API changes.
diff --git a/fuzz/fuzz_targets/compile.rs b/fuzz/fuzz_targets/compile.rs index bfdac002a..7848ae55c 100644 --- a/fuzz/fuzz_targets/compile.rs +++ b/fuzz/fuzz_targets/compile.rs @@ -4,19 +4,20 @@ extern crate libfuzzer_sys; extern crate cranelift_codegen; extern crate cranelift_native; +extern crate wasmparser; exte...
1
11
8
f823526a42d6fb1edda623604e4c7a4e8d1f6bc0
Dan Gohman
2018-11-26T12:10:50
Update to wasmparser 0.22.
diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 7fce2b145..6132b43b7 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -14,7 +14,10 @@ cranelift-codegen = "0.24.0" cranelift-wasm = "0.24.0" cranelift-native = "0.24.0" libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" } -wasmparser = {...
1
4
1
737fde04a88bbcc424a8f2b2672353e641437830
Syrus Akbary
2018-11-25T13:10:58
Improved imports (#612) * Impoved support for wasm global imports * Refactored parse_import_section improving readability * Improved support for wasm table imports * Improved support for wasm memory imports * Improved formatting * Added DefinedGlobalIndex, DefinedMemoryIndex, DefinedTableIndex structs
diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs index ae2183efb..7ed6e0296 100644 --- a/lib/wasm/src/environ/dummy.rs +++ b/lib/wasm/src/environ/dummy.rs @@ -52,6 +52,15 @@ pub struct DummyModuleInfo { /// Module and field names of imported functions as provided by `declare_func_import`....
5
110
45
74ccddcd64bdb1bbfd17f92272fedb35750346b2
Dan Gohman
2018-11-16T19:37:39
Update to Cranelift 0.24.
diff --git a/Cargo.toml b/Cargo.toml index 19d88d8ab..bbbea71d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,8 +18,10 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cranelift-codegen = "0.22.0" -cranelift-native = "0.22.0" +cranelift-codegen = "0.24.0" +cranelift-native = "0.24.0" +cranelift-entit...
11
64
65
0a0108f959936d8fa15d0f2ece122a6ab6cb63da
Dan Gohman
2018-11-16T18:49:37
Update to Cranelift 0.22.
diff --git a/Cargo.toml b/Cargo.toml index 8e8458925..19d88d8ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,8 +18,8 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cranelift-codegen = "0.20.0" -cranelift-native = "0.20.0" +cranelift-codegen = "0.22.0" +cranelift-native = "0.22.0" wasmtime-environ...
9
171
70
b11646aba3541c7ce26995992748653b317c5642
Aaron Power
2018-11-09T12:32:29
Fix bit count bug in emit_small_{memcpy, memset, memmove}.
diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs index 0c595a585..692bc48de 100644 --- a/lib/frontend/src/frontend.rs +++ b/lib/frontend/src/frontend.rs @@ -605,12 +605,12 @@ impl<'a> FunctionBuilder<'a> { return; } + let int_type = Type::int((access_size * 8) as u...
1
63
3
48186b3199c00bd88cd0acf1a1bff3326fc648b1
Syrus Akbary
2018-11-19T07:47:58
Make TargetIsa thread-safe
diff --git a/lib/codegen/src/isa/mod.rs b/lib/codegen/src/isa/mod.rs index f304cf09c..b4bf97d33 100644 --- a/lib/codegen/src/isa/mod.rs +++ b/lib/codegen/src/isa/mod.rs @@ -196,7 +196,7 @@ impl TargetFrontendConfig { /// Methods that are specialized to a target ISA. Implies a Display trait that shows the /// shared...
1
1
1
7fca0792dd6fc49a824ce1d5bff3494aba00e932
Geoffroy Couprie
2018-11-15T15:41:10
add a way to provide imported functions during relocation They are provided as a closure taking the module (&str) and function name (&str) as arguments, returning an address (Option<isize>)
diff --git a/lib/execute/src/execute.rs b/lib/execute/src/execute.rs index 54846f58f..edbdb30d0 100644 --- a/lib/execute/src/execute.rs +++ b/lib/execute/src/execute.rs @@ -1,6 +1,6 @@ use cranelift_codegen::binemit::Reloc; use cranelift_codegen::isa::TargetIsa; -use cranelift_entity::PrimaryMap; +use cranelift_entit...
2
30
12
c7bc1b7c56657a72a13b98a26516791d2dd4d14a
Dan Robertson
2018-11-15T00:56:59
Fix fuzz_reader_parse_test Fix compilation issues with fuzz_reader_parse_test.
diff --git a/cranelift/fuzz/fuzz_reader_parse_test.rs b/cranelift/fuzz/fuzz_reader_parse_test.rs index 8ef582af0..cccf13591 100644 --- a/cranelift/fuzz/fuzz_reader_parse_test.rs +++ b/cranelift/fuzz/fuzz_reader_parse_test.rs @@ -4,6 +4,8 @@ extern crate libfuzzer_sys; extern crate cranelift_reader; use std::str; -f...
1
4
2
b41bc55007e13d03770624006f2b34ce9f18c089
Benjamin Bouvier
2018-11-14T12:04:37
Pretty-print errors for extended basic blocks too;
diff --git a/lib/codegen/src/print_errors.rs b/lib/codegen/src/print_errors.rs index 8e764065a..43bbc2cea 100644 --- a/lib/codegen/src/print_errors.rs +++ b/lib/codegen/src/print_errors.rs @@ -2,7 +2,7 @@ use entity::SecondaryMap; use ir; -use ir::entities::{AnyEntity, Inst, Value}; +use ir::entities::{AnyEntity, E...
2
69
7
f6617afcdd1c8d762cb2fd5af9ffdd99c9f64b58
Dan Gohman
2018-11-14T00:29:08
Remove the build time and directory from cranelift-codegen-meta's output. This makes its output nondeterministic, making it friendier for compilation caching tools.
diff --git a/lib/codegen/build.rs b/lib/codegen/build.rs index f5dc65427..1faedddd0 100644 --- a/lib/codegen/build.rs +++ b/lib/codegen/build.rs @@ -24,11 +24,7 @@ use meta::isa::Isa; use std::env; use std::process; -use std::time::Instant; - fn main() { - let start_time = Instant::now(); - let out_dir = e...
1
0
13
155fd4c72a813585f7535ed2bb6509f5153e0b90
oooooba
2018-11-14T20:58:50
Eliminate call stack recursion in VirtRegs::find (#584) * Eliminate call stack recursion in VirtRegs::find
diff --git a/lib/codegen/src/regalloc/virtregs.rs b/lib/codegen/src/regalloc/virtregs.rs index 55fece93c..13ef4a538 100644 --- a/lib/codegen/src/regalloc/virtregs.rs +++ b/lib/codegen/src/regalloc/virtregs.rs @@ -291,20 +291,22 @@ impl UFEntry { impl VirtRegs { /// Find the leader value and rank of the set contai...
1
13
11
5baeed06bb2359822dd69a494269ff33e1eadbec
bjorn3
2018-11-14T18:41:56
Better incompatible declaration error (#605) * Better incompatible declaration error * Change display of IncompatibleSignature error
diff --git a/lib/module/src/module.rs b/lib/module/src/module.rs index 47daccd76..d6328dab7 100644 --- a/lib/module/src/module.rs +++ b/lib/module/src/module.rs @@ -123,9 +123,18 @@ pub enum ModuleError { /// Indicates an identifier was used before it was declared #[fail(display = "Undeclared identifier: {}",...
1
15
2
c2f5bc00a5441ed8edd0aadb58804f745358e476
Dan Gohman
2018-11-12T23:15:02
Fix typos in comments.
diff --git a/lib/codegen/src/ir/extname.rs b/lib/codegen/src/ir/extname.rs index 05f1adc54..b35c9aeb0 100644 --- a/lib/codegen/src/ir/extname.rs +++ b/lib/codegen/src/ir/extname.rs @@ -13,7 +13,7 @@ const TESTCASE_NAME_LENGTH: usize = 16; /// The name of an external is either a reference to a user-defined symbol //...
1
3
3
f3ea2d5d66b2f40128a05cff25467f9fcbe3ee81
Dan Gohman
2018-11-12T14:35:23
Tidy up documentation comment syntax.
diff --git a/lib/codegen/src/regalloc/coalescing.rs b/lib/codegen/src/regalloc/coalescing.rs index 053d7f7de..cfdfd984f 100644 --- a/lib/codegen/src/regalloc/coalescing.rs +++ b/lib/codegen/src/regalloc/coalescing.rs @@ -375,7 +375,7 @@ impl<'a> Context<'a> { } /// Finish the union-find part of the coalesci...
1
1
1
076850549de1f48574270c292f57e6786f4490c3
Dan Gohman
2018-11-12T14:35:44
Clarify an assertion error message.
diff --git a/lib/codegen/src/regalloc/register_set.rs b/lib/codegen/src/regalloc/register_set.rs index b297578ca..d3a11a9d4 100644 --- a/lib/codegen/src/regalloc/register_set.rs +++ b/lib/codegen/src/regalloc/register_set.rs @@ -72,7 +72,7 @@ impl RegisterSet { let (idx, bits) = bitmask(rc, reg); debu...
1
1
1
7b27fdbf5439a9a05c603e10f49c9374a8e06223
Dan Gohman
2018-11-09T23:13:42
Avoid cloning an `InstructionData` when it isn't needed.
diff --git a/lib/codegen/src/simple_gvn.rs b/lib/codegen/src/simple_gvn.rs index 54d1040e9..d60bdb689 100644 --- a/lib/codegen/src/simple_gvn.rs +++ b/lib/codegen/src/simple_gvn.rs @@ -110,10 +110,8 @@ pub fn do_simple_gvn(func: &mut Function, domtree: &mut DominatorTree) { continue; } -...
1
2
5
a0c2b40c1759d73ab725fa98c6988c596734935c
Dan Gohman
2018-11-09T23:11:03
Remove unnecessary `pub` keywords.
diff --git a/lib/codegen/src/isa/x86/abi.rs b/lib/codegen/src/isa/x86/abi.rs index 67fe3a486..2542eb3eb 100644 --- a/lib/codegen/src/isa/x86/abi.rs +++ b/lib/codegen/src/isa/x86/abi.rs @@ -270,7 +270,7 @@ pub fn prologue_epilogue(func: &mut ir::Function, isa: &TargetIsa) -> CodegenRes } } -pub fn baldrdash_prol...
1
3
3
d54569cbdd56b91892fca7d02a7f6c046011655c
Dan Gohman
2018-11-09T23:10:17
Fix a typo in a comment.
diff --git a/lib/codegen/src/isa/enc_tables.rs b/lib/codegen/src/isa/enc_tables.rs index 1d8ed9478..8cc259420 100644 --- a/lib/codegen/src/isa/enc_tables.rs +++ b/lib/codegen/src/isa/enc_tables.rs @@ -40,7 +40,7 @@ pub type LegalizeCode = u8; /// size of the `LEVEL2` table. /// /// Empty entries are encoded with a `...
1
1
1
add4043bb5eef31374f29ad9f1e22ad708e0691e
Benjamin Bouvier
2018-11-08T17:41:15
[build] Introduce a TargetIsaBuilder to better encapsulate the TargetIsa; It was the caller's responsibility to call TargetIsa::check() before; now one can't manipulate a TargetIsa without calling the TargetIsaBuilder::finish() method, which is less error-prone and more in line with what's coming for other things we'r...
diff --git a/lib/codegen/meta/src/cdsl/isa.rs b/lib/codegen/meta/src/cdsl/isa.rs index 4a6a81968..d1855176c 100644 --- a/lib/codegen/meta/src/cdsl/isa.rs +++ b/lib/codegen/meta/src/cdsl/isa.rs @@ -1,7 +1,7 @@ use cranelift_entity::PrimaryMap; use super::regs::{ - RegBank, RegBankBuilder, RegBankIndex, RegClass, ...
7
109
105
08240761d517cc12192746a914789f306f289c0c
Sergey Pepyakin
2018-11-08T21:56:27
Compile a simple function (#2) * Implement basics. * Execute code * Add wasm2wat test cases. * abi_loc_for_arg for stack. * Assert that sp_depth is 0 at the epilogue * Do 32bit add. * Assert that RAX can be used as a scratch register * Reuse assembler. * Align stack slots.
diff --git a/Cargo.toml b/Cargo.toml index b4c4a6d25..b7801bd8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ wasmparser = "0.21.6" capstone = "0.5.0" failure = "0.1.3" failure_derive = "0.1.3" +wabt = "0.7" [badges] maintenance = { status = "experimental" } diff --git a/examples/test.rs b/examples/...
9
334
68
f896bfb94653e78b245682d0ec624b6fe36f443a
Benjamin Bouvier
2018-11-08T15:48:20
Prefix fixed_results/fixed_value_arguments with num to indicate they return a usize;
diff --git a/lib/codegen/src/ir/dfg.rs b/lib/codegen/src/ir/dfg.rs index ecb22237f..2ac9969d9 100644 --- a/lib/codegen/src/ir/dfg.rs +++ b/lib/codegen/src/ir/dfg.rs @@ -430,26 +430,38 @@ impl DataFlowGraph { /// Get the fixed value arguments on `inst` as a slice. pub fn inst_fixed_args(&self, inst: Inst) ->...
7
80
54
e13b0886dc6cbe70a0c45564a424299d1d2b5086
Benjamin Bouvier
2018-11-08T15:41:00
SimpleJIT: Ignore result of writeln! to avoid a compiler warning when writing the perf map;
diff --git a/lib/simplejit/src/backend.rs b/lib/simplejit/src/backend.rs index ccf113ce1..b105e70e3 100644 --- a/lib/simplejit/src/backend.rs +++ b/lib/simplejit/src/backend.rs @@ -187,7 +187,7 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend { .open(format!("/tmp/perf-{}.map", ::std::process:...
1
1
1
47a33474ef483bdc337b7ca859b7b624343c365c
Dan Gohman
2018-11-08T00:28:37
Fix a typo in the category name.
diff --git a/lib/preopt/Cargo.toml b/lib/preopt/Cargo.toml index 52dd0d890..c2c6ee46f 100644 --- a/lib/preopt/Cargo.toml +++ b/lib/preopt/Cargo.toml @@ -6,7 +6,7 @@ description = "Support for optimizations in Cranelift" license = "Apache-2.0 WITH LLVM-exception" documentation = "https://cranelift.readthedocs.io/" re...
1
2
2
1d14f5ddbd6549ecbde1b46b687e88ff7062f019
Dan Gohman
2018-11-08T00:24:19
Use cranelift-entity with default features. The meta crate doesn't need to support no_std, so it can just use default settings.
diff --git a/lib/codegen/meta/Cargo.toml b/lib/codegen/meta/Cargo.toml index 57f701205..70073e449 100644 --- a/lib/codegen/meta/Cargo.toml +++ b/lib/codegen/meta/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/CraneStation/cranelift" readme = "README.md" [dependencies] -cranelift-entity = { path = "../....
1
1
1
ad8a19c7ff9fce503c6457acff29705f2d6c28b9
Dan Gohman
2018-11-08T00:13:51
Update no_std support.
diff --git a/lib/preopt/src/lib.rs b/lib/preopt/src/lib.rs index bf2ffc1a8..789b308af 100644 --- a/lib/preopt/src/lib.rs +++ b/lib/preopt/src/lib.rs @@ -1,12 +1,8 @@ //! Performes early-stage optimizations on Cranelift IR. -#![deny( - missing_docs, - trivial_numeric_casts, - unused_extern_crates, - unsta...
1
3
7
fd875c3f5a027945095cde8605f775da9da1b839
Dan Gohman
2018-11-07T23:52:52
Pass TargetFrontendConfig by value rather than by reference.
diff --git a/lib/codegen/src/isa/mod.rs b/lib/codegen/src/isa/mod.rs index 20469bb6c..f304cf09c 100644 --- a/lib/codegen/src/isa/mod.rs +++ b/lib/codegen/src/isa/mod.rs @@ -179,17 +179,17 @@ pub struct TargetFrontendConfig { impl TargetFrontendConfig { /// Get the pointer type of this target. - pub fn pointe...
1
3
3
b476f823d4fa3a2b0a407db4ddebbf1531ce8d01
Dan Gohman
2018-11-07T22:25:03
Update to target_lexicon 0.2.0.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index e347ce3ef..e401e954c 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -33,7 +33,7 @@ serde = "1.0.8" term = "0.5.1" capstone = { version = "0.5.0", optional = true } wabt = { version = "0.7.0", optional = true } -target-lexicon = "0.0.3" +...
10
16
30
26da67b39461c8f88f27819c158ef80820fe3519
Dan Gohman
2018-11-06T18:38:29
Add a verifier check that ghost instructions don't have encodings.
diff --git a/lib/codegen/src/verifier/mod.rs b/lib/codegen/src/verifier/mod.rs index 6fedcc5af..31a7dfc02 100644 --- a/lib/codegen/src/verifier/mod.rs +++ b/lib/codegen/src/verifier/mod.rs @@ -1550,6 +1550,15 @@ impl<'a> Verifier<'a> { let encoding = self.func.encodings[inst]; if encoding.is_legal()...
1
9
0
681cb5e20abfa7ffb186a22adaeb4666d8113406
Dan Gohman
2018-11-06T20:08:34
Assert that the non-fixed inputs to return match the function's signature.
diff --git a/lib/codegen/src/regalloc/spilling.rs b/lib/codegen/src/regalloc/spilling.rs index 132c98be9..1ce0649fe 100644 --- a/lib/codegen/src/regalloc/spilling.rs +++ b/lib/codegen/src/regalloc/spilling.rs @@ -348,6 +348,11 @@ impl<'a> Context<'a> { // Similarly, for return instructions, collect uses of ABI...
1
5
0
5ea6c57b955e987022484c891b77ef899f7e219a
Dan Gohman
2018-10-23T23:34:29
Update to the new wasmparser and port to the new readers API. The new wasmparser API provides dedicated reader types for each section type, which significantly simplifies the code. This also changes WasmError::from_binary_reader_error into a From trait so that we don't have to do .map_err(from_binary_reader_error) th...
diff --git a/lib/wasm/Cargo.toml b/lib/wasm/Cargo.toml index 1a09c44e5..e674945ac 100644 --- a/lib/wasm/Cargo.toml +++ b/lib/wasm/Cargo.toml @@ -10,7 +10,7 @@ readme = "README.md" keywords = ["webassembly", "wasm"] [dependencies] -wasmparser = { version = "0.19.1", default-features = false } +wasmparser = { version...
6
294
405
9e084dbadce53c4735aec39bdf44c8d2b65080be
Dan Gohman
2018-11-06T21:24:06
Update to wabt 0.7.0.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index e97cbbc00..51a714af4 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.6", optional = true } +wabt = { ve...
2
2
2
4f2d7dd54f7c95624ed4b5bd73684df715dd5ef3
Benjamin Bouvier
2018-10-16T15:00:01
[build] Move Isa enum to the meta library;
diff --git a/lib/codegen/build.rs b/lib/codegen/build.rs index 7cb20c4a1..39f6ebc62 100644 --- a/lib/codegen/build.rs +++ b/lib/codegen/build.rs @@ -20,6 +20,7 @@ extern crate cranelift_codegen_meta as meta; +use meta::isa::Isa; use std::env; use std::process; @@ -99,60 +100,6 @@ fn identify_python() -> &'stat...
3
55
54
8d7538049cbda1efcef0595478a35a00e7192750
Dan Gohman
2018-11-05T20:51:39
Pass TargetFrontendConfig by value rather than by reference. Passing it by reference was an artifact of an earlier version of the TargetFrontendConfig code, but it's no longer needed, as TargetFrontendConfig is now a Copy type.
diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs index ff6efa683..0c595a585 100644 --- a/lib/frontend/src/frontend.rs +++ b/lib/frontend/src/frontend.rs @@ -552,7 +552,7 @@ impl<'a> FunctionBuilder<'a> { /// use `call_memmove` instead. pub fn call_memcpy( &mut self, - c...
1
7
7
d72ebe53d439d49d2886048c1276438731f50826
Dan Gohman
2018-11-02T23:18:18
Use the correct base address for memories.
diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs index c3d624754..f22a894c7 100644 --- a/lib/environ/src/environ.rs +++ b/lib/environ/src/environ.rs @@ -290,7 +290,7 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m let new_base = func.create_global_val...
1
1
1
a5cad9a748819597a4b3a8cbd7881cdc6b47fe82
Dan Gohman
2018-11-02T20:33:30
Fix a typo in a comment.
diff --git a/lib/codegen/src/regalloc/virtregs.rs b/lib/codegen/src/regalloc/virtregs.rs index 5d8992a17..55fece93c 100644 --- a/lib/codegen/src/regalloc/virtregs.rs +++ b/lib/codegen/src/regalloc/virtregs.rs @@ -280,7 +280,7 @@ impl UFEntry { /// 2. When done, call `finish_union_find()` to construct the virtual regis...
1
1
1
7094d9f47094e84f01c788a28b5a85a785be4507
Joe Howarth
2018-11-02T20:47:39
Prefix verifier errors with ; (#585) * Prefix verifier errors with ; extract arrow drawing code into helper print ; at beginning of line followed by arrow and error body
diff --git a/lib/codegen/src/print_errors.rs b/lib/codegen/src/print_errors.rs index 5944e407f..8e764065a 100644 --- a/lib/codegen/src/print_errors.rs +++ b/lib/codegen/src/print_errors.rs @@ -84,11 +84,7 @@ fn pretty_instruction_error( printed_instr = true; } - wr...
1
14
10
6f8c3012c662ec11fc38f99e7914391d4309933e
bjorn3
2018-11-02T19:57:14
SimpleJit perf map (#571) * SimpleJit perf map
diff --git a/lib/simplejit/src/backend.rs b/lib/simplejit/src/backend.rs index 68cc7e8e9..f774adbba 100644 --- a/lib/simplejit/src/backend.rs +++ b/lib/simplejit/src/backend.rs @@ -11,6 +11,7 @@ use libc; use memory::Memory; use std::collections::HashMap; use std::ffi::CString; +use std::io::Write; use std::ptr; u...
1
13
1
9471c06da4efeb2e5dfd59bab371ede93ee004da
Dan Gohman
2018-10-24T18:10:20
Update to use newer Rust features. This re-introduces several cleanups that we previously deferred for not supporting Rust 1.25.
diff --git a/lib/bforest/src/node.rs b/lib/bforest/src/node.rs index 768db4017..583fe0f78 100644 --- a/lib/bforest/src/node.rs +++ b/lib/bforest/src/node.rs @@ -105,7 +105,7 @@ impl<F: Forest> NodeData<F> { let size = usize::from(size); // TODO: We could probably use `get_unchecked()` ...
11
14
33
8e114a2703d5a73bc58b43bf1b4bdd818f4f2585
Dan Gohman
2018-10-30T20:07:40
Update authors in Cargo.toml.
diff --git a/Cargo.toml b/Cargo.toml index 6acd090d4..8e8458925 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmtime-tools" -authors = ["The Cranelift Project Developers"] +authors = ["The Wasmtime Project Developers"] version = "0.0.0" description = "Command-line interface for the wa...
1
1
1
34646c6f1f6075ffd0bf1ae007b6daf0c2708c9e
Dan Gohman
2018-10-30T17:08:47
Add some categories and keywords to Cargo.toml.
diff --git a/Cargo.toml b/Cargo.toml index 34ecb9f4c..47f225227 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,8 @@ version = "0.0.0" authors = ["Dan Gohman <sunfish@mozilla.com>"] license = "Apache-2.0 WITH LLVM-exception" readme = "README.md" +categories = ["wasm"] +keywords = ["webassembly", "wasm", "compile...
1
2
0
0b769f5020d2e45517dfa777784dd1cc66e93e51
Dan Gohman
2018-10-29T20:31:50
Use `Display` rather than having an explicit `name()` function for types. This is more idiomatic Rust.
diff --git a/lib/codegen/meta/src/cdsl/types.rs b/lib/codegen/meta/src/cdsl/types.rs index 6f191a10a..60e9888e7 100644 --- a/lib/codegen/meta/src/cdsl/types.rs +++ b/lib/codegen/meta/src/cdsl/types.rs @@ -79,16 +79,6 @@ impl ValueType { self.width() / 8 } - /// Get the name of this type. - pub fn ...
2
40
41
2de5542139c3bef1dd75b82ea039693df25378c6
Dan Gohman
2018-10-27T00:02:22
Make `FuncEnvironment::return_mode()` default to `NormalReturns`. `NormalReturns` is what we expect most users will normally want.
diff --git a/lib/wasm/src/environ/spec.rs b/lib/wasm/src/environ/spec.rs index 9f0dc1496..db6d0761d 100644 --- a/lib/wasm/src/environ/spec.rs +++ b/lib/wasm/src/environ/spec.rs @@ -230,7 +230,9 @@ pub trait FuncEnvironment { /// Should the code be structured to use a single `fallthrough_return` instruction at the ...
1
3
1
a19c6088f08f8dcf0c90f1c832c337ed59d90944
Dan Gieschen Knutson
2018-10-29T03:26:44
use iterative rather than recursive method for following aliases (#573) * use iterative rather than recursive method for following aliases * this avoids consuming stack via plain recursive calls
diff --git a/lib/codegen/src/write.rs b/lib/codegen/src/write.rs index 24b8499f3..d790efa92 100644 --- a/lib/codegen/src/write.rs +++ b/lib/codegen/src/write.rs @@ -283,10 +283,14 @@ fn write_value_aliases( target: Value, indent: usize, ) -> fmt::Result { - for &a in &aliases[target] { - writeln!(w...
2
9
5
bf569b70dcd22bbad59d608bcb04c9f2846f8223
Dan Gohman
2018-10-26T18:24:43
Make cranelift-wasm's `type_to_type` easier to optimize.
diff --git a/lib/wasm/src/translation_utils.rs b/lib/wasm/src/translation_utils.rs index d76d55494..cc2926dad 100644 --- a/lib/wasm/src/translation_utils.rs +++ b/lib/wasm/src/translation_utils.rs @@ -92,13 +92,13 @@ pub struct Memory { /// Helper function translating wasmparser types to Cranelift types when possibl...
1
7
7
87e683b1f47a4527c812b0e3754d0fb48467f04a
Dan Gohman
2018-10-26T18:23:04
Update no_std support.
diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs index 66ae1762a..4014072e4 100644 --- a/lib/frontend/src/frontend.rs +++ b/lib/frontend/src/frontend.rs @@ -12,6 +12,7 @@ use cranelift_codegen::ir::{ use cranelift_codegen::isa::TargetIsa; use cranelift_codegen::packed_option::PackedOption; us...
1
1
0
1b21d3a90ebf9b4496bd40569ebd6519e31015de
Dan Gohman
2018-10-26T18:22:43
Fix the path to cdsl/types.py in a comment.
diff --git a/lib/codegen/src/ir/types.rs b/lib/codegen/src/ir/types.rs index 1d19f5c6d..e1dcf0d17 100644 --- a/lib/codegen/src/ir/types.rs +++ b/lib/codegen/src/ir/types.rs @@ -24,7 +24,7 @@ pub struct Type(u8); /// Not a valid type. Can't be loaded or stored. Can't be part of a SIMD vector. pub const INVALID: Type =...
1
1
1
e999c53eaacd681c0c54dee213c9346154a44b2e
Aaron Power
2018-10-18T14:07:08
Provide optimised codegen for small libc calls
diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs index e04d831ef..66ae1762a 100644 --- a/lib/frontend/src/frontend.rs +++ b/lib/frontend/src/frontend.rs @@ -6,7 +6,8 @@ use cranelift_codegen::ir::function::DisplayFunction; use cranelift_codegen::ir::{ types, AbiParam, DataFlowGraph, Ebb, E...
1
161
7
07c98f533001924099bdc1a927acdf36dc89822a
Dan Gohman
2018-10-24T18:12:24
Fix an unused import warning.
diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs index 0012f61f6..bab6e1394 100644 --- a/cranelift/src/wasm.rs +++ b/cranelift/src/wasm.rs @@ -15,7 +15,6 @@ use cranelift_entity::EntityRef; use cranelift_wasm::{ translate_module, DummyEnvironment, FuncIndex, ModuleEnvironment, ReturnMode, }; -use std::...
1
0
1
6a234893eb224025da080d04c986156a01c1c35a
Dan Gohman
2018-10-24T00:33:20
Remove use of deprecated APIs. std::error::Error's description() function is [deprecated]; follow the recommended advice and use to_string() instead. [deprecated]: https://doc.rust-lang.org/std/error/trait.Error.html#method.description
diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs index 3dd126998..0012f61f6 100644 --- a/cranelift/src/wasm.rs +++ b/cranelift/src/wasm.rs @@ -9,8 +9,8 @@ use cranelift_codegen::print_errors::{pretty_error, pretty_verifier_error}; use cranelift_codegen::settings::FlagsOrIsa; -use cranelift_codegen::Contex...
1
3
4
ed8ecb99df1ceff64f910a7c4571dc07c98cfbab
Dan Gohman
2018-10-22T15:58:37
Remove an obsolete comment.
diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs index be178d554..e04d831ef 100644 --- a/lib/frontend/src/frontend.rs +++ b/lib/frontend/src/frontend.rs @@ -18,10 +18,6 @@ use variable::Variable; /// In order to reduce memory reallocations when compiling multiple functions, /// `FunctionBuilde...
1
0
4
b288c6001a8e963739519114d6d69ec18e53b14c
Boris-Chengbiao Zhou
2018-10-23T04:52:35
Fix all clippy warnings (#564) * Fix all clippy warnings * Revert usage of inclusive ranges * Remove redundant function argument * Revert use of unavailable pointer methods * Introduce ContiguousCaseRange
diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs index 13a6ba7d0..5d5ca2b5d 100755 --- a/cranelift/src/clif-util.rs +++ b/cranelift/src/clif-util.rs @@ -115,7 +115,7 @@ fn add_debug_flag<'a>() -> clap::Arg<'a, 'a> { } /// Returns a vector of clap value options and changes these options into a ve...
17
99
97
3ec21459c5039bfa74a87a4b2017e9d831a434ab
Benjamin Bouvier
2018-10-04T08:56:05
Remove verify! macro that's used only once;
diff --git a/lib/codegen/src/verifier/mod.rs b/lib/codegen/src/verifier/mod.rs index 0219b18db..215508ce1 100644 --- a/lib/codegen/src/verifier/mod.rs +++ b/lib/codegen/src/verifier/mod.rs @@ -120,53 +120,6 @@ macro_rules! nonfatal { }); } -/// Shorthand syntax for calling functions of the form -/// `verify_foo...
1
8
51
8cd1b879175067cd019ec79a951da4b448d801f5
Dan Gohman
2018-10-19T05:44:51
Rename parse_elements_section. In WebAssembly documentation, it's the "element" section.
diff --git a/lib/wasm/src/module_translator.rs b/lib/wasm/src/module_translator.rs index 023d14dba..6b7c854f2 100644 --- a/lib/wasm/src/module_translator.rs +++ b/lib/wasm/src/module_translator.rs @@ -3,7 +3,7 @@ use cranelift_codegen::timing; use environ::{ModuleEnvironment, WasmError, WasmResult}; use sections_tra...
2
4
4
709eed21c1ae35b362be741afbf8a087cf15b24a
oooooba
2018-10-19T17:49:41
Use types to represent wasm global/table/memory/signature indices (#560) * Use a type to represent wasm table indices. * Use a type to represent wasm global variable indices. * Use a type to represent wasm memory indices. * Use a type to represent wasm signature indices. * Use PrimaryMap instead of Vec to ...
diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 152c20ca2..e7a62b65f 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -380,9 +380,9 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( let callee = state.pop1(); l...
5
70
39
e10a3434b8d84874bc7369bb8f73e52e1682e856
Dan Gohman
2018-10-16T17:03:48
Update test files for the cranelift_filetests::run API change.
diff --git a/cranelift/tests/filetests.rs b/cranelift/tests/filetests.rs index 5eb4ca363..89646a2d3 100644 --- a/cranelift/tests/filetests.rs +++ b/cranelift/tests/filetests.rs @@ -3,5 +3,6 @@ extern crate cranelift_filetests; #[test] fn filetests() { // Run all the filetests in the following directories. - c...
1
2
1
af0a239539e2e08222f8daa14ae7cb18b3a016c1
Benjamin Bouvier
2018-10-15T18:17:25
Revive the -T aka --time-passes argument to report run times on the CLI;
diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs index b38d4c587..13a6ba7d0 100755 --- a/cranelift/src/clif-util.rs +++ b/cranelift/src/clif-util.rs @@ -199,10 +199,12 @@ fn main() { } ("test", Some(rest_cmd)) => { handle_debug_flag(rest_cmd.is_present("debug")); - ...
5
54
9
5f11f444823a92eb78f26321ee5b3bde79c04b2b
Nathan Froyd
2018-10-09T18:36:53
add a --target option to wasm2obj
diff --git a/Cargo.toml b/Cargo.toml index ef5c09ade..6acd090d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,5 +28,6 @@ serde = "1.0.75" serde_derive = "1.0.75" tempdir = "*" faerie = "0.5.0" +target-lexicon = { version = "0.0.3", default-features = false } [workspace] diff --git a/src/wasm2obj.rs b/src/wasm2o...
2
36
8
c2069762efd805be14f895afae0e1426ddf6151b
bjorn3
2018-10-09T22:38:16
Declare br_table otherwise ebb as predecessor (#551) * Declare br_table otherwise ebb as predecessor (fixes #545)
diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs index 716f5cf3d..be178d554 100644 --- a/lib/frontend/src/frontend.rs +++ b/lib/frontend/src/frontend.rs @@ -141,7 +141,10 @@ impl<'short, 'long> InstBuilderBase<'short> for FuncInstBuilder<'short, 'long> { None => { ...
2
83
2
5a96e022db411f73ed375fe1c0aff63b22900045
Dan Gohman
2018-10-09T21:36:48
Update to the rustfmt in rust 1.29, which is now stable.
diff --git a/lib/environ/src/lib.rs b/lib/environ/src/lib.rs index b161c2744..810a8258b 100644 --- a/lib/environ/src/lib.rs +++ b/lib/environ/src/lib.rs @@ -3,15 +3,32 @@ //! the translation the base addresses of regions of memory that will hold the globals, tables and //! linear memories. -#![deny(missing_docs, tr...
6
114
32
7f90414ae1b816ffa41a4cd43be1e863e0563a29
Dan Gohman
2018-10-06T00:16:51
Update no_std support.
diff --git a/lib/codegen/src/lib.rs b/lib/codegen/src/lib.rs index ec924dc6b..24c381a6e 100644 --- a/lib/codegen/src/lib.rs +++ b/lib/codegen/src/lib.rs @@ -48,6 +48,8 @@ // Turns on no_std and alloc features if std is not available. #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), featur...
3
9
2
8bd0cf25336a085a3de2c87460b5cee891aea6aa
Dan Gohman
2018-10-05T23:52:13
Update to raw-cpuid 6.0.0.
diff --git a/lib/native/Cargo.toml b/lib/native/Cargo.toml index da585be59..58a5234d5 100644 --- a/lib/native/Cargo.toml +++ b/lib/native/Cargo.toml @@ -13,7 +13,7 @@ cranelift-codegen = { path = "../codegen", version = "0.22.0", default-features target-lexicon = { version = "0.0.3", default-features = false } [tar...
1
1
1
17a96319811558f5a8c6a0724fceb1b669224891
Dan Gohman
2018-10-05T23:40:50
Use more `Self` keywords instead of repeating the type name.
diff --git a/lib/bforest/src/map.rs b/lib/bforest/src/map.rs index 636cee2df..97ab7e6d9 100644 --- a/lib/bforest/src/map.rs +++ b/lib/bforest/src/map.rs @@ -266,12 +266,8 @@ where C: Comparator<K>, { /// Create a cursor with a default (off-the-end) location. - fn new( - container: &'a mut Map<K, V>...
16
40
58
9a1e966156c0649ff1dca2761baf70299b203466
Dan Gohman
2018-10-05T20:46:38
Fix an unused import warning.
diff --git a/lib/codegen/src/verifier/mod.rs b/lib/codegen/src/verifier/mod.rs index ba396a8b1..49deccd77 100644 --- a/lib/codegen/src/verifier/mod.rs +++ b/lib/codegen/src/verifier/mod.rs @@ -70,7 +70,7 @@ use ir::{ }; use isa::TargetIsa; use iterators::IteratorExtras; -use settings::{Flags, FlagsOrIsa}; +use setti...
1
1
1
652e526bb631376ad0bef490e999be3747d15ce7
Dan Gohman
2018-10-05T16:12:47
Put TargetIsa's emit_inst under a "testing_hooks" feature. (#531) * Put TargetIsa's emit_inst under a "testing_hooks" feature. In practice, TargetIsa's emit_inst pulls in its own instantiation of the target-specifi `emit_inst` functions, which can be quite large, and LTO doesn't eliminate them because they're hel...
diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index b1757f95b..7c1d2d0e9 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -34,6 +34,9 @@ cranelift-codegen-meta = { path = "meta", version = "0.22.0" } default = ["std"] std = ["cranelift-entity/std", "cranelift-bforest/std", "target-le...
7
24
7
06bbd3e39373fa2a84ef0ef8cfb91dc9602ad245
Dan Gohman
2018-09-29T06:19:15
Pass the target isa when printing a function as a string. This allows encodings and register names to be printed correctly.
diff --git a/lib/filetests/src/test_dce.rs b/lib/filetests/src/test_dce.rs index e5a4e79f9..6c1645d5f 100644 --- a/lib/filetests/src/test_dce.rs +++ b/lib/filetests/src/test_dce.rs @@ -41,7 +41,7 @@ impl SubTest for TestDCE { .dce(context.flags_or_isa()) .map_err(|e| pretty_error(&comp_ctx.fun...
6
6
6
20eea311a39ed43163f247eaf4e645e351276fb0
Dan Gohman
2018-09-29T05:55:06
Miscellaenous code cleanups.
diff --git a/lib/codegen/src/postopt.rs b/lib/codegen/src/postopt.rs index 178f143c6..fdfc35869 100644 --- a/lib/codegen/src/postopt.rs +++ b/lib/codegen/src/postopt.rs @@ -171,17 +171,15 @@ fn optimize_cpu_flags( struct MemOpInfo { opcode: Opcode, - inst: Inst, itype: Type, arg: Value, st_arg...
1
36
45
dc9221a70c3b9d1573005dacbdae5d097425c5f7
Dan Gohman
2018-09-29T06:22:01
Fix unused variable warnings.
diff --git a/lib/simplejit/tests/basic.rs b/lib/simplejit/tests/basic.rs index 7363fee4e..3c79e5549 100644 --- a/lib/simplejit/tests/basic.rs +++ b/lib/simplejit/tests/basic.rs @@ -60,7 +60,7 @@ fn define_simple_function(module: &mut Module<SimpleJITBackend>) -> FuncId { fn double_finalize() { let mut module: Mod...
1
2
2
bed073fac0e5f75fe877e27c8499b9cede47e11f
Dan Gohman
2018-10-04T05:42:54
Fix copy+pastos in debug messages.
diff --git a/cranelift/src/compile.rs b/cranelift/src/compile.rs index 708763e7b..5a93daa5a 100644 --- a/cranelift/src/compile.rs +++ b/cranelift/src/compile.rs @@ -34,13 +34,13 @@ impl binemit::RelocSink for PrintRelocs { addend: binemit::Addend, ) { if self.flag_print { - println!("r...
1
2
2
ddf8fd23b524c7be566c668ecf58696005278b97
Dan Gohman
2018-09-29T05:50:46
Remove obsolete TODO comments.
diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 9b2f62777..3c615568c 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -417,7 +417,6 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( /******************************* Load instruc...
1
0
2
17859a87ff6af67a0559c23fae92ba3cc44940b9
Dan Gohman
2018-09-29T05:50:31
Fix a typo in a comment.
diff --git a/lib/codegen/src/ir/immediates.rs b/lib/codegen/src/ir/immediates.rs index 3297769ac..2db712394 100644 --- a/lib/codegen/src/ir/immediates.rs +++ b/lib/codegen/src/ir/immediates.rs @@ -215,7 +215,7 @@ impl Offset32 { Offset32(x) } - /// Create a new `Offset32` representing the signed numv...
1
1
1
de1d82b4ba8cf71117bfb36ce913a8d19b172626
Benjamin Bouvier
2018-10-03T12:58:07
Make SettingsError easier to diagnose;
diff --git a/lib/codegen/src/settings.rs b/lib/codegen/src/settings.rs index 15274d381..81f1ae210 100644 --- a/lib/codegen/src/settings.rs +++ b/lib/codegen/src/settings.rs @@ -85,7 +85,7 @@ impl Builder { /// Look up a descriptor by name. fn lookup(&self, name: &str) -> SetResult<(usize, detail::Detail)> { ...
2
38
17
8b296e4874de57bc11d6941fa42f16c83ca5d191
Benjamin Bouvier
2018-10-02T13:05:16
Fixes #504: Implement Display/Fail for SetError and LookupError;
diff --git a/lib/codegen/src/isa/mod.rs b/lib/codegen/src/isa/mod.rs index b95c32f96..33e78c96d 100644 --- a/lib/codegen/src/isa/mod.rs +++ b/lib/codegen/src/isa/mod.rs @@ -120,12 +120,14 @@ pub fn lookup(triple: Triple) -> Result<Builder, LookupError> { } /// Describes reason for target lookup failure -#[derive(Pa...
2
7
2
e8fc612dc24ddff24ab1a7acc4ce9277a54aa018
Dan Gohman
2018-09-28T23:56:04
Update to wasmparser 0.19.0.
diff --git a/lib/wasm/Cargo.toml b/lib/wasm/Cargo.toml index bd2c12d46..beada39d7 100644 --- a/lib/wasm/Cargo.toml +++ b/lib/wasm/Cargo.toml @@ -10,7 +10,7 @@ readme = "README.md" keywords = ["webassembly", "wasm"] [dependencies] -wasmparser = { version = "0.17.2", default-features = false } +wasmparser = { version...
2
10
7
b94cf6c65be5ac9a0da2a00df45032b342f932c5
Dan Gohman
2018-09-28T21:50:01
Rename test modules to "tests" for consistency. The majority of the test modules were already named "tests", and that's what the example in the Rust book uses, so switch to that for all test modules, for consistency.
diff --git a/lib/bforest/src/lib.rs b/lib/bforest/src/lib.rs index 7971d481d..0fce1c11b 100644 --- a/lib/bforest/src/lib.rs +++ b/lib/bforest/src/lib.rs @@ -158,7 +158,7 @@ fn slice_shift<T: Copy>(s: &mut [T], n: usize) { } #[cfg(test)] -mod test { +mod tests { use super::*; use entity::EntityRef; diff ...
11
11
12
52aa1d292a6a08a1102c6e78573ed2febfc23430
Dan Gohman
2018-09-28T21:46:26
Update no_std support in cranelift-frontend.
diff --git a/lib/frontend/Cargo.toml b/lib/frontend/Cargo.toml index 171c158b8..90f58edc1 100644 --- a/lib/frontend/Cargo.toml +++ b/lib/frontend/Cargo.toml @@ -13,11 +13,12 @@ readme = "README.md" cranelift-codegen = { path = "../codegen", version = "0.22.0", default-features = false } target-lexicon = { version = "...
4
17
5