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
5389b7784e090b1c4a0969d4922ed753d3b6444c
bjorn3
2018-07-29T15:58:53
Check signature compatibility in declare_function (fixes #427)
diff --git a/cranelift/tests/moduletests.rs b/cranelift/tests/moduletests.rs new file mode 100644 index 000000000..d829aa8e9 --- /dev/null +++ b/cranelift/tests/moduletests.rs @@ -0,0 +1,22 @@ +extern crate cranelift_codegen; +extern crate cranelift_module; +extern crate cranelift_simplejit; + +use cranelift_codegen::s...
2
28
2
a8ded3a6f18036b2db198f9e17d9724d5a3ca97d
Dan Gohman
2018-08-01T21:12:46
Remove unneeded dependencies.
diff --git a/lib/serde/Cargo.toml b/lib/serde/Cargo.toml index 270ab0be4..91bf4b0a6 100644 --- a/lib/serde/Cargo.toml +++ b/lib/serde/Cargo.toml @@ -13,25 +13,17 @@ name = "clif-json" path = "src/clif-json.rs" [dependencies] -cfg-if = "0.1" -filecheck = "0.3.0" docopt = "1" serde = "1.0.8" serde_derive = "1.0.8"...
1
2
10
bc8e5f82c890349131b27b4b3f1a24911e78d4b9
Dan Gohman
2018-08-01T21:10:54
Add use declarations needed for no_std mode.
diff --git a/lib/codegen/src/print_errors.rs b/lib/codegen/src/print_errors.rs index 15c6fe7dd..f85f5ccfc 100644 --- a/lib/codegen/src/print_errors.rs +++ b/lib/codegen/src/print_errors.rs @@ -5,6 +5,7 @@ use ir::entities::Inst; use ir::function::Function; use isa::{RegInfo, TargetIsa}; use result::CodegenError; +us...
1
1
0
c8350f4e8ff167cee121a9eea6ec854245221b93
Dan Gohman
2018-08-01T21:06:16
Update to raw-cpuid 5.0.0.
diff --git a/lib/native/Cargo.toml b/lib/native/Cargo.toml index e9ce77ed4..20c3909d7 100644 --- a/lib/native/Cargo.toml +++ b/lib/native/Cargo.toml @@ -12,8 +12,7 @@ cranelift-codegen = { path = "../codegen", version = "0.17.0", default-features target-lexicon = { version = "0.0.3", default-features = false } [tar...
1
1
2
c49c20713c422c7936626195c1d9ff3a725c3704
Dan Gohman
2018-08-01T20:33:54
Check for duplicate jump tables before performing any IR mutations. This isn't fixing an actual bug, but it does make `add_jt` more consistent with the other `add_*` functions.
diff --git a/lib/reader/src/parser.rs b/lib/reader/src/parser.rs index 3c9cb4c56..bef37a86f 100644 --- a/lib/reader/src/parser.rs +++ b/lib/reader/src/parser.rs @@ -233,11 +233,12 @@ impl<'a> Context<'a> { // Allocate a new jump table. fn add_jt(&mut self, jt: JumpTable, data: JumpTableData, loc: Location) ...
1
2
1
13fea26c95f13279aa77a5e3c7a200fa4e1eb9a8
Aaron Power
2018-07-26T18:17:45
Correctly handle duplicate definitions
diff --git a/lib/reader/src/parser.rs b/lib/reader/src/parser.rs index 91b98da1a..11cb57cef 100644 --- a/lib/reader/src/parser.rs +++ b/lib/reader/src/parser.rs @@ -123,12 +123,13 @@ impl<'a> Context<'a> { // Allocate a new stack slot. fn add_ss(&mut self, ss: StackSlot, data: StackSlotData, loc: Location) ...
1
105
6
d0fbf47987d52b6fb738dfe7354ec21791d489fa
Dan Gohman
2018-07-26T18:51:12
Fix rustfmt errors.
diff --git a/lib/filetests/src/lib.rs b/lib/filetests/src/lib.rs index db1898f25..2a587f9ea 100644 --- a/lib/filetests/src/lib.rs +++ b/lib/filetests/src/lib.rs @@ -5,8 +5,7 @@ #![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)] #![warn(unused_import_braces, unstable_features)] -#![cfg_attr(feature=...
1
1
2
e0124fa82fba000412856476f97d078fba37c5e2
Dan Gohman
2018-07-26T18:09:11
Rename local variables to clarify their purpose.
diff --git a/lib/codegen/src/legalizer/heap.rs b/lib/codegen/src/legalizer/heap.rs index fdf3fdb09..122474c63 100644 --- a/lib/codegen/src/legalizer/heap.rs +++ b/lib/codegen/src/legalizer/heap.rs @@ -17,7 +17,7 @@ pub fn expand_heap_addr( _isa: &TargetIsa, ) { // Unpack the instruction. - let (heap, offs...
1
17
17
cc7ba7e69a41cc7ff102f0ca4fc48c28feb01e40
Aaron Power
2018-07-25T19:18:15
Fixed remaning clippy warnings
diff --git a/lib/codegen/src/print_errors.rs b/lib/codegen/src/print_errors.rs index 3cf6af6da..5783056c0 100644 --- a/lib/codegen/src/print_errors.rs +++ b/lib/codegen/src/print_errors.rs @@ -39,22 +39,22 @@ fn pretty_function_error( match err.location { ir::entities::AnyEntity::Inst(inst) => { ...
2
6
5
952a086f32d29a176c40f7283b71f30e3cfff3bd
Aaron Power
2018-07-25T15:12:39
Fixed trivially_copy_pass_by_ref warnings
diff --git a/lib/codegen/src/flowgraph.rs b/lib/codegen/src/flowgraph.rs index 09a970821..9eda2741a 100644 --- a/lib/codegen/src/flowgraph.rs +++ b/lib/codegen/src/flowgraph.rs @@ -123,11 +123,11 @@ impl ControlFlowGraph { for inst in func.layout.ebb_insts(ebb) { match func.dfg.analyze_branch(inst...
4
20
20
299898d494b786f65c49968223b542a991611566
Corey Farwell
2018-07-24T13:59:21
Add fuzz target for cranelift_reader::parse_test.
diff --git a/cranelift/fuzz/Cargo.toml b/cranelift/fuzz/Cargo.toml index 3805d5f87..af5f21683 100644 --- a/cranelift/fuzz/Cargo.toml +++ b/cranelift/fuzz/Cargo.toml @@ -12,6 +12,7 @@ cargo-fuzz = "*" binaryen = { git = "https://github.com/pepyakin/binaryen-rs.git" } libfuzzer-sys = { git = "https://github.com/rust-fu...
2
16
0
eed861c6e16d7cd15ac42e2aa2f5584b01e4e96b
Aaron Power
2018-07-24T13:17:21
Implemented clippy improvements
diff --git a/lib/codegen/src/postopt.rs b/lib/codegen/src/postopt.rs index 517621bef..29ef49f75 100644 --- a/lib/codegen/src/postopt.rs +++ b/lib/codegen/src/postopt.rs @@ -218,7 +218,7 @@ fn optimize_complex_addresses(pos: &mut EncCursor, inst: Inst, isa: &TargetIsa) if let ValueDef::Result(result_inst, _) = pos....
5
15
14
8904ec77c965053e97f130472e25a35f3ad5fbc8
Dan Gohman
2018-07-23T23:53:14
Temporarily disable use of cretonne-codegen-meta. Once we figure out how to publish this code, we can re-enable it.
diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index 4f3cda4ca..cd22362c6 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -21,8 +21,9 @@ target-lexicon = { version = "0.0.3", default-features = false } # machine code. Integration tests that need external dependencies can be # accomod...
2
10
7
78b04fc8abab139e9745cd3d07706a93722d41f4
Benjamin Bouvier
2018-07-19T14:06:47
Promote the (Block, Inst) tuple into a PredBlock struct;
diff --git a/lib/frontend/src/frontend.rs b/lib/frontend/src/frontend.rs index 429b72c49..bccf6cc53 100644 --- a/lib/frontend/src/frontend.rs +++ b/lib/frontend/src/frontend.rs @@ -544,10 +544,9 @@ where Some(entry) => self.position.ebb.unwrap() == entry, }; !is_entry && self.func_ctx.ssa...
2
31
12
f72ff791b454deb2b727d43550f3db12932bd25c
Benjamin Bouvier
2018-07-19T13:29:29
Promote the BasicBlock tuple to a real struct; It makes reading code that uses it easier to understand.
diff --git a/lib/codegen/src/cfg_printer.rs b/lib/codegen/src/cfg_printer.rs index 932345ef5..bdd57bc1c 100644 --- a/lib/codegen/src/cfg_printer.rs +++ b/lib/codegen/src/cfg_printer.rs @@ -2,7 +2,7 @@ use std::fmt::{Display, Formatter, Result, Write}; -use flowgraph::ControlFlowGraph; +use flowgraph::{BasicBlock, ...
12
127
50
ce177d643e3372f4123d8c151d5ff77eec37da44
data-pup
2018-07-22T17:05:38
Remove gen_build_deps module.
diff --git a/lib/codegen-meta/src/gen_build_deps.rs b/lib/codegen-meta/src/gen_build_deps.rs deleted file mode 100644 index a267bc664..000000000 --- a/lib/codegen-meta/src/gen_build_deps.rs +++ /dev/null @@ -1,48 +0,0 @@ -//! Generate build dependencies for Cargo. -//! -//! The `build.rs` script is invoked by cargo whe...
3
0
62
dd3a9dab6e3176fa584c7d1339af986467003b88
Dan Gohman
2018-07-20T23:16:36
Make an initial pass through clippy warnings.
diff --git a/lib/execute/src/lib.rs b/lib/execute/src/lib.rs index d1e62803e..e9ba6f664 100644 --- a/lib/execute/src/lib.rs +++ b/lib/execute/src/lib.rs @@ -13,7 +13,7 @@ use region::protect; use region::Protection; use std::mem::transmute; use std::ptr::write_unaligned; -use wasmtime_runtime::Compilation; +use wasm...
3
8
12
f3a6cab47201afa7aedab889a25e82088fcc235c
Dan Gohman
2018-07-20T23:10:59
Make package names consistent with cranelift's.
diff --git a/Cargo.toml b/Cargo.toml index 2f34c7f69..fa868edd3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "wasmtime_tools" +name = "wasmtime-tools" authors = ["The Cranelift Project Developers"] version = "0.0.0" description = "Command-line interface for the wasmtime crate" @@ -22,9...
5
18
28
5f3cd868cd780e580a27a7eb6d8d6b009c278be5
Benjamin Bouvier
2018-07-20T15:45:34
[wasm] Rename native_pointer() to pointer_type() to make it more apparent it's a type;
diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 578ba9dfc..dec6dda89 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -75,7 +75,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( let val = match state.get_global(builder.fu...
3
7
7
32d657d62a5c55283b745f8b6e16b9458c17d9ee
Dan Gohman
2018-07-19T18:38:46
Update to faerie 0.4.4 and goblin 0.0.17.
diff --git a/lib/faerie/Cargo.toml b/lib/faerie/Cargo.toml index 6be498902..1f3f9d538 100644 --- a/lib/faerie/Cargo.toml +++ b/lib/faerie/Cargo.toml @@ -11,8 +11,8 @@ readme = "README.md" [dependencies] cranelift-codegen = { path = "../codegen", version = "0.16.1" } cranelift-module = { path = "../module", version =...
2
5
5
45ef3149f16e8144bfd63348097fbcd3cadbfbed
Dan Gohman
2018-07-19T13:40:34
Update hashmap_core to 0.1.9.
diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index 18cf15822..025096be5 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -14,7 +14,7 @@ build = "build.rs" cranelift-entity = { path = "../entity", version = "0.16.1", default-features = false } failure = { version = "0.1.1", default-f...
3
3
3
c77df6f6d9be8ee6d1d0782917fa7c0b55300683
Dan Gohman
2018-07-19T13:33:36
Add a TODO about a potential optimization opportunity.
diff --git a/lib/frontend/src/ssa.rs b/lib/frontend/src/ssa.rs index 9c676ceb0..0f896fa1c 100644 --- a/lib/frontend/src/ssa.rs +++ b/lib/frontend/src/ssa.rs @@ -38,6 +38,7 @@ where { // Records for every variable and for every relevant block, the last definition of // the variable in the block. + // TODO:...
1
1
0
7b290cd9000073383d67dcb3f5f499d269c92cd5
Benjamin Bouvier
2018-07-19T12:56:58
Move the code section parsing into its own function;
diff --git a/lib/wasm/src/module_translator.rs b/lib/wasm/src/module_translator.rs index 907a92660..023d14dba 100644 --- a/lib/wasm/src/module_translator.rs +++ b/lib/wasm/src/module_translator.rs @@ -3,9 +3,9 @@ use cranelift_codegen::timing; use environ::{ModuleEnvironment, WasmError, WasmResult}; use sections_tra...
2
25
16
03159a920050f740740c62035bc1e66a76459577
Benjamin Bouvier
2018-07-12T17:59:06
Misc refactorings when looking at the wasm code;
diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs index 1e900537f..057c167fb 100644 --- a/cranelift/src/wasm.rs +++ b/cranelift/src/wasm.rs @@ -141,8 +141,8 @@ fn handle_module( let num_func_imports = dummy_environ.get_num_func_imports(); let mut total_module_code_size = 0; + let mut context = C...
4
28
50
1081d061734c91d464f24e8c1884128bbc21840a
Dan Gohman
2018-07-18T05:44:00
Use the new realm-switching ABI in the baldrdash calling convention.
diff --git a/lib/codegen/src/isa/x86/abi.rs b/lib/codegen/src/isa/x86/abi.rs index 8bb1decd8..42cacf27a 100644 --- a/lib/codegen/src/isa/x86/abi.rs +++ b/lib/codegen/src/isa/x86/abi.rs @@ -103,7 +103,7 @@ impl ArgAssigner for Args { .into() } // This is SpiderM...
1
1
1
76a537e3d4c5344d1bf2c6cf347317caf6482284
Dan Gohman
2018-07-17T22:46:35
Update to wasmparser.rs 0.17.2.
diff --git a/lib/wasm/Cargo.toml b/lib/wasm/Cargo.toml index 1f2fdf446..4c287cc05 100644 --- a/lib/wasm/Cargo.toml +++ b/lib/wasm/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" keywords = ["webassembly", "wasm"] [dependencies] -wasmparser = { version = "0.17.1", default-features = false } +wasmparser = { version =...
1
1
1
289145e7cf2ba5db25f79f82a62e72c8d583e870
Dan Gohman
2018-07-17T22:43:39
Update to wasmparser.rs 0.17.1.
diff --git a/lib/wasm/Cargo.toml b/lib/wasm/Cargo.toml index dc4faf300..1f2fdf446 100644 --- a/lib/wasm/Cargo.toml +++ b/lib/wasm/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" keywords = ["webassembly", "wasm"] [dependencies] -wasmparser = { version = "0.17.0", default-features = false } +wasmparser = { version =...
1
1
1
eb980821555bf36a7cd72ce9ef27a9cd912847e0
Dan Gohman
2018-07-14T13:46:22
Update to faerie 0.4.3. This resolves conflicts when multiple versions of target-lexicon are used at the same time.
diff --git a/lib/faerie/Cargo.toml b/lib/faerie/Cargo.toml index 618163fe2..9700bf3a6 100644 --- a/lib/faerie/Cargo.toml +++ b/lib/faerie/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" [dependencies] cranelift-codegen = { path = "../codegen", version = "0.14.0" } cranelift-module = { path = "../module", version =...
1
1
1
8930cb1b5da00cb5f0dcb0dfb3da344e2c2079ce
Dan Gohman
2018-07-13T23:31:20
Update dependency versions.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 9716d4821..0ab09e158 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -31,7 +31,7 @@ serde_derive = "1.0.8" term = "0.5.1" capstone = { version = "0.4", optional = true } wabt = { version = "0.4", optional = true } -target-lexicon = "0.0.2...
8
10
10
f833d25ad137ca1784b84442622dbedd8b15d10b
Dan Gohman
2018-07-13T23:27:19
Add a comment mentioning why we're remaining at cpuid 3.x for now.
diff --git a/lib/native/Cargo.toml b/lib/native/Cargo.toml index d0eec6667..a1c89a9f6 100644 --- a/lib/native/Cargo.toml +++ b/lib/native/Cargo.toml @@ -12,6 +12,7 @@ cranelift-codegen = { path = "../codegen", version = "0.14.0", default-features target-lexicon = { version = "0.0.2", default-features = false } [tar...
1
1
0
202e45c2130c2bf6e1bdeff56706b3bc39bd9118
Lachlan Sneff
2018-07-13T02:17:25
Fix broken build on no_std
diff --git a/lib/codegen/src/lib.rs b/lib/codegen/src/lib.rs index d4806f966..f9ce64bcf 100644 --- a/lib/codegen/src/lib.rs +++ b/lib/codegen/src/lib.rs @@ -119,6 +119,6 @@ mod std { pub use self::hashmap_core::map as hash_map; pub use self::hashmap_core::{HashMap, HashSet}; - pub use alloc::...
2
2
2
65ef4a7583bbe485d81c90b268b928df6f745d5f
Amanieu d'Antras
2018-07-11T20:02:22
Add EntityList::from_slice to build a list from an existing slice
diff --git a/lib/entity/src/list.rs b/lib/entity/src/list.rs index 3c5bd25a1..f94f8ef56 100644 --- a/lib/entity/src/list.rs +++ b/lib/entity/src/list.rs @@ -225,6 +225,23 @@ impl<T: EntityRef> EntityList<T> { Default::default() } + /// Create a new list with the contents initialized from a slice. + ...
1
36
0
0616a960d6470d3afc4c466ebe72e3e612df1e95
Benjamin Bouvier
2018-07-10T13:55:53
[clippy] A few fixes in module/src/module.rs; - use Self more to indicate the current type; - explicitly clone one Option; - invert !is_none to is_some;
diff --git a/lib/module/src/module.rs b/lib/module/src/module.rs index 76ac8926b..216e3ed6e 100644 --- a/lib/module/src/module.rs +++ b/lib/module/src/module.rs @@ -20,7 +20,7 @@ entity_impl!(FuncId, "funcid"); /// Function identifiers are namespace 0 in `ir::ExternalName` impl From<FuncId> for ir::ExternalName { -...
1
12
12
25508ac66ee15333558875606059088ea75b132a
Benjamin Bouvier
2018-07-10T13:41:59
[clippy] Pass more types by value; wasmparser::Type is an enum, and there was one Location I missed.
diff --git a/lib/reader/src/parser.rs b/lib/reader/src/parser.rs index 641fe2a89..e1cc270c6 100644 --- a/lib/reader/src/parser.rs +++ b/lib/reader/src/parser.rs @@ -197,7 +197,7 @@ impl<'a> Context<'a> { } // Resolve a reference to a signature. - fn check_sig(&self, sig: SigRef, loc: &Location) -> ParseR...
4
14
14
bea843519cf647000cd1276614a5fc06917eb145
Benjamin Bouvier
2018-07-10T13:39:36
[clippy] Return explicit unit values;
diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 76290364f..e6018a11b 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -47,11 +47,12 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( environ: &mut FE, ) -> WasmResult<()> { if ...
1
5
3
26523fdf5c60815c4160a98c9d2ee35c8dd8082e
Benjamin Bouvier
2018-07-09T14:15:17
[clippy] Pass a few argument types by value, not by reference; Since Location is basically just a usize, and wasmparser::Type is an enum, and both are copiable, this passes them down by value instead of by reference, as suggested by Clippy.
diff --git a/cranelift/src/utils.rs b/cranelift/src/utils.rs index 00f5bab34..8940778f8 100644 --- a/cranelift/src/utils.rs +++ b/cranelift/src/utils.rs @@ -51,7 +51,7 @@ pub fn parse_sets_and_triple( parse_options( flag_set.iter().map(|x| x.as_str()), &mut flag_builder, - &Location { line...
4
52
57
b263a8344c663bc12c9cab9da692371f7230e02d
Benjamin Bouvier
2018-07-09T14:03:42
[clippy] Use subsec_millis() instead of nanos and division;
diff --git a/lib/filetests/src/runner.rs b/lib/filetests/src/runner.rs index 1e544ba0a..3b261cd44 100644 --- a/lib/filetests/src/runner.rs +++ b/lib/filetests/src/runner.rs @@ -40,13 +40,7 @@ impl Display for QueueEntry { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let p = self.path.to_string_l...
1
1
7
0ad7dbf689cb1ded36084b5dbe9c023db0a98ddd
Benjamin Bouvier
2018-07-09T14:03:25
[clippy] Remove unnecessary closures;
diff --git a/lib/wasm/src/func_translator.rs b/lib/wasm/src/func_translator.rs index 9f9390438..105cb190a 100644 --- a/lib/wasm/src/func_translator.rs +++ b/lib/wasm/src/func_translator.rs @@ -137,14 +137,14 @@ fn parse_local_decls( let mut next_local = num_params; let local_count = reader .read_loca...
2
4
4
1987d4dba93046d214742f50ebd729a3561ed4f2
Benjamin Bouvier
2018-07-06T19:04:00
Reject with a plain text error when no ISA is defined with the wasm command; (#391) And restructure code a bit to make it easier to understand.
diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs index 13356a428..101d31be3 100644 --- a/cranelift/src/wasm.rs +++ b/cranelift/src/wasm.rs @@ -79,44 +79,51 @@ fn handle_module( vprint!(flag_verbose, "Translating... "); terminal.reset().unwrap(); - let mut data = read_to_end(path.clone()).map_er...
1
33
26
c6badde836c708ff3bda6472ee239787529a6b8d
Amanieu d'Antras
2018-07-06T02:17:53
Update wabt to 0.4 (#389) This fixes compilation on system with GCC 8.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index ea4d05fca..3de5d020b 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -30,7 +30,7 @@ serde = "1.0.8" serde_derive = "1.0.8" term = "0.5.1" capstone = { version = "0.4", optional = true } -wabt = { version = "0.3", optional = true } +wabt =...
2
2
2
e5014e0fff6b2e96463ae763bfa2f0b61805ec4e
Grégoire Geis
2018-07-04T03:54:54
Made Capstone an optional dependency (fixes #382) (#383) * Made Capstone an optional dependency (fixes #382). * Introduced feature 'disas' for disassembly (related to #382). * Made 'disas' a default feature in cretonne-tools. * Fixed errors in src/compile.rs introduced by get_disassembler changes. - Moves ...
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 8c1730e6a..ea4d05fca 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -29,12 +29,13 @@ docopt = "1" serde = "1.0.8" serde_derive = "1.0.8" term = "0.5.1" -capstone = "0.4" +capstone = { version = "0.4", optional = true } wabt = { version ...
3
55
38
ff5660624d116b18603c04d7a4af5fe446b733d8
Dan Gohman
2018-07-03T05:37:40
Clarify wording in a comment.
diff --git a/lib/codegen/src/regalloc/liveness.rs b/lib/codegen/src/regalloc/liveness.rs index 959e48183..609b71c15 100644 --- a/lib/codegen/src/regalloc/liveness.rs +++ b/lib/codegen/src/regalloc/liveness.rs @@ -42,9 +42,9 @@ //! This algorithm has some disadvantages that makes us look elsewhere: //! //! - Quadrati...
1
3
3
b17d1617cacb0c88c7b9362ed5e13ab738802689
Dan Gohman
2018-07-02T22:09:30
Update to hashmap_core 0.1.8.
diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index c68710f35..43c073c72 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -14,7 +14,7 @@ build = "build.rs" cretonne-entity = { path = "../entity", version = "0.12.0", default-features = false } failure = { version = "0.1.1", default-fe...
3
3
3
7a55a107aee338c0ec6b2f6f507085298dd233b8
Dan Gohman
2018-06-26T21:03:22
Say "Global Variable" when referring to the WebAssembly concept. This helps avoid confusion between wasm global variables and cretonne global values.
diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 7f9d39039..76290364f 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -27,7 +27,7 @@ use cretonne_codegen::ir::types::*; use cretonne_codegen::ir::{self, InstBuilder, JumpTableData, MemFlags}; use...
8
26
24
7bed3426a76c6f31deff1872299284f20db5493d
Caroline Cullen
2018-06-28T17:17:27
Adds decoration to the verifier errors. (#375) * Adds decoration to the verifier errors. example: function %bad(i32) fast { ebb0(v0: i32): brnz.i32 v0, ebb1 return ^~~~~~ verifier inst1: Internal return not allowed with return_at_end=1 ebb1: trapz.i32 v0, user6 return } Fixes ...
diff --git a/lib/codegen/src/print_errors.rs b/lib/codegen/src/print_errors.rs index 777fde05b..61e10d7ed 100644 --- a/lib/codegen/src/print_errors.rs +++ b/lib/codegen/src/print_errors.rs @@ -1,11 +1,15 @@ //! Utility routines for pretty-printing error messages. use ir; +use ir::entities::Inst; +use ir::function::...
2
88
8
cc94adca3bc9c8f11a64af28429f09ae19b9a0cd
Dan Gohman
2018-06-26T20:06:16
Update to the rustfmt in rust 1.27, which is now stable. (#377)
diff --git a/lib/codegen/src/bitset.rs b/lib/codegen/src/bitset.rs index 0029b0c42..10d624d8a 100644 --- a/lib/codegen/src/bitset.rs +++ b/lib/codegen/src/bitset.rs @@ -107,8 +107,13 @@ mod tests { let s4 = BitSet::<u16>(4 | 8 | 256 | 1024); assert!( - !s4.contains(0) && !s4.contains(1) &...
25
134
65
fbd637e14283b0569799b07b4e86e54038deec17
Bruce Mitchener
2018-06-22T19:13:00
Update to raw-cpuid 4.0. (#369)
diff --git a/lib/native/Cargo.toml b/lib/native/Cargo.toml index 765c83f62..18d92b43d 100644 --- a/lib/native/Cargo.toml +++ b/lib/native/Cargo.toml @@ -12,7 +12,7 @@ cretonne-codegen = { path = "../codegen", version = "0.12.0", default-features = target-lexicon = { version = "0.0.2", default-features = false } [ta...
1
1
1
979162522eef0bab3b3bd2d840b3c796bd579986
Dan Gohman
2018-06-21T23:24:33
Keep a comment in sync with the code.
diff --git a/lib/codegen/src/binemit/relaxation.rs b/lib/codegen/src/binemit/relaxation.rs index dfebc5cb9..a0d1ad359 100644 --- a/lib/codegen/src/binemit/relaxation.rs +++ b/lib/codegen/src/binemit/relaxation.rs @@ -128,9 +128,9 @@ fn fallthroughs(func: &mut Function) { } } -/// Relax the branch instruction at...
1
2
2
593e2bae6c8e086415e05c7b1305fbd33f588626
Dan Gohman
2018-06-21T23:18:34
Add timers for branch relaxation and instruction shrinking.
diff --git a/lib/codegen/src/binemit/relaxation.rs b/lib/codegen/src/binemit/relaxation.rs index 7cfb6491c..dfebc5cb9 100644 --- a/lib/codegen/src/binemit/relaxation.rs +++ b/lib/codegen/src/binemit/relaxation.rs @@ -32,12 +32,15 @@ use cursor::{Cursor, FuncCursor}; use ir::{Function, InstructionData, Opcode}; use is...
3
8
0
d209137149cc422ca2faca2f6081d55e687212c8
Dan Gohman
2018-06-21T22:50:29
Rename `TargetIsa`'s `emit_function` to `emit_function_to_memory`. This reflects the fact that it takes a concrete `MemoryCodeSink` rather than a `CodeSink` trait object.
diff --git a/lib/codegen/src/context.rs b/lib/codegen/src/context.rs index 6e8c54051..fa8b761ad 100644 --- a/lib/codegen/src/context.rs +++ b/lib/codegen/src/context.rs @@ -168,7 +168,7 @@ impl Context { traps: &mut TrapSink, ) { let _tt = timing::binemit(); - isa.emit_function(&self.func,...
6
8
8
603bb4ac0225089c871c873996eb1cb68d897622
Dan Gohman
2018-06-21T22:45:24
Remove an obsolete comment.
diff --git a/lib/reader/src/parser.rs b/lib/reader/src/parser.rs index 7e85a8cc0..72dc46633 100644 --- a/lib/reader/src/parser.rs +++ b/lib/reader/src/parser.rs @@ -466,7 +466,7 @@ impl<'a> Parser<'a> { } } - // Match and consume a value reference, direct or vtable. + // Match and consume a value ...
1
1
1
2b04099604dcc5c8240f1d8e9bc8a62644eeff91
Dan Gohman
2018-06-19T21:16:42
Fix a typo in a comment.
diff --git a/lib/entity/src/list.rs b/lib/entity/src/list.rs index 8a0aecbdf..e48a83975 100644 --- a/lib/entity/src/list.rs +++ b/lib/entity/src/list.rs @@ -34,7 +34,7 @@ use EntityRef; /// function they belong to. *Cloning an entity list does not allocate new memory for the clone*. /// It creates an alias of the sam...
1
1
1
f97ad59991e313262f45c7055a01f4d3e21bc871
Lachlan Sneff
2018-06-15T22:42:33
Fix breaking change
diff --git a/lib/codegen/src/legalizer/heap.rs b/lib/codegen/src/legalizer/heap.rs index 3655d7fa5..ab68976d5 100644 --- a/lib/codegen/src/legalizer/heap.rs +++ b/lib/codegen/src/legalizer/heap.rs @@ -6,7 +6,7 @@ use cursor::{Cursor, FuncCursor}; use flowgraph::ControlFlowGraph; use ir::condcodes::IntCC; -use ir::{s...
1
13
3
49cc693d6442c6efbe1c7390550ae6992e60a869
Dan Gohman
2018-06-15T17:35:00
Update to hashmap_core 0.1.7.
diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index 7abab7e93..ca08a6c7e 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -14,7 +14,7 @@ build = "build.rs" cretonne-entity = { path = "../entity", version = "0.11.0", default-features = false } failure = { version = "0.1.1", default-fe...
3
3
3
c506f4cf6b34c5e5afdf210c4c4082e23946643a
Dan Gohman
2018-06-15T15:38:40
Use WasmError::Unsupported rather than panic for unsupported extensions.
diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 4b92c2ccc..07e912da1 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -27,7 +27,7 @@ use cretonne_codegen::ir::types::*; use cretonne_codegen::ir::{self, InstBuilder, JumpTableData, MemFlags}; use...
1
5
3
1cab2f2d732afdcd236769462c59a72be702983a
Dan Gohman
2018-06-13T14:41:39
Remove an unneeded comment.
diff --git a/lib/codegen/src/settings.rs b/lib/codegen/src/settings.rs index 2e6ad5f68..c11ca1a77 100644 --- a/lib/codegen/src/settings.rs +++ b/lib/codegen/src/settings.rs @@ -131,8 +131,6 @@ impl Configurable for Builder { let (offset, detail) = self.lookup(name)?; match detail { Detail...
1
0
2
a7813c4448853cbf627463536cdbc7ec98b23ed8
Dan Gohman
2018-06-12T13:36:07
Update to target-lexicon 0.0.2. This fixes compilation on rust 1.22.1.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 6be8f607b..c0d22b0b4 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -31,7 +31,7 @@ serde_derive = "1.0.8" term = "0.5.1" capstone = "0.4" wabt = { version = "0.3", optional = true } -target-lexicon = "0.0.1" +target-lexicon = "0.0.2" ...
8
16
25
43bd3cb2a3f3d66afef972c3b62316185c05dff7
Dan Gohman
2018-05-20T04:41:05
Introduce a `ModuleResult` alias for `Result<T, ModuleError>`. This follows the pattern used by cretonne-codegen, cretonne-wasm, and others.
diff --git a/lib/faerie/src/backend.rs b/lib/faerie/src/backend.rs index 890a934fd..4c900c843 100644 --- a/lib/faerie/src/backend.rs +++ b/lib/faerie/src/backend.rs @@ -5,7 +5,7 @@ use cretonne_codegen::binemit::{Addend, CodeOffset, NullTrapSink, Reloc, RelocSi use cretonne_codegen::isa::TargetIsa; use cretonne_codeg...
5
20
15
6971ae1c268017b1721206b4dfb10d7add6756e0
Dan Gohman
2018-05-20T04:49:10
Export `CodegenError` and `CodegenResult` at the top level. Make cretonne-codegen's `result` module private, and instead just export `CodegenError` and `CodegenResult` at the top level of the cretonne-codegen crate. This makes them more consistent with Result and Error types in other cretonne crates.
diff --git a/lib/codegen/src/binemit/relaxation.rs b/lib/codegen/src/binemit/relaxation.rs index 3c4e631bf..7cfb6491c 100644 --- a/lib/codegen/src/binemit/relaxation.rs +++ b/lib/codegen/src/binemit/relaxation.rs @@ -32,7 +32,7 @@ use cursor::{Cursor, FuncCursor}; use ir::{Function, InstructionData, Opcode}; use isa:...
3
5
4
8a26a504752649b6538b74805977be5054b8aea5
Dan Gohman
2018-05-20T04:33:55
Rename `CtonError` and `CtonResult` to `CodegenError` and `CodegenResult`.
diff --git a/lib/codegen/src/binemit/relaxation.rs b/lib/codegen/src/binemit/relaxation.rs index 299d0a1fb..3c4e631bf 100644 --- a/lib/codegen/src/binemit/relaxation.rs +++ b/lib/codegen/src/binemit/relaxation.rs @@ -32,12 +32,12 @@ use cursor::{Cursor, FuncCursor}; use ir::{Function, InstructionData, Opcode}; use is...
10
48
48
02e34d1bf79722d2a219bec9977e8168069ec7d3
Dan Gohman
2018-06-07T22:06:31
Make `CtonError` parameterized on the result type. This makes it more consistent with other custom `Result` types.
diff --git a/lib/codegen/src/binemit/relaxation.rs b/lib/codegen/src/binemit/relaxation.rs index 7003df1eb..299d0a1fb 100644 --- a/lib/codegen/src/binemit/relaxation.rs +++ b/lib/codegen/src/binemit/relaxation.rs @@ -32,12 +32,12 @@ use cursor::{Cursor, FuncCursor}; use ir::{Function, InstructionData, Opcode}; use is...
8
32
32
13f22065a261c25872bf1d2009ca34d8d9b3b075
Dan Gohman
2018-06-07T21:57:52
Rename verifier's `Result` and `Error`. This provides consistency with similar types in other parts of Cretonne, and avoids shadowing `Result` from the standard prelude.
diff --git a/lib/codegen/src/context.rs b/lib/codegen/src/context.rs index cc8352774..83dd3d036 100644 --- a/lib/codegen/src/context.rs +++ b/lib/codegen/src/context.rs @@ -28,7 +28,7 @@ use simple_gvn::do_simple_gvn; use std::vec::Vec; use timing; use unreachable_code::eliminate_unreachable_code; -use verifier; +us...
8
82
76
683880bd02a284cd917b1eb18c0cc1a4d442594e
Dan Gohman
2018-06-12T11:44:07
Avoid uninteresting renaming of imports.
diff --git a/lib/filetests/src/test_cat.rs b/lib/filetests/src/test_cat.rs index aaecb2d73..c3b1a1aa4 100644 --- a/lib/filetests/src/test_cat.rs +++ b/lib/filetests/src/test_cat.rs @@ -3,7 +3,7 @@ use cretonne_codegen::ir::Function; use cretonne_reader::TestCommand; use std::borrow::Cow; -use subtest::{self, Context...
2
6
6
ffe57d9051d50e3380cb3aee6ad281f8a9efe4d9
Dan Gohman
2018-06-12T03:24:18
Fix a typo in a comment.
diff --git a/lib/codegen/src/isa/mod.rs b/lib/codegen/src/isa/mod.rs index b68f9fecb..34733b92f 100644 --- a/lib/codegen/src/isa/mod.rs +++ b/lib/codegen/src/isa/mod.rs @@ -246,8 +246,8 @@ pub trait TargetIsa: fmt::Display { /// /// The legalizer will adapt argument and return values as necessary at all ABI b...
1
2
2
de2a2fe4184410e231b906a6953b23af0e97f740
Dan Gohman
2018-06-11T23:03:18
Minor code cleanup.
diff --git a/lib/codegen/src/abi.rs b/lib/codegen/src/abi.rs index fe69c67d3..1a86295b8 100644 --- a/lib/codegen/src/abi.rs +++ b/lib/codegen/src/abi.rs @@ -107,11 +107,9 @@ pub fn legalize_args<AA: ArgAssigner>(args: &mut Vec<AbiParam>, aa: &mut AA) { } // Split this argument into two smaller...
1
3
5
c03d67a4ff74a018069be37854d22beb72c0aa39
Dan Gohman
2018-06-08T00:01:41
Update for wasm memory instruction renaming. The wasm spec renamed `grow_memory` and `current_memory` to `memory.grow` and `memory.size`, respectively. Update cretonne's names to follow. Also, update to wasmparser 0.17.0, which also renames its corresponding operators.
diff --git a/lib/wasm/Cargo.toml b/lib/wasm/Cargo.toml index ebecc7099..60fa48a77 100644 --- a/lib/wasm/Cargo.toml +++ b/lib/wasm/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" keywords = ["webassembly", "wasm"] [dependencies] -wasmparser = { version = "0.16.1", default-features = false } +wasmparser = { version =...
4
12
12
00d7d3a7749e7f405523f29e1ea3e636727fd3c7
Dan Gohman
2018-06-07T22:32:11
Implement `IntoIterator` for `PrimaryMap`. This makes iterating through a `PrimaryMap` more consistent with iterating through a `Vec`.
diff --git a/lib/codegen/src/dce.rs b/lib/codegen/src/dce.rs index 797e905c6..5373948e8 100644 --- a/lib/codegen/src/dce.rs +++ b/lib/codegen/src/dce.rs @@ -44,7 +44,7 @@ pub fn do_dce(func: &mut Function, domtree: &mut DominatorTree) { let mut live = Vec::with_capacity(func.dfg.num_values()); live.resize(fun...
4
32
8
fdf89edbfed8c803c76c540278d3d443f05b476a
Dan Gohman
2018-06-07T21:12:12
Fail loudly if a build.rs dependency path can't be printed.
diff --git a/lib/codegen/build.rs b/lib/codegen/build.rs index 7e58b0d01..d127f357b 100644 --- a/lib/codegen/build.rs +++ b/lib/codegen/build.rs @@ -50,7 +50,7 @@ fn main() { // The `build.py` script prints out its own dependencies. println!( "cargo:rerun-if-changed={}", - crate_dir.join("buil...
1
1
1
e4fe1db3b8dbb2aed52de71d9de1a2c7d27d69ba
Sergey Pepyakin
2018-06-06T21:06:27
Assert that stack_limit is none.
diff --git a/lib/codegen/src/context.rs b/lib/codegen/src/context.rs index b9f751186..cc8352774 100644 --- a/lib/codegen/src/context.rs +++ b/lib/codegen/src/context.rs @@ -295,6 +295,10 @@ impl Context { /// Insert prologue and epilogues after computing the stack frame layout. pub fn prologue_epilogue(&mut...
1
4
0
ddc8c914193095c73ff2f7674980bf5d09ac6e10
Sergey Pepyakin
2018-05-30T22:12:22
Displaying stack_limit
diff --git a/lib/codegen/src/write.rs b/lib/codegen/src/write.rs index 1bd7bc3b3..3f666fda2 100644 --- a/lib/codegen/src/write.rs +++ b/lib/codegen/src/write.rs @@ -79,6 +79,11 @@ fn write_preamble( writeln!(w, " {} = {}", jt, jt_data)?; } + if let Some(stack_limit) = func.stack_limit { + a...
1
5
0
effe770c5f785d8ab86d0592f01363d617cab9c0
Sergey Pepyakin
2018-05-30T21:48:04
Add stack_limit global_var in Function
diff --git a/lib/codegen/src/ir/function.rs b/lib/codegen/src/ir/function.rs index d15e53921..c59c3ffde 100644 --- a/lib/codegen/src/ir/function.rs +++ b/lib/codegen/src/ir/function.rs @@ -30,6 +30,10 @@ pub struct Function { /// Stack slots allocated in this function. pub stack_slots: StackSlots, + /// ...
1
5
0
73639e4557e0ae42fe23a4fce50e88e46a4eabc9
Dan Gohman
2018-06-07T21:37:36
Update to cretonne 0.9.0 and faerie 0.4.1.
diff --git a/Cargo.toml b/Cargo.toml index 9bde01f62..7961c569d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,11 +17,11 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cretonne-codegen = "0.8.0" -cretonne-frontend = "0.8.0" -cretonne-reader = "0.8.0" -cretonne-wasm = "0.8.0" -cretonne-native = "0.8....
7
52
68
99ee96ca16a427902fe6fa5b2e0f7b1893b5a397
Dan Gohman
2018-06-07T21:17:56
Update to latest stable rustfmt-preview.
diff --git a/lib/execute/src/lib.rs b/lib/execute/src/lib.rs index af7ab9535..f77781da0 100644 --- a/lib/execute/src/lib.rs +++ b/lib/execute/src/lib.rs @@ -7,11 +7,11 @@ extern crate cretonne_wasm; extern crate region; extern crate wasmstandalone_runtime; -use cretonne_codegen::isa::TargetIsa; use cretonne_codege...
7
107
108
944251260b3dbe3a39bb2441863d6930d1c561b2
Dan Gohman
2018-06-07T18:46:36
Bump version to 0.9.0
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 1db64e84f..6be8f607b 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cretonne-tools" authors = ["The Cretonne Project Developers"] -version = "0.8.0" +version = "0.9.0" description = "Binaries for testing t...
12
39
39
f5c1273fcf9eb61638f337303b1f9899e4fc5d79
Dan Gohman
2018-06-07T18:29:02
Use cfg_attr to tidy up an extern crate declaration.
diff --git a/lib/codegen/src/lib.rs b/lib/codegen/src/lib.rs index dce082e02..0c7eb5298 100644 --- a/lib/codegen/src/lib.rs +++ b/lib/codegen/src/lib.rs @@ -48,10 +48,7 @@ extern crate alloc; extern crate failure; #[macro_use] extern crate failure_derive; -#[cfg(test)] -#[macro_use] -extern crate target_lexicon; -#[...
1
1
4
b2b20a95a10e414be9c66fc931801d15ee295c69
Dan Gohman
2018-06-07T18:26:09
Fix missing no_std support in cretonne-module. And, tidy up the extern crate declarations in the std replacement modules.
diff --git a/lib/codegen/src/lib.rs b/lib/codegen/src/lib.rs index cfcae5d34..dce082e02 100644 --- a/lib/codegen/src/lib.rs +++ b/lib/codegen/src/lib.rs @@ -42,10 +42,6 @@ #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), feature(alloc))] -// Include the `hashmap_core` crate if std is not...
6
43
21
750483b9acc50b3105882e27f6b6eb3226c2a558
Dan Gohman
2018-06-07T17:45:30
Update to hashmap_core 0.1.6.
diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index 417fc80bf..340b08057 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -14,7 +14,7 @@ build = "build.rs" cretonne-entity = { path = "../entity", version = "0.8.0", default-features = false } failure = { version = "0.1.1", default-fea...
3
3
3
6ec3a3f7a1cbb5debfd648816cf4c270cf2b237e
Dan Gohman
2018-06-07T16:56:45
Pass the "std" feature through to target-lexicon.
diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index e593e7a44..417fc80bf 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -26,7 +26,7 @@ target-lexicon = { version = "0.0.1", default-features = false } # of some minimal std-like replacement libraries. At least one of these two # feat...
2
2
2
e49e1e20c682d06856d9c6d67861ad82ffbf32ff
Bruce Mitchener
2018-06-06T16:22:29
Update to region 0.3.
diff --git a/lib/simplejit/Cargo.toml b/lib/simplejit/Cargo.toml index ef551a3e7..286f6fc2d 100644 --- a/lib/simplejit/Cargo.toml +++ b/lib/simplejit/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" cretonne-codegen = { path = "../codegen", version = "0.8.0", default-features = false } cretonne-module = { path = ".....
1
1
1
36d4e0a13c120965a23d32cbcd03e2ccf887fecb
Bruce Mitchener
2018-06-06T16:19:10
Update to goblin 0.0.15.
diff --git a/lib/faerie/Cargo.toml b/lib/faerie/Cargo.toml index bec2b0959..efdc4aa64 100644 --- a/lib/faerie/Cargo.toml +++ b/lib/faerie/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" cretonne-codegen = { path = "../codegen", version = "0.8.0" } cretonne-module = { path = "../module", version = "0.8.0" } faerie ...
1
1
1
5c5e66cebd0ec393b51fd672083003b886c469bc
Bruce Mitchener
2018-06-06T16:18:45
Update to capstone 0.4.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 57193f7af..1db64e84f 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -29,7 +29,7 @@ docopt = "1" serde = "1.0.8" serde_derive = "1.0.8" term = "0.5.1" -capstone = "0.3.1" +capstone = "0.4" wabt = { version = "0.3", optional = true } tar...
2
2
2
eb946642856e8a5ba7fcf1f3e41e090de116db78
Dan Gohman
2018-06-05T16:19:08
Add assertions to check translate_call and translate_call_indirect. Assert that the results produced by translate_call and translate_call_indirect match the results of the call signatures.
diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 7aae3d667..1d5386184 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -361,8 +361,16 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( fref, state.peekn(n...
1
16
2
4e64fc11c99bf4d6c76f6596d844b80ded9e6ad3
Dan Gohman
2018-06-04T23:32:55
Rename subtest's `Result` to `SubtestResult`. This avoids naming confusion with the standard `Result`, which is included in the prelude.
diff --git a/lib/filetests/src/lib.rs b/lib/filetests/src/lib.rs index 7dd87302a..811b0e9e1 100644 --- a/lib/filetests/src/lib.rs +++ b/lib/filetests/src/lib.rs @@ -79,7 +79,7 @@ pub fn run(verbose: bool, files: &[String]) -> TestResult { /// /// This function knows how to create all of the possible `test <foo>` comm...
16
45
47
1087ff3a0152a04ebb64e2caff417427b35d0b49
Dan Gohman
2018-06-04T23:29:13
Use `to_string()` instead of `write!(&mut text, "{}", ...`.
diff --git a/lib/filetests/src/test_compile.rs b/lib/filetests/src/test_compile.rs index 8cb26b4f1..73f178b9b 100644 --- a/lib/filetests/src/test_compile.rs +++ b/lib/filetests/src/test_compile.rs @@ -7,7 +7,6 @@ use cretonne_codegen::print_errors::pretty_error; use cretonne_codegen::{binemit, ir}; use cretonne_reade...
8
8
24
4a4453dc479fb9c964217014006d4d2f3ddcafa7
Dan Gohman
2018-06-04T23:27:09
Use `to_string()` instead of `format!("{}", ...)`.
diff --git a/cranelift/src/utils.rs b/cranelift/src/utils.rs index 138d4f5dc..00f5bab34 100644 --- a/cranelift/src/utils.rs +++ b/cranelift/src/utils.rs @@ -59,7 +59,7 @@ pub fn parse_sets_and_triple( if let Some(triple_name) = words.next() { let triple = match Triple::from_str(triple_name) { ...
2
3
3
22a7c561082bfea7edd4e070b6c8142fd31405dc
Dan Gohman
2018-06-04T23:21:00
Use `Context::for_function` to simplify the code.
diff --git a/lib/filetests/src/test_compile.rs b/lib/filetests/src/test_compile.rs index ac326cb76..8cb26b4f1 100644 --- a/lib/filetests/src/test_compile.rs +++ b/lib/filetests/src/test_compile.rs @@ -36,10 +36,7 @@ impl SubTest for TestCompile { fn run(&self, func: Cow<ir::Function>, context: &Context) -> Resul...
8
8
25
ae8fc69406dccef8443986b5a965d21ea59cb164
Dan Gohman
2018-06-04T23:17:02
Use `&'static str` rather than Cow<str> for pass names.
diff --git a/lib/filetests/src/subtest.rs b/lib/filetests/src/subtest.rs index 18904d99b..951aa76e5 100644 --- a/lib/filetests/src/subtest.rs +++ b/lib/filetests/src/subtest.rs @@ -45,7 +45,7 @@ impl<'a> Context<'a> { /// trait object. pub trait SubTest { /// Name identifying this subtest. Typically the same as ...
14
27
27
6c003d68cd70f1885faf2312fbd0aa36266e2b3b
Dan Gohman
2018-05-31T18:21:26
Factor out pointer_bits() and pointer_bytes() helper functions.
diff --git a/lib/codegen/src/isa/mod.rs b/lib/codegen/src/isa/mod.rs index fc7c166ba..b68f9fecb 100644 --- a/lib/codegen/src/isa/mod.rs +++ b/lib/codegen/src/isa/mod.rs @@ -176,7 +176,17 @@ pub trait TargetIsa: fmt::Display { /// Get the pointer type of this ISA. fn pointer_type(&self) -> ir::Type { - ...
2
14
4
f48c1d4f89ecd41203f90ae422611b9b9af65d84
Dan Gohman
2018-05-31T00:25:48
Update to target-lexicon 0.0.1 and faerie 0.4.1. This fixes handling of custom targets.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index df16b8ccc..57193f7af 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -31,7 +31,7 @@ serde_derive = "1.0.8" term = "0.5.1" capstone = "0.3.1" wabt = { version = "0.3", optional = true } -target-lexicon = "0.0.0" +target-lexicon = "0.0.1" ...
8
9
9
2f3008aa40316f48ba75ab138d4467959557a07c
Lachlan Sneff
2018-05-29T22:12:18
Use "nightly" feature of raw-cpuid when possible.
diff --git a/lib/native/Cargo.toml b/lib/native/Cargo.toml index c5845b344..17e257833 100644 --- a/lib/native/Cargo.toml +++ b/lib/native/Cargo.toml @@ -16,7 +16,10 @@ raw-cpuid = "3.1.0" [features] default = ["std"] std = ["cretonne-codegen/std"] -core = ["cretonne-codegen/core"] +# when compiling with the "core" f...
1
4
1
a1fe0f82e16982f38b24950bed8c29dd9a74204a
Dan Gohman
2018-05-29T17:37:38
Update to the latest stable rustfmt, 0.4.2-stable (febbb36 2018-04-12).
diff --git a/cranelift/src/cat.rs b/cranelift/src/cat.rs index a90621473..b668e0b51 100644 --- a/cranelift/src/cat.rs +++ b/cranelift/src/cat.rs @@ -3,9 +3,9 @@ //! Read a sequence of Cretonne IR files and print them again to stdout. This has the effect of //! normalizing formatting and removing comments. -use Comm...
45
124
76
7045c41418a5497ea616baa2c71b91d9bf2a945b
Dan Gohman
2018-05-30T02:26:13
Add a comment about implementing `Keys` in terms of `Range` in the future.
diff --git a/lib/entity/src/keys.rs b/lib/entity/src/keys.rs index e9d1e9150..4301bbe68 100644 --- a/lib/entity/src/keys.rs +++ b/lib/entity/src/keys.rs @@ -1,4 +1,7 @@ //! A double-ended iterator over entity references. +//! +//! When `std::iter::Step` is stablized, `Keys` could be implemented as a wrapper around +//...
1
3
0
7733ca1173bcacfa4aa6dfc8eb987bb08c3f98f8
Dan Gohman
2018-05-30T02:24:23
Implement entity's `Iter` in terms of `std::iter::Enumerate`. Entity's `Iter` is essentially an `Enumerate`, so just use an `Enumerate` under the covers. This makes the code simpler.
diff --git a/lib/entity/src/iter.rs b/lib/entity/src/iter.rs index 0455e4051..ea7bfb719 100644 --- a/lib/entity/src/iter.rs +++ b/lib/entity/src/iter.rs @@ -1,6 +1,7 @@ //! A double-ended iterator over entity references and entities. use EntityRef; +use std::iter::Enumerate; use std::marker::PhantomData; use std:...
1
11
42
d8eaa19ddafbe8bfbbbe583b49809a67e6cbc4fb
Dan Gohman
2018-05-29T21:11:07
Make an assert message more verbose.
diff --git a/lib/codegen/src/regalloc/reload.rs b/lib/codegen/src/regalloc/reload.rs index ff204a4fd..b8ba2166c 100644 --- a/lib/codegen/src/regalloc/reload.rs +++ b/lib/codegen/src/regalloc/reload.rs @@ -283,7 +283,11 @@ impl<'a> Context<'a> { .expect("Extra results on non-call instruction"); ...
1
5
1
7720a571fccd8722ed2882a9828eaf5c506bb38c
Dan Gohman
2018-05-29T23:53:34
Fix reverse iteration in cretonne-entity's Iter. A `DoubleEndedIterator` needs to track both a forward position and a reverse position, so that `next_back()` can pop from the back of the sequence.
diff --git a/lib/entity/src/iter.rs b/lib/entity/src/iter.rs index 9eeba6c7a..0455e4051 100644 --- a/lib/entity/src/iter.rs +++ b/lib/entity/src/iter.rs @@ -10,6 +10,7 @@ where V: 'a, { pos: usize, + rev_pos: usize, iter: slice::Iter<'a, V>, unused: PhantomData<K>, } @@ -17,9 +18,10 @@ where i...
5
92
16
09fb9148236b256ec5bde3efa4d174f5631bdab2
Dan Gohman
2018-05-25T15:53:52
Make an assert message more verbose.
diff --git a/lib/codegen/src/abi.rs b/lib/codegen/src/abi.rs index 66dcf7f8f..e4b4b223f 100644 --- a/lib/codegen/src/abi.rs +++ b/lib/codegen/src/abi.rs @@ -163,7 +163,7 @@ pub fn legalize_abi_value(have: Type, arg: &AbiParam) -> ValueConversion { Ordering::Equal => { // This must be an integer ve...
1
1
1
d46ceedc981fd51f92e0a783a1423665c60660f6
Dan Gohman
2018-05-24T20:14:10
Tidy up unneeded commmas.
diff --git a/lib/filetests/src/test_binemit.rs b/lib/filetests/src/test_binemit.rs index a0711414d..332ef3e57 100644 --- a/lib/filetests/src/test_binemit.rs +++ b/lib/filetests/src/test_binemit.rs @@ -79,11 +79,11 @@ impl binemit::CodeSink for TextSink { name: &ir::ExternalName, addend: binemit::Adden...
1
3
3
b855184ae18e59107455aea11710c0aa74637d71
Dan Gohman
2018-05-22T16:37:33
Make WasmError and WasmResult public types.
diff --git a/lib/wasm/src/environ/spec.rs b/lib/wasm/src/environ/spec.rs index 6093203ff..5b26ca785 100644 --- a/lib/wasm/src/environ/spec.rs +++ b/lib/wasm/src/environ/spec.rs @@ -35,7 +35,9 @@ pub enum WasmError { /// code. This should never happen for validated WebAssembly code. #[fail(display = "Invalid i...
2
4
1
f835a1b6626c1f077e9306eee8df25e31cb001f3
Dan Gohman
2018-05-22T14:23:28
Followup to #345 to fix no_std errors.
diff --git a/lib/wasm/src/lib.rs b/lib/wasm/src/lib.rs index d4caf9177..6fe32541e 100644 --- a/lib/wasm/src/lib.rs +++ b/lib/wasm/src/lib.rs @@ -30,7 +30,6 @@ #![cfg_attr(not(feature = "std"), feature(alloc))] #[cfg(not(feature = "std"))] -#[macro_use] extern crate alloc; #[allow(unused_extern_crates)] @@ -65,6...
1
2
1
89e7d561206f45aca14234f32f94ad672d156715
Dan Gohman
2018-05-22T03:49:19
Allow wasm embedders to reject wasm modules with unsupported features. (#345) Define `WasmError` (and an accompanying `WasmResult`) to represent errors translating WebAssembly functions. Make `translate_call` and related functions return `WasmResult`s so that embedders have the flexibility to reject features they d...
diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs index 5ef8e21f2..4f44afa6f 100644 --- a/cranelift/src/wasm.rs +++ b/cranelift/src/wasm.rs @@ -105,7 +105,9 @@ fn handle_module( } let mut dummy_environ = DummyEnvironment::with_flags(fisa.flags.clone()); - translate_module(&data, &mut dummy_envir...
11
185
177