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
2941c2022f52ba6aff68f1032c4ebbb0780f3726
Jakub Konka
2019-08-26T11:20:17
Refactor wasmtime-wasi crate Changes: * uses Rust edition 2018 * returns wasm32 errno directly rather than relying on wasi_common::{host, memory} modules * wraps extraction of memory and WASI context in a macro
diff --git a/wasmtime-wasi/Cargo.toml b/wasmtime-wasi/Cargo.toml index 3afc12e78..420eee6be 100644 --- a/wasmtime-wasi/Cargo.toml +++ b/wasmtime-wasi/Cargo.toml @@ -7,6 +7,7 @@ categories = ["wasm"] repository = "https://github.com/CraneStation/wasmtime" license = "Apache-2.0 WITH LLVM-exception" readme = "README.md...
4
119
455
ade5c0dd2f47c5ee1f54e20d6353346574a40df3
Artur Jamro
2019-08-22T20:07:41
Trace log access to cache system
diff --git a/misc/wasmtime-py/src/import.rs b/misc/wasmtime-py/src/import.rs index 2fa2280aa..452c7a38b 100644 --- a/misc/wasmtime-py/src/import.rs +++ b/misc/wasmtime-py/src/import.rs @@ -353,6 +353,14 @@ impl binemit::RelocSink for RelocSink { ) { panic!("trampoline compilation should not produce extern...
2
11
1
f65d8f2372b4fde932eecdf35f272ff2a257dc88
Artur Jamro
2019-08-22T18:50:52
Refactor: cascade of matches in cache system
diff --git a/wasmtime-environ/src/cache.rs b/wasmtime-environ/src/cache.rs index 4c41797e2..71832d72e 100644 --- a/wasmtime-environ/src/cache.rs +++ b/wasmtime-environ/src/cache.rs @@ -150,28 +150,27 @@ pub mod conf { lazy_static! { static ref SELF_MTIME: String = { - match std::env::current_exe() { - ...
1
77
98
bb0a44374718352f97137c956183f52cf2b646c8
Andrew Brown
2019-07-29T20:09:25
Add stubs for constant relocation in RelocSink
diff --git a/wasmtime-environ/src/cranelift.rs b/wasmtime-environ/src/cranelift.rs index c994cca04..7e87a026b 100644 --- a/wasmtime-environ/src/cranelift.rs +++ b/wasmtime-environ/src/cranelift.rs @@ -72,6 +72,17 @@ impl binemit::RelocSink for RelocSink { addend, }); } + + fn reloc_constan...
2
19
0
1a099f2e8c5c0c4ed0ff8d5887d894ef0b89b203
Ujjwal Sharma
2019-09-04T18:28:31
[codegen] change operand type from bool to iflag for isub borrow variants The type of the borrow operands for the borrow variants of the isub instruction (isub_bin, isub_bout, isub_borrow) was bool for compatibility reasons for isa/riscv. Since support for these instructions on RISC architectures has been temporarily ...
diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs index 02819be42..85c39d71b 100644 --- a/cranelift/codegen/meta/src/shared/instructions.rs +++ b/cranelift/codegen/meta/src/shared/instructions.rs @@ -1866,8 +1866,8 @@ pub fn define( let y = &operand(...
1
2
2
9fb8bdd6d51ef8d1b9acee2528c7ee2a64d35038
Ujjwal Sharma
2019-09-04T18:21:30
[codegen] remove support for isub borrow variants on riscv Previously, the borrow variants of isub (isub_bin, isub_bout and isub_borrow) were being legalized for isa/riscv since RISC architectures lack a flags register. This forced us to return and accept booleans for these operations, which proved to be problematic ...
diff --git a/cranelift/codegen/meta/src/shared/legalize.rs b/cranelift/codegen/meta/src/shared/legalize.rs index 05c74fdc4..709dab796 100644 --- a/cranelift/codegen/meta/src/shared/legalize.rs +++ b/cranelift/codegen/meta/src/shared/legalize.rs @@ -86,7 +86,6 @@ pub fn define(insts: &InstructionGroup, immediates: &Oper...
1
0
30
1c28d43f00fa99628bdbed74da100a62624bfca0
Benjamin Bouvier
2019-09-03T16:23:21
[meta] Remove unused immfield index in the FormatField;
diff --git a/cranelift/codegen/meta/src/cdsl/formats.rs b/cranelift/codegen/meta/src/cdsl/formats.rs index a0dcbb67a..cf82da180 100644 --- a/cranelift/codegen/meta/src/cdsl/formats.rs +++ b/cranelift/codegen/meta/src/cdsl/formats.rs @@ -12,9 +12,6 @@ use cranelift_entity::{entity_impl, PrimaryMap}; /// data type. #[d...
1
2
7
38656cce35a78d2bedcdf54008a51fc22cfbbd67
Benjamin Bouvier
2019-09-03T16:14:58
[meta] Simplify and comment instruction building a bit;
diff --git a/cranelift/codegen/meta/src/cdsl/formats.rs b/cranelift/codegen/meta/src/cdsl/formats.rs index a3249b4c6..a0dcbb67a 100644 --- a/cranelift/codegen/meta/src/cdsl/formats.rs +++ b/cranelift/codegen/meta/src/cdsl/formats.rs @@ -189,7 +189,9 @@ impl FormatRegistry { if operand.is_value() { ...
2
66
72
0acddc08ea80497ad229e2927a592f18dca2c401
Benjamin Bouvier
2019-09-03T14:32:32
[meta] Split FormatBuilder::imm to avoid the extra Into<> parameter type;
diff --git a/cranelift/codegen/meta/src/cdsl/formats.rs b/cranelift/codegen/meta/src/cdsl/formats.rs index b716a8a97..a3249b4c6 100644 --- a/cranelift/codegen/meta/src/cdsl/formats.rs +++ b/cranelift/codegen/meta/src/cdsl/formats.rs @@ -89,27 +89,6 @@ pub struct InstructionFormatBuilder { typevar_operand: Option<u...
2
28
36
8a9384f86940112f5379ce7278ed136258de7ec0
Benjamin Bouvier
2019-09-03T13:31:13
Tweak comments;
diff --git a/cranelift/codegen/meta/src/isa/x86/encodings.rs b/cranelift/codegen/meta/src/isa/x86/encodings.rs index ab929011b..9c7ff8961 100644 --- a/cranelift/codegen/meta/src/isa/x86/encodings.rs +++ b/cranelift/codegen/meta/src/isa/x86/encodings.rs @@ -279,7 +279,8 @@ impl PerCpuModeEncodings { } } ...
6
44
33
26b88ae7b5bcfba1e4920eaa5dbf85fdb36cf1cd
Sean Stangl
2019-09-05T14:21:29
Limit redundant jump folding to only fold parameterless target blocks (#972)
diff --git a/cranelift/codegen/src/binemit/relaxation.rs b/cranelift/codegen/src/binemit/relaxation.rs index 6648369cf..bd09d473d 100644 --- a/cranelift/codegen/src/binemit/relaxation.rs +++ b/cranelift/codegen/src/binemit/relaxation.rs @@ -169,6 +169,14 @@ fn try_fold_redundant_jump( } }; + // For t...
1
8
0
0f4101a509c4ad1f67df07cb061be4e40d09a6d4
Pat Hickey
2019-09-04T19:26:28
upgrade to faerie 0.11.0 which fixes a use-after-free bug under the hood
diff --git a/cranelift/faerie/Cargo.toml b/cranelift/faerie/Cargo.toml index 15493d734..26f497d3b 100644 --- a/cranelift/faerie/Cargo.toml +++ b/cranelift/faerie/Cargo.toml @@ -12,7 +12,7 @@ edition = "2018" [dependencies] cranelift-codegen = { path = "../cranelift-codegen", version = "0.41.0" } cranelift-module = {...
2
2
2
89d741f8aece93feed7ed169c9358eb1e59c23be
Pat Hickey
2019-09-04T19:25:58
upgrade to target-lexicon 0.8.0 * the target-lexicon crate no longer has or needs the std feature in cargo, so we can delete all default-features=false, any mentions of its std feature, and the nostd configs in many lib.rs files * the representation of arm architectures has changed, so some case statements neede...
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index b59837f27..d714b67ad 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -38,7 +38,7 @@ serde = "1.0.8" term = "0.6.1" capstone = { version = "0.6.0", optional = true } wabt = { version = "0.9.1", optional = true } -target-lexicon = "0.4.0" +...
20
33
44
364300f6cff1ecf779a4f240946fe29237c76ca0
Artur Jamro
2019-09-04T20:12:27
Use target triple in cache directory hierarchy (#300)
diff --git a/wasmtime-environ/src/cache.rs b/wasmtime-environ/src/cache.rs index 71de817f3..905ac26f9 100644 --- a/wasmtime-environ/src/cache.rs +++ b/wasmtime-environ/src/cache.rs @@ -231,7 +231,7 @@ impl ModuleCacheEntry { ); Some( conf::cache_directory() - ...
2
2
1
44942a26a229eded88a99c7571673a990c0a88be
Benjamin Bouvier
2019-08-27T15:04:04
Tweak comments;
diff --git a/cranelift/codegen/src/binemit/mod.rs b/cranelift/codegen/src/binemit/mod.rs index 1287dcd43..d6ca75d2d 100644 --- a/cranelift/codegen/src/binemit/mod.rs +++ b/cranelift/codegen/src/binemit/mod.rs @@ -133,7 +133,7 @@ pub trait CodeSink { /// Add a relocation referencing an external symbol plus the adde...
2
2
2
47e5d6c83eff94a97035612b719b38d196978b9a
Benjamin Bouvier
2019-08-29T14:10:04
[regalloc] Transform the program_input_abi function into a Context method; It was implemented this way before to avoid borrow-checking issues, where self would be both mutably borrowed (because of the solver) and immutably borrowed (because of the ABI parameters list). This is worked around by adding a local AbiParams...
diff --git a/cranelift/codegen/src/regalloc/coloring.rs b/cranelift/codegen/src/regalloc/coloring.rs index 0df5795c1..507d5e3ff 100644 --- a/cranelift/codegen/src/regalloc/coloring.rs +++ b/cranelift/codegen/src/regalloc/coloring.rs @@ -44,7 +44,7 @@ use crate::cursor::{Cursor, EncCursor}; use crate::dominator_tree...
1
39
48
cd1b2c0af029f65742927b75e9ef9769f2e8d121
Benjamin Bouvier
2019-08-28T15:02:10
[meta] Try to use {prefix+number} when looking up a register by name; This makes it possible to look up registers like r15 on x86.
diff --git a/cranelift/codegen/meta/src/cdsl/regs.rs b/cranelift/codegen/meta/src/cdsl/regs.rs index 60bf8f581..e7a3464d1 100644 --- a/cranelift/codegen/meta/src/cdsl/regs.rs +++ b/cranelift/codegen/meta/src/cdsl/regs.rs @@ -43,10 +43,26 @@ impl RegBank { // Try to match without the bank prefix. ...
1
18
2
947eb1fb530f5ceb562c2c2f6dd5a7113704b60f
Marcin Mielniczuk
2019-08-23T16:34:04
Move fd_advise on Linux to nix
diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs index 90ce9c217..863d28e5f 100644 --- a/src/sys/unix/hostcalls_impl/fs.rs +++ b/src/sys/unix/hostcalls_impl/fs.rs @@ -4,7 +4,7 @@ use super::fs_helpers::*; use crate::helpers::systemtime_to_timestamp; use crate::hostcalls_impl::PathGet...
1
32
27
bb87f1a54ade651f179c423c76ec0ba36ff8ce6f
Nicolas B. Pierron
2019-08-01T13:06:49
Add EntryRegDiversions to record diversions for each block entry.
diff --git a/cranelift/codegen/src/binemit/mod.rs b/cranelift/codegen/src/binemit/mod.rs index e5d0cbbec..1287dcd43 100644 --- a/cranelift/codegen/src/binemit/mod.rs +++ b/cranelift/codegen/src/binemit/mod.rs @@ -176,7 +176,7 @@ where { let mut divert = RegDiversions::new(); for ebb in func.layout.ebbs() { -...
9
126
16
4e7226ddcace71fcd0f4ecb1658aaeac95f38fa1
Andrew Brown
2019-08-28T16:18:43
Fix documentation warnings in ConstantPool
diff --git a/cranelift/codegen/src/ir/constant.rs b/cranelift/codegen/src/ir/constant.rs index c44dcd337..50e93df1a 100644 --- a/cranelift/codegen/src/ir/constant.rs +++ b/cranelift/codegen/src/ir/constant.rs @@ -19,8 +19,9 @@ pub type ConstantOffset = u32; /// Inner type for storing data and offset together in the co...
1
6
4
3609a82dc910976197c8424bd13bc6b6493df86a
Jakub Konka
2019-08-26T12:40:59
Fix incorrect fd_readdir behaviour * when executed twice in a row, need to manually reset the stream by calling seekdir with __WASI_DIRCOOKIE_START, if __WASI_DIRCOOKIE_START was specified * fix mapping between d_type and __wasi_filetype_t * include minor refactor - removes use of wasm32 module on the host's sid...
diff --git a/src/sys/unix/host_impl.rs b/src/sys/unix/host_impl.rs index 8d736af53..eeecba5bb 100644 --- a/src/sys/unix/host_impl.rs +++ b/src/sys/unix/host_impl.rs @@ -2,7 +2,7 @@ #![allow(non_camel_case_types)] #![allow(non_snake_case)] #![allow(dead_code)] -use crate::{host, memory, wasm32, Result}; +use crate::{...
2
53
20
04b10b3fde529518477369a71393110599e2184d
Nicolas B. Pierron
2019-08-27T12:25:21
Add feature flags to test files. Cranelift can be compiled with feature flags which can change its output. To accomodate changes of output related to feature flags, test file can now include `feature "..."` and `feature ! "..."` directives in the preamble of the test file. The test runner would skip the test if the f...
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index a8f85c30b..674db7cb9 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -48,7 +48,8 @@ walkdir = "2.2" default = ["disas", "wasm", "cranelift-codegen/all-arch"] disas = ["capstone"] wasm = ["wabt", "cranelift-wasm"] -basic-blocks = ["craneli...
7
130
7
26efc696c61190e41b95ae2ee6f7bdbc94c3d9d1
Benjamin Bouvier
2019-08-28T14:05:54
Remove specific calling convention in clif-util's run test.
diff --git a/cranelift/src/run.rs b/cranelift/src/run.rs index 103c2a885..a3cd94b25 100644 --- a/cranelift/src/run.rs +++ b/cranelift/src/run.rs @@ -108,13 +108,12 @@ mod test { fn nop() { let code = String::from( " - function %test() -> b8 system_v { + function %test() ...
1
1
2
9612c71fbd3c3f182e6fdec274e89e3ece923369
Andrew Brown
2019-08-27T20:23:55
Remove calling convention on FunctionRunner test For this test to run on Windows, the explicit calling convention must be removed so that the parser is free to use the host's calling convention.
diff --git a/cranelift/filetests/src/function_runner.rs b/cranelift/filetests/src/function_runner.rs index 1c1272cce..8837596ed 100644 --- a/cranelift/filetests/src/function_runner.rs +++ b/cranelift/filetests/src/function_runner.rs @@ -99,7 +99,9 @@ mod test { #[test] fn nop() { let code = String::f...
1
3
1
6fdc69ff2ee940c326944d1c0c8069e1efc57e92
Andrew Brown
2019-08-27T18:31:08
Add options for parsing test files (#942) * Add options for parsing test files This change allows adding parsing parameters more easily; e.g. a parameter is needed for setting the default calling convention for functions parsed as a part of the `run` test feature. * Set default calling convention that of the hos...
diff --git a/cranelift/filetests/src/function_runner.rs b/cranelift/filetests/src/function_runner.rs index 954306f5d..1c1272cce 100644 --- a/cranelift/filetests/src/function_runner.rs +++ b/cranelift/filetests/src/function_runner.rs @@ -1,7 +1,7 @@ use core::mem; use cranelift_codegen::binemit::{NullRelocSink, NullSt...
8
116
36
e4702d695e71899ddf6480f05e9bf3f74cf66fcf
Benjamin Bouvier
2019-08-21T14:35:45
[meta] Generate doc comments for the encodings tables;
diff --git a/cranelift/codegen/meta/src/gen_binemit.rs b/cranelift/codegen/meta/src/gen_binemit.rs index 1bf95a83e..53929fe8c 100644 --- a/cranelift/codegen/meta/src/gen_binemit.rs +++ b/cranelift/codegen/meta/src/gen_binemit.rs @@ -137,7 +137,7 @@ fn unwrap_values( values_slice, ...
2
70
3
2b49b513065fbf8837147ce183dc8f689e48ea4b
Andrew Brown
2019-08-27T08:52:06
Add flags to allow wasm SIMD instructions (#910) Add `--enable-simd` flag to `clif-util wasm`
diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs index 8077cf9b2..19402d4bf 100755 --- a/cranelift/src/clif-util.rs +++ b/cranelift/src/clif-util.rs @@ -104,7 +104,13 @@ fn add_print_flag<'a>() -> clap::Arg<'a, 'a> { fn add_debug_flag<'a>() -> clap::Arg<'a, 'a> { Arg::with_name("debug") ...
3
20
5
c595acfd0d64273a81e35f951b79b75c3fd3df4f
Andrew Brown
2019-08-08T18:31:35
Convert constants added by v128.const to the appropriate type before use By default, constants added by SIMD's v128.const will be typed as I8x16 in CLIF. This type must be changed to the appropriate vector type before use to satisfy cranelift's type checking. To do this, we track what SSA values are created by v128.co...
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index 9c5084721..b87844bfd 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -33,7 +33,7 @@ use crate::wasm_unsupported; use core::{i32, u32}; use cranelift_codegen::ir::condcodes...
1
30
7
cb041407c1bda6d24b055b03ba26e5b3fc5b156c
Andrew Brown
2019-07-29T21:56:38
Translate existing WASM SIMD operations to CLIF
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index ad8bbda43..9c5084721 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -922,30 +922,46 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>( | Operator::TableSi...
1
191
18
684721ca2902c93daa1ff7d80a48f823ba16c719
Andrew Brown
2019-07-23T18:04:11
Add x86 recipe for vconst
diff --git a/cranelift/codegen/meta/src/isa/x86/recipes.rs b/cranelift/codegen/meta/src/isa/x86/recipes.rs index 50ac9fca7..d12658080 100644 --- a/cranelift/codegen/meta/src/isa/x86/recipes.rs +++ b/cranelift/codegen/meta/src/isa/x86/recipes.rs @@ -399,6 +399,7 @@ pub fn define<'shared>( let f_unary_ieee32 = forma...
2
23
1
407d24c0132dcb9d050990bb225ee3cf39c7a1b1
Andrew Brown
2019-07-23T18:02:52
Add operand kind and format for unsigned 128-bit immediates
diff --git a/cranelift/codegen/meta/src/shared/formats.rs b/cranelift/codegen/meta/src/shared/formats.rs index e6e7c92df..394eb6d58 100644 --- a/cranelift/codegen/meta/src/shared/formats.rs +++ b/cranelift/codegen/meta/src/shared/formats.rs @@ -5,6 +5,7 @@ pub fn define(immediates: &OperandKinds, entities: &OperandKind...
7
71
1
5ded38ce3e2c0a059521364a68670e9ca3dd3a8e
Andrew Brown
2019-07-23T17:52:38
Add unsigned 128-bit immediate
diff --git a/cranelift/codegen/src/ir/immediates.rs b/cranelift/codegen/src/ir/immediates.rs index 4a8d5e1fb..5c36f362a 100644 --- a/cranelift/codegen/src/ir/immediates.rs +++ b/cranelift/codegen/src/ir/immediates.rs @@ -264,6 +264,74 @@ impl FromStr for Uimm32 { } } +/// A 128-bit unsigned integer immediate op...
1
100
0
7b2d055f786ba4bd62bcfef1b9eb94b44f722255
Andrew Brown
2019-07-23T17:47:03
Add ability to relocate constants using RelocSink
diff --git a/cranelift/codegen/src/binemit/memorysink.rs b/cranelift/codegen/src/binemit/memorysink.rs index 49c519f6b..ffb8b44b4 100644 --- a/cranelift/codegen/src/binemit/memorysink.rs +++ b/cranelift/codegen/src/binemit/memorysink.rs @@ -16,7 +16,7 @@ use super::{Addend, CodeInfo, CodeOffset, CodeSink, Reloc}; use...
8
79
5
c20b13d5a9dd12fef3fa0976bca8f359700f8ffb
Andrew Brown
2019-07-23T17:38:29
Add ConstantPool
diff --git a/cranelift/codegen/src/ir/constant.rs b/cranelift/codegen/src/ir/constant.rs new file mode 100644 index 000000000..c44dcd337 --- /dev/null +++ b/cranelift/codegen/src/ir/constant.rs @@ -0,0 +1,218 @@ +//! Constants +//! +//! The constant pool defined here allows cranelift to avoid emitting the same constant...
4
252
3
ea9ee202bb9f54dfb09d35ce67559708e348a91a
Andrew Brown
2019-07-23T17:18:50
Clear jump tables when function data is cleared
diff --git a/cranelift/codegen/src/ir/function.rs b/cranelift/codegen/src/ir/function.rs index 8eea54256..1dcdeee91 100644 --- a/cranelift/codegen/src/ir/function.rs +++ b/cranelift/codegen/src/ir/function.rs @@ -113,6 +113,7 @@ impl Function { self.encodings.clear(); self.locations.clear(); ...
1
1
0
67a995f10789c1ba624cfbb8ae4e9a98e4dd4bf4
Benjamin Bouvier
2019-08-23T10:39:33
[clif-util] Use a simple cfg guard instead of cfg_if for the wasm module;
diff --git a/cranelift/src/clif-util.rs b/cranelift/src/clif-util.rs index 51bac2a53..8077cf9b2 100755 --- a/cranelift/src/clif-util.rs +++ b/cranelift/src/clif-util.rs @@ -13,14 +13,6 @@ ) )] -use cfg_if::cfg_if; - -cfg_if! { - if #[cfg(feature = "wasm")] { - mod wasm; - } -} - use clap::{App, Ar...
2
32
18
417ec0be01f800c54c747b251529e709187f358c
Marcin Mielniczuk
2019-08-26T12:53:23
Update src/sys/windows/hostcalls_impl/fs.rs Co-Authored-By: Jakub Konka <kubkon@jakubkonka.com>
diff --git a/src/sys/windows/hostcalls_impl/fs.rs b/src/sys/windows/hostcalls_impl/fs.rs index 889a81312..b2bbca350 100644 --- a/src/sys/windows/hostcalls_impl/fs.rs +++ b/src/sys/windows/hostcalls_impl/fs.rs @@ -288,7 +288,7 @@ pub(crate) fn fd_filestat_get_impl(file: &std::fs::File) -> Result<host::__wasi_ ...
1
1
1
d617fe67ad86e239fa7931df4e7d904b69220fdf
Marcin Mielniczuk
2019-08-26T12:01:59
Check for socket type in filetype. The signature for Windows has also been changed, so that the function can be reused in cross-platform modules.
diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs index 8e8ea5dc3..dc9a87e7a 100644 --- a/src/sys/unix/hostcalls_impl/fs.rs +++ b/src/sys/unix/hostcalls_impl/fs.rs @@ -339,29 +339,35 @@ pub(crate) fn fd_filestat_get_impl(file: &std::fs::File) -> Result<host::__wasi_ .modifi...
2
20
14
9edbfed65f5580520df74a87139bd2d61dde4d4f
Till Schneidereit
2019-08-26T11:12:55
Switch from mmap to memmap to support Windows
diff --git a/cranelift/filetests/Cargo.toml b/cranelift/filetests/Cargo.toml index f5d3220ed..2b9283307 100644 --- a/cranelift/filetests/Cargo.toml +++ b/cranelift/filetests/Cargo.toml @@ -17,6 +17,6 @@ cranelift-preopt = { path = "../cranelift-preopt", version = "0.40.0" } file-per-thread-logger = "0.1.2" filecheck ...
2
12
8
45fd9dadd8b2f6b425208acbf2fde5dcf71a3c5e
Dan Gohman
2019-08-24T14:04:31
Use `winapi::ctypes::c_void` on Windows. (#297) `winapi::ctypes::c_void` is apparently distinct from `core::ffi::c_void` and `libc::c_void`.
diff --git a/wasmtime-runtime/src/mmap.rs b/wasmtime-runtime/src/mmap.rs index a82a0f515..f54d86138 100644 --- a/wasmtime-runtime/src/mmap.rs +++ b/wasmtime-runtime/src/mmap.rs @@ -187,7 +187,7 @@ impl Mmap { /// `self`'s reserved memory. #[cfg(target_os = "windows")] pub fn make_accessible(&mut self, st...
1
3
2
8db57bd6c6eae5850a1e1e539e2e3ebeffb0caa1
Marcin Mielniczuk
2019-08-21T16:15:56
Check if testsuite exists, set target dir
diff --git a/Cargo.toml b/Cargo.toml index d767bec8a..3c756d3eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,6 @@ authors = [ edition = "2018" license = "Apache-2.0 WITH LLVM-exception" description = "WASI implementation in Rust" -exclude = ["misc_testsuite/*.wasm"] [dependencies] wasi-common-cbindgen = {...
2
21
10
479592f8c5b4db69d56b0b059499615dcea0c10a
Artur Jamro
2019-08-23T23:39:46
Cache compression (#234)
diff --git a/src/bin/wasm2obj.rs b/src/bin/wasm2obj.rs index 3fe10aa5c..308fd858e 100644 --- a/src/bin/wasm2obj.rs +++ b/src/bin/wasm2obj.rs @@ -63,7 +63,7 @@ The translation is dependent on the environment chosen. The default is a dummy environment that produces placeholder values. Usage: - wasm2obj [--target T...
7
77
22
1eb6cd93b20f62664d3e593a2c5f32be2c3856f9
Joshua Nelson
2019-08-23T13:00:04
Fix documentation typo function -> data object
diff --git a/cranelift/module/src/module.rs b/cranelift/module/src/module.rs index 33a13b7f9..d9cb1e00c 100644 --- a/cranelift/module/src/module.rs +++ b/cranelift/module/src/module.rs @@ -559,7 +559,7 @@ where Ok(total_size) } - /// Define a function, producing the data contents from the given `Data...
1
1
1
9950bddee5f72af76b845dc63c6e9c93f6d7f38b
Marcin Mielniczuk
2019-08-22T12:00:25
Use safe casts in path_filestat_set_times on unix.
diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs index a551f9cea..8e8ea5dc3 100644 --- a/src/sys/unix/hostcalls_impl/fs.rs +++ b/src/sys/unix/hostcalls_impl/fs.rs @@ -389,8 +389,8 @@ pub(crate) fn path_filestat_set_times( st_mtim: host::__wasi_timestamp_t, fst_flags: host::__...
1
5
3
18ecf60ad55356667efd7b40fded10f2823fd2e5
Yaron Wittenstein
2019-08-22T12:32:01
cranelift-wasm: bump `wasmparser` version to `0.37.0`
diff --git a/cranelift/wasm/Cargo.toml b/cranelift/wasm/Cargo.toml index 3a90de6cc..5beb48fdb 100644 --- a/cranelift/wasm/Cargo.toml +++ b/cranelift/wasm/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["webassembly", "wasm"] edition = "2018" [dependencies] -wasmparser = { version = "0.36.0", default-features = false } +wa...
1
1
1
69d60c47110ac03240be04f1837e314aabbf0ae0
Sendil Kumar
2019-08-22T20:26:04
update nix version
diff --git a/Cargo.toml b/Cargo.toml index cab65408c..919965263 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ log = "0.4" filetime = "0.2.7" [target.'cfg(unix)'.dependencies] -nix = "0.13" +nix = "0.15" [target.'cfg(windows)'.dependencies] winx = { path = "winx" } diff --git a/src/sys/unix/hostcall...
2
9
10
d3815a0399a83a9c649a843e85485d0f979b6305
Artur Jamro
2019-08-22T17:11:41
Implement serde and equality traits for SecondaryMap
diff --git a/cranelift/codegen/src/binemit/mod.rs b/cranelift/codegen/src/binemit/mod.rs index 996f2e449..ce9321ec1 100644 --- a/cranelift/codegen/src/binemit/mod.rs +++ b/cranelift/codegen/src/binemit/mod.rs @@ -33,7 +33,7 @@ pub type CodeOffset = u32; pub type Addend = i64; /// Relocation kinds for every ISA -#[d...
5
112
17
e736367b8cbe5e2c060aa20a5d7e72d604659ff4
Sean Stangl
2019-08-20T19:18:54
Make fold_redundant_jumps() feature-gated on basic-blocks
diff --git a/cranelift/codegen/src/binemit/relaxation.rs b/cranelift/codegen/src/binemit/relaxation.rs index e5f777221..262ef986d 100644 --- a/cranelift/codegen/src/binemit/relaxation.rs +++ b/cranelift/codegen/src/binemit/relaxation.rs @@ -31,7 +31,7 @@ use crate::binemit::{CodeInfo, CodeOffset}; use crate::cursor::{...
1
10
5
97996d79cece7a879c0591380eae3490a7ba87d7
Mike Hommey
2019-08-22T08:32:39
Sort custom_legalizes for more deterministic generated code For better caching.
diff --git a/cranelift/codegen/meta/src/gen_legalizer.rs b/cranelift/codegen/meta/src/gen_legalizer.rs index b823bb559..7b59844e6 100644 --- a/cranelift/codegen/meta/src/gen_legalizer.rs +++ b/cranelift/codegen/meta/src/gen_legalizer.rs @@ -466,7 +466,9 @@ fn gen_transform_group<'a>( // Emit the cust...
1
3
1
e7f67b17252d87ee5211c222e9c8558d1e10c0c7
Dan Gohman
2019-08-22T08:33:41
Format with rustfmt. (#26) This will allow us to update the lightbeam version in Wasmtime.
diff --git a/src/microwasm.rs b/src/microwasm.rs index 3bbd3c856..42d00e8ab 100644 --- a/src/microwasm.rs +++ b/src/microwasm.rs @@ -2102,4 +2102,3 @@ where })) } } -
1
0
1
1bf5106f405d3f53321a9b54fb6108fa448a31e3
Marcin Mielniczuk
2019-08-21T10:47:34
Implement path_filestat_get & path_filestat_set_times on Windows.
diff --git a/build.rs b/build.rs index c92fea840..dda957c59 100644 --- a/build.rs +++ b/build.rs @@ -136,7 +136,6 @@ cfg_if::cfg_if! { "symlink_loop" => true, "clock_time_get" => true, "truncation_rights" => true, - "path_filestat" => tru...
4
21
5
2ed69b1d1076547c784594cfc4e9a2aece36615b
Marcin Mielniczuk
2019-08-14T13:15:23
Add .concatenate() method to PathGet on Windows.
diff --git a/src/sys/windows/hostcalls_impl/fs.rs b/src/sys/windows/hostcalls_impl/fs.rs index 54b25d792..20eb1cf47 100644 --- a/src/sys/windows/hostcalls_impl/fs.rs +++ b/src/sys/windows/hostcalls_impl/fs.rs @@ -7,6 +7,7 @@ use crate::helpers::systemtime_to_timestamp; use crate::hostcalls_impl::PathGet; use crate::s...
2
20
8
d93673508c59509086edc8aad732833e93009300
Mark Bestavros
2019-07-16T15:32:00
cranelift-codegen: Remove all default architecture support
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index a8c2addb0..eb25cb2a6 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -44,7 +44,7 @@ file-per-thread-logger = "0.1.2" indicatif = "0.11.0" [features] -default = ["disas", "wasm"] +default = ["disas", "wasm", "cranelift-codegen/all-arch"] ...
2
11
2
d7883dd60ad63352d70316e2de2a9b717003fb01
Dan Gohman
2019-08-20T23:43:13
Don't publish misc_testsuite/*.wasm.
diff --git a/Cargo.toml b/Cargo.toml index 450ce4f78..cab65408c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ authors = [ edition = "2018" license = "Apache-2.0 WITH LLVM-exception" description = "WASI implementation in Rust" +exclude = ["misc_testsuite/*.wasm"] [dependencies] wasi-common-cbindgen = {...
1
1
0
eb90f76b423a9c0f5e2973f7fff2c25c9df2e242
Dan Gohman
2019-08-20T23:38:01
Add #![cfg(windows)] to allow publishing from non-Windows hosts.
diff --git a/winx/src/lib.rs b/winx/src/lib.rs index 05cdbfe49..f017a7fe2 100644 --- a/winx/src/lib.rs +++ b/winx/src/lib.rs @@ -19,6 +19,7 @@ clippy::use_self ) )] +#![cfg(windows)] #[macro_use] extern crate bitflags;
1
1
0
19055d017899de8be4cb14cdda8bfe24ebf9790d
Dan Gohman
2019-08-20T23:35:05
Add description fields.
diff --git a/Cargo.toml b/Cargo.toml index 7e43e1524..450ce4f78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ authors = [ "Dan Gohman <sunfish@mozilla.com>"] edition = "2018" license = "Apache-2.0 WITH LLVM-exception" +description = "WASI implementation in Rust" [dependencies] wasi-common-cbindgen...
3
3
0
cf0bef84ccce48ae73c4b7ddc6bb4788e4721d74
Jakub Konka
2019-08-20T18:48:33
Fix filestat_from_nix conversion fn
diff --git a/src/sys/unix/host_impl.rs b/src/sys/unix/host_impl.rs index 9ec22b3aa..8d736af53 100644 --- a/src/sys/unix/host_impl.rs +++ b/src/sys/unix/host_impl.rs @@ -201,20 +201,29 @@ pub(crate) fn filestat_from_nix( ) -> Result<host::__wasi_filestat_t> { use std::convert::TryFrom; + fn filestat_to_timest...
1
12
3
8ea883a60390fa307786a705ff8af4fb1a4be6e6
Dan Gohman
2019-08-21T06:29:19
Workaround a rounding difference in the strtof function in Centos 6. (#290) * Workaround a rounding difference in the strtof function in Centos 6. This difference causes the spec test const.wast to fail, so disable the test on platforms where we detect the rounding difference occurs.
diff --git a/Cargo.toml b/Cargo.toml index bc6b1c325..fa7c07ed7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,10 @@ errno = "0.2.4" rayon = "1.1" wasm-webidl-bindings = "0.4" +# build.rs tests whether to enable a workaround for the libc strtof function. +[target.'cfg(target_os = "linux")'.build-dependencies...
2
29
0
2c4118a6941371e62b2068c36ed6e4e468e5d70c
Dan Gohman
2019-08-21T00:53:34
Update for Cranelift 0.40 API changes.
diff --git a/misc/wasmtime-py/src/import.rs b/misc/wasmtime-py/src/import.rs index f5f66fd42..2fa2280aa 100644 --- a/misc/wasmtime-py/src/import.rs +++ b/misc/wasmtime-py/src/import.rs @@ -171,8 +171,15 @@ fn make_trampoline( let mut code_buf: Vec<u8> = Vec::new(); let mut reloc_sink = RelocSink {}; let ...
1
8
1
d4f27dcc919010d8b08fa7d750dd75b9db1beb03
Dan Gohman
2019-08-21T00:53:05
Update Cargo.toml metadata for publishing.
diff --git a/misc/wasmtime-py/Cargo.toml b/misc/wasmtime-py/Cargo.toml index 94c481dc1..3c2d0e2b7 100644 --- a/misc/wasmtime-py/Cargo.toml +++ b/misc/wasmtime-py/Cargo.toml @@ -1,12 +1,11 @@ [package] name = "wasmtime-py" -version = "0.3.0" +version = "0.2.0" authors = ["The Wasmtime Project Developers"] descriptio...
10
6
11
f37b672c8df9d3755f23a2dafa28399835619d23
Dan Gohman
2019-08-21T00:48:30
Update the pinned wasmtime revision. This resynchronizes the versions of cranelift used in wasi-common and wasmtime to 0.40.
diff --git a/Cargo.toml b/Cargo.toml index bb20b0b21..7e43e1524 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,10 +26,10 @@ winx = { path = "winx" } winapi = "0.3" [dev-dependencies] -wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "165dc49" } -wasmtime-environ = { git = "https://githu...
1
4
4
6921782fbf126dda6bb1cd8f5e606cbc3d554647
Dan Gohman
2019-08-20T23:16:32
Add license declarations to headers.
diff --git a/wasi-common-cbindgen/Cargo.toml b/wasi-common-cbindgen/Cargo.toml index 527a7781e..14355f286 100644 --- a/wasi-common-cbindgen/Cargo.toml +++ b/wasi-common-cbindgen/Cargo.toml @@ -3,6 +3,7 @@ name = "wasi-common-cbindgen" version = "0.1.0" authors = ["Jakub Konka <kubkon@jakubkonka.com>"] edition = "201...
2
3
1
500bf83082a9ffd4adde9adc50c65be1702da7ae
Dan Gohman
2019-08-20T23:14:40
Update to latest cranelift and target-lexicon.
diff --git a/Cargo.toml b/Cargo.toml index cd531f71e..bb20b0b21 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,11 +30,11 @@ wasmtime-runtime = { git = "https://github.com/cranestation/wasmtime", rev = "16 wasmtime-environ = { git = "https://github.com/cranestation/wasmtime", rev = "165dc49" } wasmtime-jit = { git = ...
1
5
5
291afaf4ad0bfd750467f0d2c6339bf865106748
Dan Gohman
2019-08-20T22:12:27
Temporarily disable `fold_redundant_jumps`. See #916 for details.
diff --git a/cranelift/codegen/src/binemit/relaxation.rs b/cranelift/codegen/src/binemit/relaxation.rs index 62f692e55..e5f777221 100644 --- a/cranelift/codegen/src/binemit/relaxation.rs +++ b/cranelift/codegen/src/binemit/relaxation.rs @@ -57,7 +57,8 @@ pub fn relax_branches( func.offsets.resize(func.dfg.num_ebbs...
1
2
1
b4a505d5d30a7d4809bf8c93e471d6cfe65ad26d
Yury Delendik
2019-07-16T21:13:10
Generate simulated DWARF for rest of the functions
diff --git a/wasmtime-debug/src/read_debuginfo.rs b/wasmtime-debug/src/read_debuginfo.rs index c39f1d1eb..fab07ec9e 100644 --- a/wasmtime-debug/src/read_debuginfo.rs +++ b/wasmtime-debug/src/read_debuginfo.rs @@ -1,5 +1,6 @@ use std::collections::HashMap; -use wasmparser::{ModuleReader, SectionCode}; +use std::path::P...
7
702
171
0c2c59785255d87df32f637faa0c09e81adc4c9c
Dan Gohman
2019-08-20T21:12:09
Update to latest versions of term, capstone, wabt, goblin, wasmparser.
diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index 490fc8cdc..c0aaed6d4 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -35,9 +35,9 @@ cranelift = { path = "cranelift-umbrella", version = "0.38.0" } filecheck = "0.4.0" clap = "2.32.0" serde = "1.0.8" -term = "0.5.1" -capstone = { version ...
7
20
16
6605f308b38fd72ef4f1b78efda4edc0811ba26b
Andrew Brown
2019-07-11T23:10:42
Fix static analysis warnings
diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs index 2a40d5128..f31e53077 100644 --- a/cranelift/codegen/meta/src/cdsl/instructions.rs +++ b/cranelift/codegen/meta/src/cdsl/instructions.rs @@ -79,7 +79,7 @@ impl InstructionGroup { pub fn by_name(&self...
2
4
4
d492cf7e0e57e24e37b870fd11142ec630fff848
Andrew Brown
2019-07-11T22:59:39
Avoid unnecessary lane calculations in codegen code This refactor moves the calculation of the number of lanes to code closer to where the Instruction/BoundInstruction is bound.
diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs index 43a879066..2a40d5128 100644 --- a/cranelift/codegen/meta/src/cdsl/instructions.rs +++ b/cranelift/codegen/meta/src/cdsl/instructions.rs @@ -181,8 +181,17 @@ impl Instruction { bind_ref(self.clon...
3
51
29
036b9aea946ce956c33d0ddc9ad55e86fd407fd0
Benjamin Bouvier
2019-08-19T12:59:19
[codegen] Rename and explicit usage of replace_with_alias; It can actually only replace one result; don't try to make it generic yet, since there's no point in doing so right now, and make it do the dumb thing so it's not surprising to use.
diff --git a/cranelift/codegen/src/simple_preopt.rs b/cranelift/codegen/src/simple_preopt.rs index 92cbb4c44..8219f6627 100644 --- a/cranelift/codegen/src/simple_preopt.rs +++ b/cranelift/codegen/src/simple_preopt.rs @@ -19,13 +19,14 @@ use crate::ir::{ use crate::timing; #[inline] -/// Replaces the result_index nt...
1
17
16
065fbea252412c9573cc76d439baaffba8a8ebcb
Marcin Mielniczuk
2019-08-19T09:32:52
Implement path_filestat_set_times using nix instead of libc. As advised in #16.
diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs index e9cbe0503..a551f9cea 100644 --- a/src/sys/unix/hostcalls_impl/fs.rs +++ b/src/sys/unix/hostcalls_impl/fs.rs @@ -386,58 +386,62 @@ pub(crate) fn path_filestat_set_times( resolved: PathGet, dirflags: host::__wasi_lookupflag...
1
44
40
4937dd06327f1b2ce7e77b3f179ac8ba49cbec4f
Dan Gohman
2019-08-14T00:28:07
Fix the name of the `wast` command in its usage string.
diff --git a/src/bin/wast.rs b/src/bin/wast.rs index bad04c439..e0935c630 100644 --- a/src/bin/wast.rs +++ b/src/bin/wast.rs @@ -41,8 +41,8 @@ const USAGE: &str = " Wast test runner. Usage: - run_wast [-do] [--enable-simd] [--cache | --cache-dir=<cache_dir>] <file>... - run_wast --help | --version + wast [...
1
2
2
c3215f4f1b3c0ebc8689283c30485f61f02cad44
Artur Jamro
2019-07-29T23:43:48
Tests for cache system
diff --git a/wasmtime-environ/Cargo.toml b/wasmtime-environ/Cargo.toml index 87364eef0..a1e994ce4 100644 --- a/wasmtime-environ/Cargo.toml +++ b/wasmtime-environ/Cargo.toml @@ -29,6 +29,12 @@ lazy_static = "1.3.0" spin = "0.5.0" log = { version = "0.4.8", default-features = false } +[dev-dependencies] +tempfile = "...
7
355
4
3c33fe63a1cd4f770ed0cb9cfa96395e73063e0a
Artur Jamro
2019-07-27T00:00:54
Add command line option for custom cache directory
diff --git a/src/bin/wasm2obj.rs b/src/bin/wasm2obj.rs index cf767d5e1..3fe10aa5c 100644 --- a/src/bin/wasm2obj.rs +++ b/src/bin/wasm2obj.rs @@ -63,7 +63,7 @@ The translation is dependent on the environment chosen. The default is a dummy environment that produces placeholder values. Usage: - wasm2obj [--target T...
4
148
64
54dd085e27afa8e5d9e54417581130901ec39fcf
Dan Gohman
2019-08-16T01:31:06
Add a default-run, so that "cargo run" doesn't need a --bin option. default-run is a new feature in Rust 1.37.
diff --git a/Cargo.toml b/Cargo.toml index 0a2cca5cf..eb1466b20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ documentation = "https://cranelift.readthedocs.io/" categories = ["wasm"] repository = "https://github.com/CraneStation/wasmtime" edition = "2018" +default-run = "wasmtime" [dependencies] cran...
1
1
0
a38af109b309eb3c32535e5c441e68988e16a962
Jakub Konka
2019-08-14T10:41:31
Fix linter warnings
diff --git a/tests/utils.rs b/tests/utils.rs index f8c6cc9f7..1b702e08f 100644 --- a/tests/utils.rs +++ b/tests/utils.rs @@ -1,8 +1,6 @@ use std::env; use std::ffi::OsStr; -use std::fs::{self, File}; -use std::io; -use std::io::prelude::*; +use std::fs; use std::path::{Component, Path}; use std::time::SystemTime;
1
1
3
05852977acd9c9b11ab0d295a6d447c6d868b58f
Dan Gohman
2019-08-14T00:17:37
Use char/byte literals instead of single-char/byte string literals.
diff --git a/src/ctx.rs b/src/ctx.rs index c31b05513..993f6dd92 100644 --- a/src/ctx.rs +++ b/src/ctx.rs @@ -110,7 +110,7 @@ impl WasiCtxBuilder { .into_iter() .map(|(k, v)| { let mut pair = k.into_bytes(); - pair.extend_from_slice(b"="); + pair.p...
3
10
10
2809be666a8445a874c9a3ae9cd24d6750d9364b
Dan Gohman
2019-08-14T00:17:34
Minor simplifications to `get_path_by_handle`.
diff --git a/winx/src/file.rs b/winx/src/file.rs index 20172ee75..0c802ee31 100644 --- a/winx/src/file.rs +++ b/winx/src/file.rs @@ -360,8 +360,7 @@ pub fn get_file_access_mode(handle: RawHandle) -> Result<AccessMode> { pub fn get_path_by_handle(handle: RawHandle) -> Result<OsString> { use winapi::um::fileapi::Ge...
1
8
9
8b576779f28bf16045599fd61f6d216091ef5c1f
Dan Gohman
2019-08-14T00:17:30
Use `fs::read` instead of doing it manually.
diff --git a/tests/utils.rs b/tests/utils.rs index 66abebcb8..f8c6cc9f7 100644 --- a/tests/utils.rs +++ b/tests/utils.rs @@ -6,15 +6,8 @@ use std::io::prelude::*; use std::path::{Component, Path}; use std::time::SystemTime; -fn read_to_end<P: AsRef<Path>>(path: P) -> Result<Vec<u8>, io::Error> { - let mut buf: V...
1
1
8
b14570e8875908d28621aaedaa43906578c2206e
Jakub Konka
2019-08-11T20:00:58
Move checks into error handling of std::fs::rename (where possible)
diff --git a/src/sys/windows/hostcalls_impl/fs.rs b/src/sys/windows/hostcalls_impl/fs.rs index a4bc9a9fb..54b25d792 100644 --- a/src/sys/windows/hostcalls_impl/fs.rs +++ b/src/sys/windows/hostcalls_impl/fs.rs @@ -213,26 +213,29 @@ pub(crate) fn path_rename(resolved_old: PathGet, resolved_new: PathGet) -> Resul if ...
1
17
22
1b7d9bed2ba4dd3bb926bd9be99ad70309653a59
Jakub Konka
2019-08-10T09:34:13
Implement path_rename on Windows
diff --git a/build.rs b/build.rs index f131de663..dda957c59 100644 --- a/build.rs +++ b/build.rs @@ -136,7 +136,6 @@ cfg_if::cfg_if! { "symlink_loop" => true, "clock_time_get" => true, "truncation_rights" => true, - "path_rename" => true,...
2
49
6
b980c2aa115da3aa5963079b0fabdafa70ef8eee
Jakub Konka
2019-08-10T09:11:02
Disable path_rename testcase on Windows
diff --git a/build.rs b/build.rs index dda957c59..f131de663 100644 --- a/build.rs +++ b/build.rs @@ -136,6 +136,7 @@ cfg_if::cfg_if! { "symlink_loop" => true, "clock_time_get" => true, "truncation_rights" => true, + "path_rename" => true,...
1
1
0
5fe550f5331dd5e0e2663936a4d2317c0292db72
Alex Crichton
2019-08-13T19:47:33
Conform to Cargo's conventional file layout Move `src/*.rs` to `src/bin/*.rs` which are automatically inferred as binaries and move `src/utils.rs` to `src/lib.rs` which is compiled as a reusable library for each of the binaries we're building.
diff --git a/Cargo.toml b/Cargo.toml index da2449012..86375aeef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,18 +9,6 @@ categories = ["wasm"] repository = "https://github.com/CraneStation/wasmtime" edition = "2018" -[[bin]] -name = "wasmtime" -path = "src/wasmtime.rs" - -[[bin]] -name = "wast" -path = "src/wast.r...
5
8
34
5c7373959ccac4233b41d9d24f3ff3ca90ba4f4e
Jakub Konka
2019-08-13T17:38:57
Fix linter warnings
diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs index 1c85cd872..e9cbe0503 100644 --- a/src/sys/unix/hostcalls_impl/fs.rs +++ b/src/sys/unix/hostcalls_impl/fs.rs @@ -6,7 +6,7 @@ use crate::hostcalls_impl::PathGet; use crate::sys::errno_from_ioerror; use crate::sys::host_impl; use c...
1
3
1
550cfb90e7c38859f34502906dffd70ac21357da
Marcin Mielniczuk
2019-08-13T16:08:16
Bump filetime to 0.2.7
diff --git a/Cargo.toml b/Cargo.toml index fefa2f107..cd531f71e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ libc = "0.2" rand = "0.6" cfg-if = "0.1.9" log = "0.4" -filetime = "0.2.6" +filetime = "0.2.7" [target.'cfg(unix)'.dependencies] nix = "0.13"
1
1
1
74d1c11fbe30fa174e4454e4f9086c26b4341aae
Marcin Mielniczuk
2019-08-12T07:24:45
Fix fd_filestat_set_times and enable the fd_filestat_set test on Windows.
diff --git a/build.rs b/build.rs index e0b7ef684..dda957c59 100644 --- a/build.rs +++ b/build.rs @@ -136,7 +136,6 @@ cfg_if::cfg_if! { "symlink_loop" => true, "clock_time_get" => true, "truncation_rights" => true, - "fd_filestat_set" => t...
2
3
4
2f1afc48468137777198292bcf6d0328635229c6
Marcin Mielniczuk
2019-08-05T09:44:59
Implement fd_filestat_set_times using the filetime crate.
diff --git a/Cargo.toml b/Cargo.toml index 56b4a0682..fefa2f107 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ libc = "0.2" rand = "0.6" cfg-if = "0.1.9" log = "0.4" +filetime = "0.2.6" [target.'cfg(unix)'.dependencies] nix = "0.13" diff --git a/src/hostcalls_impl/fs.rs b/src/hostcalls_impl/fs.rs ind...
4
31
53
d8d3602257e5bef2a5e5178ed26b86846a797bbb
Benjamin Bouvier
2019-08-05T10:23:39
Adds the libcall_call_conv setting and use it for libcall calls expansion;
diff --git a/cranelift/codegen/meta/src/shared/settings.rs b/cranelift/codegen/meta/src/shared/settings.rs index 6b8b7a017..3b6980daa 100644 --- a/cranelift/codegen/meta/src/shared/settings.rs +++ b/cranelift/codegen/meta/src/shared/settings.rs @@ -94,6 +94,29 @@ pub fn define() -> SettingGroup { // Settings spe...
5
63
4
b9834e301695568a94cc8f480bcc1e9f89e1e914
Marcin Mielniczuk
2019-08-09T18:01:17
Disable the test on Windows, because it depends on fd_filestat_set_times, which is not implemented yet
diff --git a/build.rs b/build.rs index dda957c59..e0b7ef684 100644 --- a/build.rs +++ b/build.rs @@ -136,6 +136,7 @@ cfg_if::cfg_if! { "symlink_loop" => true, "clock_time_get" => true, "truncation_rights" => true, + "fd_filestat_set" => t...
1
1
0
36b4ff80319d9fda5806084d6c02e7136d99a0c8
Dan Gohman
2019-08-08T17:54:50
Say "memory" instead of "__wasi_memory" in error messages. While the "__wasi_memory" name is something we considered, the name currently being used for the memory exported to WASI is "memory", so adjust the error message accordingly.
diff --git a/wasmtime-wasi-c/src/translate.rs b/wasmtime-wasi-c/src/translate.rs index 752e0f73f..ea81c4798 100644 --- a/wasmtime-wasi-c/src/translate.rs +++ b/wasmtime-wasi-c/src/translate.rs @@ -44,11 +44,11 @@ unsafe fn decode_ptr( // Ok, translate the address. Ok((((*definition).base as us...
2
3
3
4c9be5909acf5fa59f3a9abcb922f7ef1565ab87
Marcin Mielniczuk
2019-08-06T17:44:06
Add an overflow check The check will be removed when rust-lang/rust#63326 is fixed
diff --git a/src/hostcalls_impl/fs.rs b/src/hostcalls_impl/fs.rs index c19ad7144..f3eb6831f 100644 --- a/src/hostcalls_impl/fs.rs +++ b/src/hostcalls_impl/fs.rs @@ -440,6 +440,7 @@ pub(crate) fn fd_allocate( let current_size = metadata.len(); let wanted_size = offset.checked_add(len).ok_or(host::__WASI_E2BI...
1
5
0
e731965fbb110b3c8d7377904b009accbf81f59c
Marcin Mielniczuk
2019-07-26T15:13:15
Implement fd_filestat_set_size using libstd
diff --git a/src/hostcalls_impl/fs.rs b/src/hostcalls_impl/fs.rs index ecbfdc5f3..c19ad7144 100644 --- a/src/hostcalls_impl/fs.rs +++ b/src/hostcalls_impl/fs.rs @@ -779,11 +779,7 @@ pub(crate) fn fd_filestat_set_size( .and_then(|fe| fe.fd_object.descriptor.as_file())?; let st_size = dec_filesize(st_size...
3
1
15
92c2b563fc2a1c6259bf53d442a13d7a0db52f0b
Marcin Mielniczuk
2019-08-08T15:30:19
Reuse errno_from_ioerror to simplify error handling
diff --git a/src/ctx.rs b/src/ctx.rs index d5aa0a1c4..c31b05513 100644 --- a/src/ctx.rs +++ b/src/ctx.rs @@ -1,5 +1,5 @@ use crate::fdentry::FdEntry; -use crate::sys::{dev_null, errno_from_host}; +use crate::sys::{dev_null, errno_from_ioerror}; use crate::{host, Result}; use std::borrow::Borrow; use std::collection...
8
31
55
085d700cdcc7e0ad38fef54ceccf1c54a40de706
Jakub Konka
2019-08-08T08:49:03
Bump wasi-common rev
diff --git a/Cargo.toml b/Cargo.toml index a45972786..6ebb344b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ wasmtime-obj = { path = "wasmtime-obj" } wasmtime-wast = { path = "wasmtime-wast" } wasmtime-wasi = { path = "wasmtime-wasi" } wasmtime-wasi-c = { path = "wasmtime-wasi-c", optional = true } -wa...
2
2
2
73670aab43ee05fad0036674b9604b8646885f2f
Adam C. Foltzer
2019-08-07T20:23:32
Return a `WasmResult` from `ModuleEnvironment` methods (#886) * [wasm] return a WasmResult from `declare_table_elements` This method in particular needs to accommodate failure because any table index other than zero is currently invalid. * [wasm] additional failure handling improvements - Adds `WasmResult<()...
diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index 43d08c671..05c5de4f5 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -23,12 +23,13 @@ //! That is why `translate_function_body` takes an object having the `WasmRuntime` tra...
7
204
91
9263b9df40d67a6068b63a899d65e391f6ec2c5b
Yury Delendik
2019-08-07T18:48:40
Add public Compiler::get_published_trampoline (#243)
diff --git a/wasmtime-jit/src/compiler.rs b/wasmtime-jit/src/compiler.rs index 7d4c456da..b3a6c4ea4 100644 --- a/wasmtime-jit/src/compiler.rs +++ b/wasmtime-jit/src/compiler.rs @@ -151,6 +151,18 @@ impl Compiler { }) } + /// Create and publish a trampoline for invoking a function. + pub fn get_pub...
1
12
0
8ea7a983d8b1364e5f62d2adf0e74b3b8db1c9b3
Jakub Konka
2019-08-06T20:49:48
Make fd_write unbuffered; fixes CraneStation/wasmtime#255
diff --git a/src/hostcalls_impl/fs.rs b/src/hostcalls_impl/fs.rs index e05ceec55..9843e6b54 100644 --- a/src/hostcalls_impl/fs.rs +++ b/src/hostcalls_impl/fs.rs @@ -376,16 +376,30 @@ pub(crate) fn fd_write( .map(|vec| unsafe { host::iovec_to_host(vec) }) .collect(); - let maybe_host_nwritten = ma...
1
21
7
b10f8cf3228aa609ce525ab8f8d42484c282998b
Artur Jamro
2019-08-07T00:19:26
Partial hashing of module for faster caching (#221) * Simple module compilation cache * Fix base64 encoding bug * Use warn! everywhere in cache system * Remove unused import * Temporary workaround for long path on Windows * Remove unused import for non-windows builds * Add command line argument to en...
diff --git a/wasmtime-environ/src/cache.rs b/wasmtime-environ/src/cache.rs index 7e8ebb92b..a32f2e7d8 100644 --- a/wasmtime-environ/src/cache.rs +++ b/wasmtime-environ/src/cache.rs @@ -1,13 +1,17 @@ use crate::address_map::ModuleAddressMap; use crate::compilation::{CodeAndJTOffsets, Compilation, Relocations}; use cr...
4
94
43
41f88745c46d714bfa6d18ea38dcda8eb2dbda1f
Till Schneidereit
2019-08-06T14:01:52
Update log and libc crates (#240) * Update log crate * Update libc crate
diff --git a/Cargo.toml b/Cargo.toml index d05f84cfe..216ee8c36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ target-lexicon = { version = "0.4.0", default-features = false } pretty_env_logger = "0.3.0" file-per-thread-logger = "0.1.1" wabt = "0.7" -libc = "0.2.50" +libc = "0.2.60" errno = "0.2.4" ray...
4
5
5
29b32b30627edb3d7a543cbc4cdf00e11af9fbea
Yury Delendik
2019-08-05T13:31:00
Serialize ValueLabel and StackSlots (#888)
diff --git a/cranelift/codegen/src/ir/entities.rs b/cranelift/codegen/src/ir/entities.rs index a2a405bc4..67fd9157e 100644 --- a/cranelift/codegen/src/ir/entities.rs +++ b/cranelift/codegen/src/ir/entities.rs @@ -69,6 +69,7 @@ entity_impl!(Inst, "inst"); /// An opaque reference to a stack slot. #[derive(Copy, Clone...
5
19
0
383ce584ae5a5c76838161a6298a49f333543762
David Lattimore
2019-08-03T11:50:31
Fix an assertion that wasn't doing what it said
diff --git a/cranelift/codegen/meta/src/cdsl/recipes.rs b/cranelift/codegen/meta/src/cdsl/recipes.rs index 84510cf0d..8157e0886 100644 --- a/cranelift/codegen/meta/src/cdsl/recipes.rs +++ b/cranelift/codegen/meta/src/cdsl/recipes.rs @@ -102,7 +102,7 @@ impl Into<OperandConstraint> for Stack { /// The `branch_range` ar...
2
8
7