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
6acf9be540fdfbc348747ae1934c259f74df7a2a
Benjamin Bouvier
2019-04-15T13:46:37
Refactor simple-preopt to make it slightly simpler to read; - don't use camel case but snake casing; - longer variable names; - more whitespace; - add/wrap comments;
diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs index e081a5bd4..fabad6d3b 100644 --- a/cranelift/codegen/src/simple_preopt.rs +++ b/cranelift/codegen/src/simple_preopt.rs @@ -4,8 +4,6 @@ //! should be useful for already well-optimized code. More general purpose //! early-...
1
90
90
745d9ae162df8eee3fe2fe047e0655eaf03625c5
Jef
2019-04-24T10:32:17
Implement rem in backend - not every backend will act like x86
diff --git a/src/backend.rs b/src/backend.rs index 49295be01..016d96d38 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -371,6 +371,16 @@ pub enum CCLoc { Stack(i32), } +impl CCLoc { + fn try_from(other: ValueLocation) -> Option<Self> { + match other { + ValueLocation::Reg(reg) => Some(...
2
86
93
00429ebe995ccdcdda917a3530e1f7246ac42e6e
Benjamin Bouvier
2019-04-12T16:34:20
[meta] Fix outdented_line in srcgen;
diff --git a/cranelift/codegen/meta/src/srcgen.rs b/cranelift/codegen/meta/src/srcgen.rs index 9a6c4af03..ac2b8e8e0 100644 --- a/cranelift/codegen/meta/src/srcgen.rs +++ b/cranelift/codegen/meta/src/srcgen.rs @@ -80,9 +80,9 @@ impl Formatter { /// Get a string containing whitespace outdented one level. Used for ...
1
3
3
d2d2cdcd78ed9e2fcd0641c2faf5957c983167fa
Benjamin Bouvier
2019-04-12T16:28:47
[meta] Rejigger comments in cdsl/formats;
diff --git a/cranelift/codegen/meta/src/cdsl/formats.rs b/cranelift/codegen/meta/src/cdsl/formats.rs index 837440d2c..244564a76 100644 --- a/cranelift/codegen/meta/src/cdsl/formats.rs +++ b/cranelift/codegen/meta/src/cdsl/formats.rs @@ -10,10 +10,6 @@ use cranelift_entity::{entity_impl, PrimaryMap}; /// /// This corr...
1
20
27
b3a950b589749f9b0552cd3f62213c6fc422e387
Benjamin Bouvier
2019-04-11T17:08:07
[meta] Fix condition codes in immediates;
diff --git a/cranelift/codegen/meta/src/shared/immediates.rs b/cranelift/codegen/meta/src/shared/immediates.rs index 077fe0a51..c31ed11c7 100644 --- a/cranelift/codegen/meta/src/shared/immediates.rs +++ b/cranelift/codegen/meta/src/shared/immediates.rs @@ -71,10 +71,10 @@ pub fn define() -> Vec<OperandKind> { let ...
1
4
4
ea1ec9491e08e22d81424f55888cfa602870d6c1
Jef
2019-04-24T07:16:38
Don't use cmov (no need)
diff --git a/src/backend.rs b/src/backend.rs index ccb6c1647..49295be01 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -4529,7 +4529,7 @@ impl<'this, M: ModuleContext> Context<'this, M> { } (then, else_) => { let out = self.take_reg(GPRType::Rq).unwrap(); - ...
1
1
1
7813cc9d2d89c9a9da65c996d68c9c6941265efa
Dan Gohman
2019-04-23T19:07:02
Fix a trace logging message.
diff --git a/wasmtime-wasi/src/syscalls.rs b/wasmtime-wasi/src/syscalls.rs index d072c8007..b5202f353 100644 --- a/wasmtime-wasi/src/syscalls.rs +++ b/wasmtime-wasi/src/syscalls.rs @@ -1376,7 +1376,7 @@ syscalls! { } pub unsafe extern "C" fn proc_exit(_vmctx: *mut VMContext, rval: u32,) -> () { - tra...
1
1
1
a2ef962ed754801c2d344d221e4aa2da5b586372
Jef
2019-04-17T14:06:51
Fix shift's incorrect register freeing logic
diff --git a/src/backend.rs b/src/backend.rs index 5169c824c..ccb6c1647 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -9,6 +9,7 @@ use either::Either; use std::{ any::{Any, TypeId}, collections::HashMap, + convert::TryFrom, iter::{self, FromIterator}, mem, ops::RangeInclusive, @@ -931...
1
18
2
82e810c8d2bafbdc1f0dc292c7912eb5dad1cbfd
Jef
2019-04-17T13:47:22
Avoid emitting tests on `select`
diff --git a/src/backend.rs b/src/backend.rs index 86970111e..5169c824c 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -330,7 +330,9 @@ impl Registers { pub fn release(&mut self, gpr: GPR) { let (gpr, scratch_counts) = self.scratch_counts_mut(gpr); let c = &mut scratch_counts.1[gpr as usize]...
1
146
82
3b1583ebb7f5d089a54e0c429778d0816707603a
Tyler McMullen
2019-04-16T01:57:47
Style changes in response to code review.
diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs index f144a4017..e081a5bd4 100644 --- a/cranelift/codegen/src/simple_preopt.rs +++ b/cranelift/codegen/src/simple_preopt.rs @@ -556,7 +556,9 @@ struct BranchOptInfo { /// single `brz` or `brnz`. fn branch_opt(pos: &mut FuncCu...
1
101
116
4d427d7c71122b3550374bb326d17d7f95b6d38a
Tyler McMullen
2019-04-13T07:15:52
Remove old commented out code
diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs index 4ec608665..f144a4017 100644 --- a/cranelift/codegen/src/simple_preopt.rs +++ b/cranelift/codegen/src/simple_preopt.rs @@ -616,25 +616,6 @@ fn branch_opt(pos: &mut FuncCursor, inst: Inst) { } else { panic!();...
1
0
19
402d0d9c83df14c2c11a6fcd15a494ad6cd6c645
Tyler McMullen
2019-01-03T19:56:36
Add comments to branch folding and reordering functions in simple_preopt.
diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs index bee1d6e20..ece05e474 100644 --- a/cranelift/codegen/src/simple_preopt.rs +++ b/cranelift/codegen/src/simple_preopt.rs @@ -555,6 +555,11 @@ enum BranchOptKind { NotEqualZero, } +/// Fold comparisons into branch ope...
1
10
0
67cc5aafec542d5236ab2e2d7c75e51ff6358b24
Tyler McMullen
2019-01-02T19:51:58
Refactoring of branch ordering and zero-check optimization based on PR feedback.
diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs index 35ee878ce..eeaa3c8d9 100644 --- a/cranelift/codegen/src/simple_preopt.rs +++ b/cranelift/codegen/src/simple_preopt.rs @@ -566,37 +566,36 @@ fn branch_opt(pos: &mut FuncCursor, inst: Inst) { let args = pos...
1
122
128
861ef3a2e56bb22f6900fcae4130900dd955cba6
Tyler McMullen
2018-12-21T00:38:27
Questionable change: Remove domtree generation from simple_preopt testing.
diff --git a/cranelift/filetests/src/test_simple_preopt.rs b/cranelift/filetests/src/test_simple_preopt.rs index 8b2ea6999..4d2e7a741 100644 --- a/cranelift/filetests/src/test_simple_preopt.rs +++ b/cranelift/filetests/src/test_simple_preopt.rs @@ -33,11 +33,10 @@ impl SubTest for TestSimplePreopt { let mut co...
1
1
2
947130be81c6667e6954d14fe3e6c5af308a1db5
Tyler McMullen
2018-12-21T00:36:49
Add branch order optimization to simple_preopt to encourage fallthroughs.
diff --git a/cranelift/codegen/src/context.rs b/cranelift/codegen/src/context.rs index 67e676581..0cd1564c0 100644 --- a/cranelift/codegen/src/context.rs +++ b/cranelift/codegen/src/context.rs @@ -225,7 +225,7 @@ impl Context { /// Perform pre-legalization rewrites on the function. pub fn preopt(&mut self, ...
2
191
4
57f087c9da584c68452d0394ddbfa2f3385fe2ce
Tyler McMullen
2018-12-18T20:38:18
Add note to simple_preopt differentiating its use from the preopt crate.
diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs index 2890cb262..640d86691 100644 --- a/cranelift/codegen/src/simple_preopt.rs +++ b/cranelift/codegen/src/simple_preopt.rs @@ -1,4 +1,8 @@ //! A pre-legalization rewriting pass. +//! +//! This module provides early-stage opti...
1
4
0
3351befb3b1265a52997ae6a5159b765d975b422
Stefano Buliani
2019-04-17T02:59:54
Allow access to memory_index and grow on Instance (#105) * Changed `memory_grow` and `memory_index` in `Instance` struct to be `pub(crate)` and added the equivalent proxy methods to the `InstanceHandle` struct.
diff --git a/wasmtime-runtime/src/instance.rs b/wasmtime-runtime/src/instance.rs index 1632ee91b..df069fabc 100644 --- a/wasmtime-runtime/src/instance.rs +++ b/wasmtime-runtime/src/instance.rs @@ -520,8 +520,7 @@ impl Instance { } /// Return the memory index for the given `VMMemoryDefinition`. - /// FIXM...
1
19
4
07a6ca8f4e1136ecd9f4af8d1f03a01aade60407
Yury Delendik
2019-04-10T15:32:58
Hack to not allow inlining even when Rust wants to do it in release mode.
diff --git a/wasmtime-runtime/src/jit_int.rs b/wasmtime-runtime/src/jit_int.rs index 24c6bc8fd..22b70d39d 100644 --- a/wasmtime-runtime/src/jit_int.rs +++ b/wasmtime-runtime/src/jit_int.rs @@ -36,7 +36,13 @@ static mut __jit_debug_descriptor: JITDescriptor = JITDescriptor { #[no_mangle] #[inline(never)] -extern "C"...
1
7
1
b5595aadd24f05f77fc3f26560cc282f851d4d5b
Benjamin Bouvier
2019-03-11T18:18:48
[meta] Generate opcodes.rs/inst_builder.rs with the Rust crate;
diff --git a/cranelift/codegen/meta/src/gen_inst.rs b/cranelift/codegen/meta/src/gen_inst.rs new file mode 100644 index 000000000..c975cef96 --- /dev/null +++ b/cranelift/codegen/meta/src/gen_inst.rs @@ -0,0 +1,1092 @@ +use crate::cdsl::camel_case; +use crate::cdsl::formats::{FormatRegistry, InstructionFormat}; +use cr...
2
1,104
0
0166d6507a678805bfc184510158a68fc0bf137d
carolinecullen
2019-03-27T20:27:20
Adding comment about copying RiscV abi file into ARM32.
diff --git a/cranelift/codegen/src/isa/arm32/abi.rs b/cranelift/codegen/src/isa/arm32/abi.rs index 79323fdbd..894c67ecb 100644 --- a/cranelift/codegen/src/isa/arm32/abi.rs +++ b/cranelift/codegen/src/isa/arm32/abi.rs @@ -1,8 +1,9 @@ //! ARM ABI implementation. +//! This is from the RISC-V target and will need to be up...
1
3
18
8ab7170a0759bfda0740920221bde346095a28c4
carolinecullen
2019-03-12T15:21:35
Updated comments.
diff --git a/cranelift/codegen/src/isa/arm32/abi.rs b/cranelift/codegen/src/isa/arm32/abi.rs index ec7f1270d..79323fdbd 100644 --- a/cranelift/codegen/src/isa/arm32/abi.rs +++ b/cranelift/codegen/src/isa/arm32/abi.rs @@ -39,7 +39,7 @@ impl ArgAssigner for Args { let ty = arg.value_type; // Check for...
1
2
10
72bc035d700f17cce26b6f61086ce362bd7e1791
carolinecullen
2019-03-11T18:50:24
Beginnings of arm32 backend.
diff --git a/cranelift/codegen/src/isa/arm32/abi.rs b/cranelift/codegen/src/isa/arm32/abi.rs index a1890fa32..ec7f1270d 100644 --- a/cranelift/codegen/src/isa/arm32/abi.rs +++ b/cranelift/codegen/src/isa/arm32/abi.rs @@ -1,18 +1,103 @@ //! ARM ABI implementation. use super::registers::{D, GPR, Q, S}; -use crate::ir...
2
103
10
7eccb2b6226dfb7801ad714f69c44ccc80469d6a
Tibor Vass
2019-04-06T18:43:09
microwasm: fix comment typo for BrIf Signed-off-by: Tibor Vass <teabee89@gmail.com>
diff --git a/src/microwasm.rs b/src/microwasm.rs index 7d077c8b5..1092b7af8 100644 --- a/src/microwasm.rs +++ b/src/microwasm.rs @@ -458,8 +458,8 @@ pub enum Operator<Label> { /// Returning from the function is just calling the "return" block target: BrTarget<Label>, }, - /// Pop a value off t...
1
2
2
b509ca0aa5476ebf653f0b89642abe15a662530a
Dan Gohman
2019-04-05T21:07:28
Tidy up unused import warnings.
diff --git a/wasmtime-environ/src/func_environ.rs b/wasmtime-environ/src/func_environ.rs index 57f55ab78..fbe675647 100644 --- a/wasmtime-environ/src/func_environ.rs +++ b/wasmtime-environ/src/func_environ.rs @@ -14,9 +14,11 @@ use cranelift_codegen::ir::{ use cranelift_codegen::isa::TargetFrontendConfig; use craneli...
2
4
3
84fede890ccb4763665d0b915e1857dc4eacbe42
Benjamin Bouvier
2019-04-05T11:12:49
[meta] Optimize the sequence table to use whole table suffix prefixing;
diff --git a/cranelift/codegen/meta/src/unique_table.rs b/cranelift/codegen/meta/src/unique_table.rs index d4f4fa00c..d7a26f67c 100644 --- a/cranelift/codegen/meta/src/unique_table.rs +++ b/cranelift/codegen/meta/src/unique_table.rs @@ -52,9 +52,25 @@ impl<T: PartialEq + Clone> UniqueSeqTable<T> { if let Some(...
1
44
14
e6249b541d380c43ace1db27bbf3877cb81f17b2
Benjamin Bouvier
2019-03-27T10:31:57
Update target-lexicon to 0.4.0;
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 068326a64..5737fa1fa 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -38,7 +38,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.3.0" +...
9
10
10
474809f5f3a4dd4975c5ff620ff1ab6af5adeac6
Yury Delendik
2019-04-02T21:30:30
Support imports in wasm2obj
diff --git a/wasmtime-obj/src/function.rs b/wasmtime-obj/src/function.rs index 246c5d645..49bd57ce6 100644 --- a/wasmtime-obj/src/function.rs +++ b/wasmtime-obj/src/function.rs @@ -4,12 +4,36 @@ use cranelift_entity::EntityRef; use faerie::{Artifact, Decl, Link}; use wasmtime_environ::{Compilation, Module, Relocation...
1
36
1
2dd155236999e277d75fc515b3c6e1cefb0c2ed4
Benjamin Bouvier
2019-03-29T16:00:02
[meta] Make Typevar::type_set private, and add a second getter to read it directly; There might be a silent bug in the Python module which directly reads from this type_set field; in particular, it does so when reading all controlling type variables, which all seem to be free variables (i.e. no parent typevar). So imi...
diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs index 983bb17a1..d144eab48 100644 --- a/cranelift/codegen/meta/src/cdsl/typevar.rs +++ b/cranelift/codegen/meta/src/cdsl/typevar.rs @@ -25,7 +25,9 @@ pub struct TypeVarContent { pub doc: String, /// Type set...
1
12
1
5edee84f678571f067cdf475b4c6fcbcb83c421f
Benjamin Bouvier
2019-03-29T15:21:30
[meta] Port TypeVar's test_functions to Rust; Fixes two issues: - name of derived type variables wasn't correct. (This is used during code generation.) - the TypeVar::derived() function wasn't creating the correct type set (and would instead propagate the parent's one).
diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs index cb6f18ce5..983bb17a1 100644 --- a/cranelift/codegen/meta/src/cdsl/typevar.rs +++ b/cranelift/codegen/meta/src/cdsl/typevar.rs @@ -117,7 +117,7 @@ impl TypeVar { /// Create a type variable that is a function...
1
19
2
dd63ebfb68e1a4da2ec5c016eb3c8e773d1fd8c6
Benjamin Bouvier
2019-03-29T14:51:14
[meta] Port typeset_singleton tests to the Rust crate;
diff --git a/cranelift/codegen/meta/src/cdsl/types.rs b/cranelift/codegen/meta/src/cdsl/types.rs index 643ecdc4b..a8aa4020d 100644 --- a/cranelift/codegen/meta/src/cdsl/types.rs +++ b/cranelift/codegen/meta/src/cdsl/types.rs @@ -21,13 +21,13 @@ static LANE_BASE: u8 = 0x70; // Rust name prefix used for the `rust_name` ...
2
54
6
ac37cb9bf5d62384642a1317e18101a10acd0f66
Benjamin Bouvier
2019-03-29T14:28:23
[meta] Add test for {half/double}_{vector/width} and as_bool;
diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs index fb5064f91..54e969b3c 100644 --- a/cranelift/codegen/meta/src/cdsl/typevar.rs +++ b/cranelift/codegen/meta/src/cdsl/typevar.rs @@ -689,6 +689,111 @@ fn test_typevar_builder_inverted_bounds_panic() { TypeSetBui...
1
105
0
605320112886cf619f27df6ef321b5f59a914f55
Benjamin Bouvier
2019-03-29T14:02:13
[meta] Move the TypeSet building out of the TypeVar builder so as to test it;
diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs index 5e722f006..fb5064f91 100644 --- a/cranelift/codegen/meta/src/cdsl/typevar.rs +++ b/cranelift/codegen/meta/src/cdsl/typevar.rs @@ -36,6 +36,54 @@ pub struct TypeVar { } impl TypeVar { + pub fn new(name: impl...
3
377
307
3e7543df7972c5d8ebfc927f77ad931a1bfa5297
Benjamin Bouvier
2019-03-29T10:45:15
[meta] Introduce the num_set! macro to create NumSet as vec! does;
diff --git a/cranelift/codegen/meta/src/cdsl/typevar.rs b/cranelift/codegen/meta/src/cdsl/typevar.rs index 4db5c96e2..5e722f006 100644 --- a/cranelift/codegen/meta/src/cdsl/typevar.rs +++ b/cranelift/codegen/meta/src/cdsl/typevar.rs @@ -236,6 +236,12 @@ type RangeBound = u16; type Range = ops::Range<RangeBound>; type...
1
25
25
cc5efeb54dc37887150238ee80d810fa58159427
Dan Gohman
2019-04-01T22:52:33
WASI: Simplify byref translation. Avoid needlessly copying data from wasm into the host for output parameters, and factor out the `.unwrap()` for translating pointers when writing to output parameters.
diff --git a/wasmtime-wasi/src/syscalls.rs b/wasmtime-wasi/src/syscalls.rs index d49236ae9..d072c8007 100644 --- a/wasmtime-wasi/src/syscalls.rs +++ b/wasmtime-wasi/src/syscalls.rs @@ -210,16 +210,14 @@ syscalls! { ); let vmctx = &mut *vmctx; - #[allow(unused_assignments)] - let mut ho...
2
149
213
5b77f9528481928f9c41ee1c4adb5c4ac13133a1
Dan Gohman
2019-04-01T22:09:01
WASI: Implement translation for events and subscriptions.
diff --git a/wasmtime-wasi/src/syscalls.rs b/wasmtime-wasi/src/syscalls.rs index 9b3ae4d84..d49236ae9 100644 --- a/wasmtime-wasi/src/syscalls.rs +++ b/wasmtime-wasi/src/syscalls.rs @@ -193,8 +193,7 @@ syscalls! { let e = host::wasmtime_ssp_args_get(argv_environ, host_argv.as_mut_ptr(), host_argv_buf); - ...
3
377
111
7151c110d793878ab762e2b01b21de564c44a394
Dan Gohman
2019-04-01T20:35:43
Implement decode/encode for __wasi_filestat_t.
diff --git a/wasmtime-wasi/src/translate.rs b/wasmtime-wasi/src/translate.rs index 197468d80..6bd342360 100644 --- a/wasmtime-wasi/src/translate.rs +++ b/wasmtime-wasi/src/translate.rs @@ -110,7 +110,35 @@ pub fn encode_usize(len: usize) -> wasm32::size_t { cast::u32(len).unwrap() } -pub unsafe fn decode_filesi...
1
62
8
27f4163b89ff57a5f9ac2dd6ffcb993813493534
Benjamin Bouvier
2019-03-28T11:42:37
Fixes #716: Stub out parse_x86_cpuid in the non-x86 case;
diff --git a/cranelift/native/src/lib.rs b/cranelift/native/src/lib.rs index 010acb25a..0687e7017 100644 --- a/cranelift/native/src/lib.rs +++ b/cranelift/native/src/lib.rs @@ -88,6 +88,11 @@ fn parse_x86_cpuid(isa_builder: &mut isa::Builder) -> Result<(), &'static str> { Ok(()) } +#[cfg(not(any(target_arch = "...
1
5
0
3c31eac48c706c6be24ca5c58ba6ac988c894232
Benjamin Bouvier
2019-03-11T18:36:45
[meta] Port Instruction/InstructionGroup to the Rust meta crate;
diff --git a/cranelift/codegen/meta/src/cdsl/inst.rs b/cranelift/codegen/meta/src/cdsl/inst.rs new file mode 100644 index 000000000..4199d6424 --- /dev/null +++ b/cranelift/codegen/meta/src/cdsl/inst.rs @@ -0,0 +1,458 @@ +use crate::cdsl::camel_case; +use crate::cdsl::formats::{FormatRegistry, InstructionFormat, Instru...
11
763
24
208c4e6da64abd6b9ac74b0e20743f029ba45035
Lars T Hansen
2019-03-28T12:50:45
Fix a disasm formatting error
diff --git a/cranelift/src/disasm.rs b/cranelift/src/disasm.rs index fa55ab58a..65fb33ec0 100644 --- a/cranelift/src/disasm.rs +++ b/cranelift/src/disasm.rs @@ -131,10 +131,10 @@ cfg_if! { let mut len = 0; let mut first = true; for b in i.bytes() { - ...
1
1
1
3ae7c60b1395fe25971f683828241e7fac8cb40b
bjorn3
2019-03-27T17:56:15
Update src/wasmtime.rs Fix spelling error. Co-Authored-By: sunfishcode <sunfish@mozilla.com>
diff --git a/src/wasmtime.rs b/src/wasmtime.rs index 09a22bd65..b50c8d5c2 100644 --- a/src/wasmtime.rs +++ b/src/wasmtime.rs @@ -250,7 +250,7 @@ fn main() { ); // FIXME: Also recognize "env", for compatibility with clang/llvm 8.0. And use - // "__wasi_" prefixes for compaitility with prototype reference-...
1
1
1
2a60d76bdc69bee43de98f82d43a342eca2fee94
Jef
2019-03-27T14:20:17
Update to latest cranelift
diff --git a/Cargo.toml b/Cargo.toml index 5f716ee0d..4cf849516 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ itertools = "0.8" capstone = "0.5.0" failure = "0.1.3" failure_derive = "0.1.3" -cranelift-codegen = "0.29" +cranelift-codegen = "0.30" multi_mut = "0.1" either = "1.5" wabt = "0.7"
1
1
1
d59bef1902a9be700d9d16f258c419483503b2b1
Benjamin Bouvier
2019-03-11T18:25:11
[meta] Port Formats and Operands to the Rust crate;
diff --git a/cranelift/codegen/meta/src/cdsl/formats.rs b/cranelift/codegen/meta/src/cdsl/formats.rs new file mode 100644 index 000000000..837440d2c --- /dev/null +++ b/cranelift/codegen/meta/src/cdsl/formats.rs @@ -0,0 +1,246 @@ +use crate::cdsl::operands::{Operand, OperandKind}; + +use std::collections::{HashMap, Has...
7
978
0
146e0bd2f54c77a7f54bf2504295e87a7839d1f7
Benjamin Bouvier
2019-03-11T18:26:32
[meta] Port Typevar to the Rust crate;
diff --git a/cranelift/codegen/meta/src/cdsl/mod.rs b/cranelift/codegen/meta/src/cdsl/mod.rs index 87c615d70..dd3a7ec85 100644 --- a/cranelift/codegen/meta/src/cdsl/mod.rs +++ b/cranelift/codegen/meta/src/cdsl/mod.rs @@ -7,6 +7,7 @@ pub mod isa; pub mod regs; pub mod settings; pub mod types; +pub mod typevar; ///...
3
788
5
f3f449b45be02ee42997f0afa278068d003df056
Benjamin Bouvier
2019-03-11T18:14:07
[meta] Tweak generation of settings/registers;
diff --git a/cranelift/codegen/meta/src/gen_registers.rs b/cranelift/codegen/meta/src/gen_registers.rs index 3a75c7147..5e0fdac57 100644 --- a/cranelift/codegen/meta/src/gen_registers.rs +++ b/cranelift/codegen/meta/src/gen_registers.rs @@ -132,9 +132,9 @@ fn gen_isa(isa: &TargetIsa, fmt: &mut Formatter) { fmtln!(...
5
30
24
393b88af6e104d3a027e2b0d3d21f4dc8df69489
Benjamin Bouvier
2019-03-11T16:20:50
[meta] Implement UniqueTable in the Rust crate; ... and also rename the previously-named UniqueTable to UniqueSeqTable, which is the name used in the Python code.
diff --git a/cranelift/codegen/meta/src/gen_settings.rs b/cranelift/codegen/meta/src/gen_settings.rs index 20fc6d1fc..a79754453 100644 --- a/cranelift/codegen/meta/src/gen_settings.rs +++ b/cranelift/codegen/meta/src/gen_settings.rs @@ -7,7 +7,7 @@ use crate::constant_hash::{generate_table, simple_hash}; use crate::er...
2
43
4
72b0d26ee93e2bfb577b6095d6a3cb993c0ef8fb
Benjamin Bouvier
2019-03-11T16:12:03
[meta] Add features to srcgen; - Adds a compiler warning when the fmtln! macro isn't correctly used. - Allow to add an empty line. - Make the output of generated matches more beautiful, by having one struct per line on the clause. - Add a method to add match with doesn't read any data from fields. - Make sure that the...
diff --git a/cranelift/codegen/meta/src/gen_settings.rs b/cranelift/codegen/meta/src/gen_settings.rs index a3c97ebab..20fc6d1fc 100644 --- a/cranelift/codegen/meta/src/gen_settings.rs +++ b/cranelift/codegen/meta/src/gen_settings.rs @@ -152,13 +152,9 @@ fn gen_getter(setting: &Setting, fmt: &mut Formatter) { ...
2
98
17
141ccb9e9dba855ce118c5d5a14455088d51b567
Lars T Hansen
2019-03-27T11:57:13
Add a --disasm option to clif-util `wasm` and `compile` (#713) - Both the `wasm` and `compile` commands get this new subcommand, and it defaults to false. This means that test runs with `wasm` can request disassembly (the main reason I am doing this) while test runs with `compile` now must request it, this changes cu...
diff --git a/cranelift/codegen/src/context.rs b/cranelift/codegen/src/context.rs index a78553aa9..67e676581 100644 --- a/cranelift/codegen/src/context.rs +++ b/cranelift/codegen/src/context.rs @@ -91,18 +91,21 @@ impl Context { /// /// This function calls `compile` and `emit_to_memory`, taking care to resize ...
5
282
185
d50f0750785a2d96d0b794a42a9cdb6e645c27fc
Jef
2019-03-27T11:22:57
Add CondCode location so we can branch much more efficiently
diff --git a/src/backend.rs b/src/backend.rs index 3e217934b..7376f2459 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -368,6 +368,56 @@ pub enum CCLoc { Stack(i32), } +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub enum CondCode { + CF0, + CF1, + ZF0, + ZF1, + CF0AndZF0, + CF1OrZF1, +...
1
292
116
2353be95e692b0ca5eadfc74f885c2c85e8f037e
Yury Delendik
2019-03-26T16:58:06
update cranelift deps to 0.30.0
diff --git a/Cargo.toml b/Cargo.toml index bb2e094e9..e8fa5e9ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,8 +23,8 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cranelift-codegen = "0.29.0" -cranelift-native = "0.29.0" +cranelift-codegen = "0.30.0" +cranelift-native = "0.30.0" wasmtime-debug =...
8
25
25
94ca967d0a935dec4ce6e1524360f69401c79fd8
Yury Delendik
2019-03-26T15:05:25
Update faerie to 0.9.1
diff --git a/Cargo.toml b/Cargo.toml index f05aed71b..bb2e094e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,8 +34,8 @@ wasmtime-wast = { path = "wasmtime-wast" } docopt = "1.0.1" serde = "1.0.75" serde_derive = "1.0.75" -faerie = "0.7.1" -target-lexicon = { version = "0.2.0", default-features = false } +faerie =...
11
16
35
11b26430b6e0579d72b00fa4f5c5371643e9269b
Jef
2019-03-27T09:06:54
Fix on latest nightly
diff --git a/Cargo.toml b/Cargo.toml index ffe60876e..5f716ee0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,8 +11,8 @@ edition = "2018" [dependencies] smallvec = "0.6" -dynasm = "0.2.3" -dynasmrt = "0.2.3" +dynasm = "0.3" +dynasmrt = "0.3" wasmparser = { path = "./wasmparser.rs" } memoffset = "0.2" itertools...
6
109
166
82c68671551499aba3e5c400e469de6887fb7ecd
Dan Gohman
2019-03-26T18:28:39
Work around Cargo #4866. (#699) * Work around Cargo build #4866. This fixes #697. * Rename "cargo4866workaround" to "core" per review feedback.
diff --git a/cranelift/codegen/Cargo.toml b/cranelift/codegen/Cargo.toml index 0808b0fb6..da9b5e5d8 100644 --- a/cranelift/codegen/Cargo.toml +++ b/cranelift/codegen/Cargo.toml @@ -26,7 +26,7 @@ log = { version = "0.4.6", default-features = false } # accomodated in `tests`. [build-dependencies] -cranelift-codegen-m...
2
21
4
1ff22de331d55668e221a7c5580c10b20c85e8b6
Jef
2019-03-26T16:50:03
Remove unused code
diff --git a/src/backend.rs b/src/backend.rs index 3d8916443..b60a40cef 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -1,5 +1,3 @@ -#![allow(dead_code)] // for now - use crate::error::Error; use crate::microwasm::{BrTarget, SignlessType, Type, Value, F32, F64, I32, I64}; use crate::module::ModuleContext; @@ -1...
5
7
470
96df539554dc85fb5c047400536e0c364814e503
Jef
2019-03-26T16:40:57
Remove unused code
diff --git a/src/backend.rs b/src/backend.rs index b3502d3da..3d8916443 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -2,7 +2,7 @@ use crate::error::Error; use crate::microwasm::{BrTarget, SignlessType, Type, Value, F32, F64, I32, I64}; -use crate::module::{ModuleContext, RuntimeFunc}; +use crate::module::Mod...
6
27
702
6b854381bbc339358e4a2dfe232cad3e5166ac4a
Dan Gohman
2019-03-26T16:11:57
Fix a documentation-comment warning.
diff --git a/cranelift/codegen/src/timing.rs b/cranelift/codegen/src/timing.rs index 16f729f71..2a2d39380 100644 --- a/cranelift/codegen/src/timing.rs +++ b/cranelift/codegen/src/timing.rs @@ -176,7 +176,7 @@ mod details { } } - /// Information about passes in a single thread. + // Information abo...
1
1
1
6b85df016894a8c1fa944130f93631e2c784396c
Dan Gohman
2019-03-26T16:06:41
Update to wasmparser 0.29.2.
diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml index 0462fc8a6..a0ed9fb37 100644 --- a/cranelift/wasm/Cargo.toml +++ b/cranelift/wasm/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["webassembly", "wasm"] edition = "2018" [dependencies] -wasmparser = { version = "0.23.0", default-features = false } +wa...
3
214
52
975b7f2e8d5e9cd0b92ecde8a58d232edb1c284c
Dan Gohman
2019-03-26T15:40:06
Put a space between "//!" and "```".
diff --git a/cranelift/codegen/src/legalizer/split.rs b/cranelift/codegen/src/legalizer/split.rs index 67d947f4a..773df1321 100644 --- a/cranelift/codegen/src/legalizer/split.rs +++ b/cranelift/codegen/src/legalizer/split.rs @@ -14,13 +14,13 @@ //! //! When legalizing a single instruction, it is wrapped in splits and...
1
2
2
84b4fa0208931aebfee48122c7f073bc6cc0dc0c
Jef
2019-03-26T15:02:30
Update to latest cranelift
diff --git a/Cargo.toml b/Cargo.toml index f3cb00df9..ffe60876e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ itertools = "0.8" capstone = "0.5.0" failure = "0.1.3" failure_derive = "0.1.3" -cranelift-codegen = "0.28" +cranelift-codegen = "0.29" multi_mut = "0.1" either = "1.5" wabt = "0.7"
1
1
1
45efbf797385a5730dfe317c2bfc0c5a81b0eaba
bjorn3
2019-03-26T10:04:02
Optimize switch codegen and improve docs (#712)
diff --git a/cranelift/frontend/src/switch.rs b/cranelift/frontend/src/switch.rs index 653afbaed..0db3ac348 100644 --- a/cranelift/frontend/src/switch.rs +++ b/cranelift/frontend/src/switch.rs @@ -9,6 +9,36 @@ type EntryIndex = u64; /// Unlike with `br_table`, `Switch` cases may be sparse or non-0-based. /// They e...
1
114
27
cf9c57e279170387f9053a47c1b4a132b8637f35
Jef
2019-03-26T09:29:55
Fix `br_if` calling convention handling
diff --git a/src/backend.rs b/src/backend.rs index 7ca5090a1..b3502d3da 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -2391,6 +2391,38 @@ impl<'this, M: ModuleContext> Context<'this, M> { self.set_stack_depth_preserve_flags(cc.stack_depth); } + pub fn serialize_block_args_preserve_flags( + ...
2
49
15
3798890d71ade9f1c3fd1b9c1626ae9f4658604d
Jef
2019-03-26T08:01:09
Fix inter-function calls assuming that functions are allocated sequentially
diff --git a/src/backend.rs b/src/backend.rs index 8a008d068..7ca5090a1 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -2251,7 +2251,7 @@ impl<'this, M: ModuleContext> Context<'this, M> { default: Option<BrTarget<Label>>, pass_args: impl FnOnce(&mut Self), ) where - I: IntoIterator<It...
2
97
29
5e12f4f2b843f0dda601ef7c2dacfb6dfa8c4dae
Yury Delendik
2019-01-23T00:55:44
Add missing use_srcloc in postopt and regalloc passes
diff --git a/cranelift/codegen/src/postopt.rs b/cranelift/codegen/src/postopt.rs index 591b92ed0..a82a3e59d 100644 --- a/cranelift/codegen/src/postopt.rs +++ b/cranelift/codegen/src/postopt.rs @@ -128,6 +128,7 @@ fn optimize_cpu_flags( // We found a compare+branch pattern. Transform it to use flags. let args ...
3
6
0
791ccf84b47be4557d43eb9b81ae64966be311ea
Jef
2019-03-21T12:33:00
Free up registers where possible
diff --git a/src/backend.rs b/src/backend.rs index b1a2b53f9..8a008d068 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -289,12 +289,15 @@ macro_rules! asm_println { } impl GPRs { - fn take(&mut self) -> RegId { + fn take(&mut self) -> Option<RegId> { let lz = self.bits.trailing_zeros(); - ...
2
116
84
14bff9229eeee8b4f06d504b4ed14472c303c803
Jef
2019-03-20T17:38:32
Fix conversions
diff --git a/Cargo.toml b/Cargo.toml index 3b95e3f59..f3cb00df9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ either = "1.5" wabt = "0.7" lazy_static = "1.2" quickcheck = "0.7" +typemap = "0.3" [badges] maintenance = { status = "experimental" } diff --git a/src/backend.rs b/src/backend.rs index e7a7...
3
382
398
6b8ff11854019d9337f69e3f7dc104a3a5001407
Jef
2019-03-20T09:57:55
Implement imported mutable globals
diff --git a/src/backend.rs b/src/backend.rs index e9c767fe4..e7a7be544 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -689,6 +689,8 @@ struct Labels { neg_const_f64: Option<Pending<Label>>, abs_const_f32: Option<Pending<Label>>, abs_const_f64: Option<Pending<Label>>, + truncate_f32_const_u32: Op...
2
35
10
dc42a58277020ca3628d96bf1009d5f14457fc5c
Jef
2019-03-18T10:16:32
Fix double-free'd registers in `call_direct`
diff --git a/src/backend.rs b/src/backend.rs index 942671c01..bddcd9cfc 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -3455,7 +3455,9 @@ impl<'module, M: ModuleContext> Context<'module, M> { self.block_state.regs.release(cond_reg); let out_gpr = match (then, else_) { - (ValueLocatio...
1
15
10
4d537f703d0b0436c4e94aeadbdfeca528e29cd5
Jef
2019-03-15T14:15:40
Fix copysign
diff --git a/src/backend.rs b/src/backend.rs index 910bf1a40..ed097d14b 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -2688,9 +2688,9 @@ impl<'module, M: ModuleContext> Context<'module, M> { let (neg_zero, nan) = self.copysign_consts_f32_labels(); dynasm!(self.asm - ; an...
1
14
14
e4260d1f6eac2bddcf06aaba47d45f17376697aa
Jef
2019-03-15T12:13:34
Add more float ops
diff --git a/src/backend.rs b/src/backend.rs index 7e725a35a..910bf1a40 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -6,7 +6,7 @@ use self::registers::*; use crate::error::Error; use crate::microwasm::Value; use crate::module::{ModuleContext, RuntimeFunc}; -use cranelift_codegen::binemit; +use cranelift_codeg...
3
277
41
b7dfe8aaa63119717e2b89ee965b093f24b72bdb
Benjamin Bouvier
2019-03-11T19:12:15
Fix build warnings for cranelift-codegen tests;
diff --git a/cranelift/codegen/src/divconst_magic_numbers.rs b/cranelift/codegen/src/divconst_magic_numbers.rs index ebf1ae3f1..30d828774 100644 --- a/cranelift/codegen/src/divconst_magic_numbers.rs +++ b/cranelift/codegen/src/divconst_magic_numbers.rs @@ -246,7 +246,7 @@ mod tests { } #[test] - fn test_...
1
8
4
75312a645613b5f6f31d7194549a3e90720e6037
bjorn3
2019-03-07T18:02:24
Update faerie to 0.9.1
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index f72510e95..f6d338428 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -38,7 +38,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.2.0" +...
9
10
10
7b9761f4a26024794937cf94e887d7c7d0b76246
Yury Delendik
2019-03-07T02:55:24
Update cranelift dependencies to 0.29.0 (#59)
diff --git a/Cargo.toml b/Cargo.toml index 2e57e4e2f..12ea660bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,10 +23,8 @@ name = "wasm2obj" path = "src/wasm2obj.rs" [dependencies] -cranelift-codegen = "0.28.0" -cranelift-native = "0.28.0" -cranelift-entity = "0.28.0" -cranelift-wasm = "0.28.0" +cranelift-codegen ...
13
56
38
a4e878da7512bc83d8fe1b1001aba2fb9facc4d6
Jef
2019-03-06T13:03:40
Add more store instructions
diff --git a/src/backend.rs b/src/backend.rs index 90d15cac1..171388e9c 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -47,7 +47,7 @@ impl From<SignlessType> for Option<GPRType> { } impl GPR { - fn type_(&self) -> GPRType { + fn type_(self) -> GPRType { match self { GPR::Rq(_) => GP...
6
333
109
b4608c02c7b1217782708af0a64b0ee94e706b3a
bjorn3
2019-03-05T07:20:21
Fixed test
diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs index 02b1043b0..cefdb5bfe 100644 --- a/cranelift/frontend/src/frontend.rs +++ b/cranelift/frontend/src/frontend.rs @@ -1237,7 +1237,7 @@ ebb0: ebb0: v4 = iconst.i32 0 v0 -> v4 - v1 = iconst.i32 1 + v1 = iconst.i8 1 ...
1
1
1
395de457c0a53edc0bec5496c3a132e0b975d111
Dan Gohman
2019-03-05T07:18:28
Add more tests for emit_small_memset and emit_small_memcpy. (#1)
diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs index 9d1eec4b2..02b1043b0 100644 --- a/cranelift/frontend/src/frontend.rs +++ b/cranelift/frontend/src/frontend.rs @@ -1078,6 +1078,175 @@ ebb0: ); } + #[test] + fn not_so_small_memcpy() { + use core::str:...
1
169
0
2d2b041766178f23938d5ab8ac79c6ccb409bf5c
bjorn3
2019-03-02T19:19:11
Fix emit_small_memset
diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs index c1b3e5211..9d1eec4b2 100644 --- a/cranelift/frontend/src/frontend.rs +++ b/cranelift/frontend/src/frontend.rs @@ -638,7 +638,7 @@ impl<'a> FunctionBuilder<'a> { /// Calls libc.memset /// - /// Writes `size` bytes o...
1
3
3
ec521088b736b49dc1f3d11a3bdc989678ca0310
Benjamin Bouvier
2019-03-05T14:07:21
Fixes #695: Reintroduce a workspace declaration to run all tests with cargo;
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index f4c25a168..650551c38 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -9,6 +9,10 @@ repository = "https://github.com/CraneStation/cranelift" publish = false edition = "2018" +# Present here only to make sure that cargo test --all runs tes...
1
4
0
27b0933a4a895d39c30e390fa0aa610feb25cd64
Yury Delendik
2019-01-22T22:48:31
Preserve global wasm module offset in SourceLoc.
diff --git a/cranelift/wasm/src/environ/dummy.rs b/cranelift/wasm/src/environ/dummy.rs index 28cea89e7..70b592bbd 100644 --- a/cranelift/wasm/src/environ/dummy.rs +++ b/cranelift/wasm/src/environ/dummy.rs @@ -458,7 +458,11 @@ impl<'data> ModuleEnvironment<'data> for DummyEnvironment { self.info.start_func = So...
4
25
13
6eb09d9eddbc64e86072aff73b6cfe3470ea8a35
Max McDonnell
2019-03-05T01:27:57
Parallelize the compilation loop with Rayon (#58)
diff --git a/lib/environ/Cargo.toml b/lib/environ/Cargo.toml index 8c2842bcc..9c0b9a353 100644 --- a/lib/environ/Cargo.toml +++ b/lib/environ/Cargo.toml @@ -19,6 +19,7 @@ cast = { version = "0.2.2", default-features = false } failure = { version = "0.1.3", default-features = false } failure_derive = { version = "0.1....
2
34
22
04d4b20df426f1f2d4087124e18cdd0f01ac45c4
Dan Gohman
2019-03-01T23:45:11
Fix clippy.toml paths and a few clippy lints.
diff --git a/lib/jit/src/context.rs b/lib/jit/src/context.rs index f2c4f0c1a..1b36f9bc0 100644 --- a/lib/jit/src/context.rs +++ b/lib/jit/src/context.rs @@ -93,7 +93,7 @@ impl Context { &mut *self.compiler, &data, &mut self.namespace, - Rc::clone(&mut self.global_export...
5
11
11
2f2626f4b3a1578fb8007f7d82d6794dec74fd15
Dan Gohman
2019-03-01T23:17:31
Remove the empty `[workspace]` declaration. It doesn't appear to be needed; the crate directories having Cargo.toml files appears to be sufficient.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 36c85ba34..f4c25a168 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -43,8 +43,6 @@ default = ["disas", "wasm"] disas = ["capstone"] wasm = ["wabt", "cranelift-wasm"] -[workspace] - # We want debug symbols on release binaries by default...
1
0
2
e2f79ae4052e7145702374b4aa1d9bd79629e893
Dan Gohman
2019-02-23T01:10:23
Do more `Vec` reserving.
diff --git a/lib/environ/src/module_environ.rs b/lib/environ/src/module_environ.rs index 763258e56..1a75d21e4 100644 --- a/lib/environ/src/module_environ.rs +++ b/lib/environ/src/module_environ.rs @@ -160,6 +160,9 @@ impl<'data> cranelift_wasm::ModuleEnvironment<'data> for ModuleEnvironment<'data fn reserve_func...
3
27
20
538ef20f501271ecb7a985d4d26f3798682959f6
Dan Gohman
2019-02-23T00:02:19
Use `with_capacity` to minimize reallocation.
diff --git a/lib/environ/src/cranelift.rs b/lib/environ/src/cranelift.rs index 573b8b132..7cc35a9aa 100644 --- a/lib/environ/src/cranelift.rs +++ b/lib/environ/src/cranelift.rs @@ -87,8 +87,8 @@ pub fn compile_module<'data, 'module>( function_body_inputs: PrimaryMap<DefinedFuncIndex, &'data [u8]>, isa: &dyn i...
1
2
2
cd21efd88a2830000c29cb623475c9cb8f5fb0b1
Dan Gohman
2019-02-22T23:22:24
Tidy up an unnecessary lambda.
diff --git a/lib/runtime/src/traphandlers.rs b/lib/runtime/src/traphandlers.rs index ec3b5a737..76a4cde7a 100644 --- a/lib/runtime/src/traphandlers.rs +++ b/lib/runtime/src/traphandlers.rs @@ -53,7 +53,7 @@ struct ScopeGuard { impl ScopeGuard { fn new() -> Self { assert_eq!( - TRAP_PC.with(|da...
1
1
1
e5f7da2e228cdc6e44c1c66bf9bbf0bddfadc7bd
Dan Gohman
2019-02-22T23:22:11
Tidy up redundant conversions.
diff --git a/lib/environ/src/vmoffsets.rs b/lib/environ/src/vmoffsets.rs index 30e413f34..d55ab8cc8 100644 --- a/lib/environ/src/vmoffsets.rs +++ b/lib/environ/src/vmoffsets.rs @@ -346,10 +346,11 @@ impl VMOffsets { /// Return the offset to `VMSharedSignatureId` index `index`. pub fn vmctx_vmshared_signatur...
1
24
16
0cfc917c9766fbebcce0fc47a79cc727de99ca96
Jef
2019-03-01T07:15:42
Fix some ugliness
diff --git a/src/function_body.rs b/src/function_body.rs index 1796f2b77..52efc81df 100644 --- a/src/function_body.rs +++ b/src/function_body.rs @@ -26,6 +26,8 @@ impl Block { } } +const DISASSEMBLE: bool = false; + pub fn translate_wasm<M: ModuleContext>( session: &mut CodeGenSession<M>, func_idx: u...
2
5
26
71662af0fa108a913fa2d322c94b41dc05a621f7
Jef
2019-02-28T17:09:22
Integer division
diff --git a/src/backend.rs b/src/backend.rs index 93d3aaff8..90d15cac1 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -1570,7 +1570,7 @@ impl<M: ModuleContext> Context<'_, M> { &mut self, targets: I, default: Option<BrTarget<Label>>, - mut pass_args: impl FnOnce(&mut Self), + ...
2
263
41
677d54e46deedc17840a19968477cc9db2e4b1e3
Jef
2019-02-27T16:59:27
Experimental br_table support
diff --git a/src/backend.rs b/src/backend.rs index 41debc84b..93d3aaff8 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -1,6 +1,6 @@ #![allow(dead_code)] // for now -use microwasm::{SignlessType, Type, F32, F64, I32, I64}; +use microwasm::{BrTarget, SignlessType, Type, F32, F64, I32, I64}; use self::registers...
4
248
21
15bf933be72da5982d4ee0e0923e9d947c57f74b
Jef
2019-02-27T10:29:23
Add more float operations
diff --git a/src/backend.rs b/src/backend.rs index 6fe3e0470..41debc84b 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -497,7 +497,7 @@ impl<'a, M> CodeGenSession<'a, M> { Context { asm: &mut self.assembler, func_starts: &self.func_starts, - trap_label: None, + ...
3
586
155
fb7c1b77958c9ae850edd2392c85c83dfe27ed00
Dan Gohman
2019-02-26T16:47:15
`Self` struct constructors are unstable.
diff --git a/lib/runtime/src/vmcontext.rs b/lib/runtime/src/vmcontext.rs index 2e8c91400..b5f2a507e 100644 --- a/lib/runtime/src/vmcontext.rs +++ b/lib/runtime/src/vmcontext.rs @@ -409,7 +409,7 @@ mod test_vmshared_signature_index { impl VMSharedSignatureIndex { /// Create a new `VMSharedSignatureIndex`. pub...
1
1
1
3827bc7a046640d8a78d3ba415f6bdf21576d1a3
Dan Gohman
2019-02-22T23:21:20
Avoid struct name repetitions.
diff --git a/lib/runtime/src/instance.rs b/lib/runtime/src/instance.rs index 08ae6f0b5..21fe4d508 100644 --- a/lib/runtime/src/instance.rs +++ b/lib/runtime/src/instance.rs @@ -843,7 +843,7 @@ impl InstanceHandle { impl Clone for InstanceHandle { fn clone(&self) -> Self { unsafe { &mut *(self.instance as...
2
2
2
601057ec4244be00fdcd77412d9a61a91602b10a
Dan Gohman
2019-02-22T23:17:38
Tidy up a redundant field name.
diff --git a/lib/runtime/src/instance.rs b/lib/runtime/src/instance.rs index 3f9b11fe9..08ae6f0b5 100644 --- a/lib/runtime/src/instance.rs +++ b/lib/runtime/src/instance.rs @@ -755,7 +755,7 @@ impl InstanceHandle { // invoked automatically at instantiation time. instance.invoke_start_function()?; - ...
1
1
1
d7dc36e7526301932475a761c72f2ef46eb4bcd9
Dan Gohman
2019-02-22T22:42:18
Reorder the fields of Export::Function for consistency.
diff --git a/lib/runtime/src/export.rs b/lib/runtime/src/export.rs index 8ee008aa3..db7fb6d48 100644 --- a/lib/runtime/src/export.rs +++ b/lib/runtime/src/export.rs @@ -12,10 +12,10 @@ pub enum Export { Function { /// The address of the native-code function. address: *const VMFunctionBody, - ...
1
4
4
cadead6a86eb4caf2116a1be2cf5d55e7570ee09
Dan Gohman
2019-02-22T22:39:04
Use code quotes around `VMContext` in comments.
diff --git a/lib/runtime/src/export.rs b/lib/runtime/src/export.rs index f705fdaba..8ee008aa3 100644 --- a/lib/runtime/src/export.rs +++ b/lib/runtime/src/export.rs @@ -14,7 +14,7 @@ pub enum Export { address: *const VMFunctionBody, /// The function signature declaration, used for compatibilty checkin...
2
7
7
3cc113482d7b655ae7f6b43f9d709665506ca37c
Dan Gohman
2019-02-22T22:29:11
Rename `InstanceContents` to `Instance`.
diff --git a/lib/jit/src/instantiate.rs b/lib/jit/src/instantiate.rs index dee1d1e2f..076a4ab47 100644 --- a/lib/jit/src/instantiate.rs +++ b/lib/jit/src/instantiate.rs @@ -160,7 +160,7 @@ impl CompiledModule { } } - /// Crate an `InstanceContents` from this `CompiledModule`. + /// Crate an `Insta...
5
147
150
5f201f6d737e32b8fe6702988f29032497b66c75
Dan Gohman
2019-02-22T22:11:02
Rename `Instance` to `InstanceHandle`.
diff --git a/lib/jit/src/action.rs b/lib/jit/src/action.rs index 820ba51d7..c2753a216 100644 --- a/lib/jit/src/action.rs +++ b/lib/jit/src/action.rs @@ -7,7 +7,7 @@ use core::{fmt, mem, ptr, slice}; use cranelift_codegen::ir; use std::string::String; use std::vec::Vec; -use wasmtime_runtime::{wasmtime_call_trampolin...
13
82
79
21abecb15850eeaffe229281b87670426ab826eb
Dan Gohman
2019-02-22T22:09:33
Remove an unneeded `mut`.
diff --git a/fuzz/fuzz_targets/compile.rs b/fuzz/fuzz_targets/compile.rs index 59d4ca7ef..c912b89db 100644 --- a/fuzz/fuzz_targets/compile.rs +++ b/fuzz/fuzz_targets/compile.rs @@ -26,7 +26,7 @@ fuzz_target!(|data: &[u8]| { let isa = isa_builder.finish(settings::Flags::new(flag_builder)); let mut compiler = C...
1
1
1
077ee717a8923e51589f80b13b819b872c181b7f
Dan Gohman
2019-02-22T19:48:17
Make Instance a refcounting handle around InstanceContents.
diff --git a/lib/jit/src/action.rs b/lib/jit/src/action.rs index 3dd6c8a86..820ba51d7 100644 --- a/lib/jit/src/action.rs +++ b/lib/jit/src/action.rs @@ -254,7 +254,11 @@ pub fn inspect_memory<'instance>( /// Read a global in this `Instance` identified by an export name. pub fn get(instance: &Instance, global_name: &s...
11
204
188
a8cd5ef613536c0bfa412dd78b6cb799f72dc6fd
Dan Gohman
2019-02-22T18:51:48
Refactor Instance's methods to just be wrappers around InstanceContents methods.
diff --git a/lib/runtime/src/instance.rs b/lib/runtime/src/instance.rs index a184b3dc0..4a8023ea6 100644 --- a/lib/runtime/src/instance.rs +++ b/lib/runtime/src/instance.rs @@ -367,6 +367,62 @@ impl InstanceContents { self.vmctx_mut() } + /// Lookup an export with the given name. + pub fn lookup(&...
1
68
31
1ab9e175170eac799310086aa3f4a98d3d75d0de
Dan Gohman
2019-02-22T18:43:38
Move Instance's `module` field into `InstanceContents`.
diff --git a/lib/runtime/src/instance.rs b/lib/runtime/src/instance.rs index d917143cc..a184b3dc0 100644 --- a/lib/runtime/src/instance.rs +++ b/lib/runtime/src/instance.rs @@ -184,6 +184,9 @@ fn global_mut<'vmctx>( /// FIXME: Should this be pub(crate)? #[repr(C)] pub struct InstanceContents { + /// The `Module` ...
1
51
68
d2894f9f45207ca02d3bda68eb46bdd870afc7a3
Pat Hickey
2019-02-21T23:48:03
cranelift-faerie: convert to use new extensible decl format Bump faerie to 0.8.0 and goblin to 0.0.21. * Preemptible linkages are now weak symbols * Faerie will put read-only data in .rodata for elf
diff --git a/cranelift/faerie/Cargo.toml b/cranelift/faerie/Cargo.toml index d15ebf4aa..c0f1f95bd 100644 --- a/cranelift/faerie/Cargo.toml +++ b/cranelift/faerie/Cargo.toml @@ -12,8 +12,8 @@ edition = "2018" [dependencies] cranelift-codegen = { path = "../cranelift-codegen", version = "0.28.0" } cranelift-module = {...
2
11
18