Artur Jamro
165dc4944d
Simple module compilation cache ( #203 )
...
* 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 enable cache system + apply minor review feedback
2019-07-25 16:16:10 -07:00
Dan Gohman
17e4528648
Downgrade wabt from 0.8 to 0.7. ( #219 )
...
Even though this somehow passed on Travis on [the
PR](https://github.com/CraneStation/wasmtime/pull/209 ), it fails on
Travis on master, and I can reproduce the failure.
The failure is on spec_testsuite/names.wast:
```
$ RUST_BACKTRACE=1 target/debug/wast spec_testsuite/names.wast
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: FromUtf8Error { bytes: [255], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }', src/libcore/result.rs:999:5
stack backtrace:
[...]
9: core::result::Result<T,E>::unwrap
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/result.rs:800
10: wabt::script::jstring_to_rstring
at [...]/.cargo/registry/src/github.com-1ecc6299db9ec823/wabt-0.8.0/src/script/mod.rs:261
11: wabt::script::parse_action
at [...]/.cargo/registry/src/github.com-1ecc6299db9ec823/wabt-0.8.0/src/script/mod.rs:274
12: wabt::script::ScriptParser<F32,F64>::next
at [...]/.cargo/registry/src/github.com-1ecc6299db9ec823/wabt-0.8.0/src/script/mod.rs:504
13: wasmtime_wast::wast::WastContext::run_buffer
at wasmtime-wast/src/wast.rs:202
14: wasmtime_wast::wast::WastContext::run_file
at wasmtime-wast/src/wast.rs:472
15: wast::main
at src/wast.rs:107
[...]
```
2019-07-24 14:49:04 -07:00
dependabot-preview[bot]
5164994ce1
Update wasmparser requirement from 0.32.1 to 0.34.0 ( #215 )
...
Updates the requirements on [wasmparser](https://github.com/yurydelendik/wasmparser.rs ) to permit the latest version.
- [Release notes](https://github.com/yurydelendik/wasmparser.rs/releases )
- [Commits](https://github.com/yurydelendik/wasmparser.rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-23 15:03:42 -07:00
Artur Jamro
794841b366
Properly initialize file_per_thread_logger for rayon thread pool ( #211 )
...
* Properly initialize file_per_thread_logger for rayon thread pool
2019-07-23 14:53:48 -07:00
Stefan Junker
1aff03a5b4
dependencies: pin wasi-common to specific rev
...
This removes the reliance on having a correct version of wasi-common in
the cache by chance ;-)
2019-07-23 13:24:32 -07:00
dependabot-preview[bot]
dc39fee390
Update bindgen requirement from 0.49.0 to 0.50.0
...
Updates the requirements on [bindgen](https://github.com/rust-lang/rust-bindgen ) to permit the latest version.
- [Release notes](https://github.com/rust-lang/rust-bindgen/releases )
- [Changelog](https://github.com/rust-lang/rust-bindgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/rust-bindgen/compare/v0.49.0...v0.50.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-23 11:04:45 -07:00
dependabot-preview[bot]
f5746290cb
Update wabt requirement from 0.7 to 0.8
...
Updates the requirements on [wabt](https://github.com/pepyakin/wabt-rs ) to permit the latest version.
- [Release notes](https://github.com/pepyakin/wabt-rs/releases )
- [Commits](https://github.com/pepyakin/wabt-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-23 11:04:26 -07:00
dependabot-preview[bot]
9fe77cffc6
Update memoffset requirement from 0.2.1 to 0.5.1
...
Updates the requirements on [memoffset](https://github.com/Gilnaa/memoffset ) to permit the latest version.
- [Release notes](https://github.com/Gilnaa/memoffset/releases )
- [Commits](https://github.com/Gilnaa/memoffset/commits/v0.5.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-23 11:04:06 -07:00
Stefan Junker
8b89dc4922
Add dependabot configuration
2019-07-22 16:07:15 -07:00
Marcin Mielniczuk
a264787897
Enable __chkstk only on MSVC compilers, use ___chkstk on MinGW
2019-07-19 13:13:13 -07:00
Dan Gohman
19e4f42d50
Fix compilation of wasmtime-environ from within wasmtime-jit. ( #201 )
...
* Fix compilation of wasmtime-environ from within wasmtime-jit.
Enable wasmtime-environ/std when wasmtime-jit's std feature is enabled.
Fixes #200 .
* Fix wasmtime-debug build too.
2019-07-19 11:01:27 -07:00
Artur Jamro
c80508c8a9
Make the calls to wasm's memory.grow and memory.size indirect ( #194 )
...
* Make the calls to wasm's memory.grow and memory.size indirect
2019-07-18 14:40:03 -07:00
Yury Delendik
d27d190b74
reverse dependency
...
https://github.com/CraneStation/wasmtime/pull/186#discussion_r302780035
2019-07-16 17:15:02 -07:00
Yury Delendik
748abd97d6
https://github.com/CraneStation/wasmtime/pull/186#discussion_r302781231
2019-07-16 17:15:02 -07:00
Yury Delendik
5362bd1a23
Improve performance of BTreeMap::search().last()
2019-07-16 17:15:02 -07:00
Yury Delendik
cafe821f24
Properly collect/identify used DWARF entries.
2019-07-16 17:15:02 -07:00
Yury Delendik
efe9dd7b86
Update gimli version; refactor debug data structures
2019-07-16 17:15:02 -07:00
Jakub Konka
adadf835f0
Bump required Rust version to 1.36
2019-07-15 15:51:31 -07:00
Jakub Konka
1531fabf43
Update wasmtime-wasi to new wasi-common interface
2019-07-15 15:36:12 -07:00
Jef
7cc6a1d9f3
Fix stack depth in rem, update cranelift-codegen
2019-07-11 13:10:47 +02:00
Dan Gohman
6b7ebfdddc
Rust 1.36, with wasm32-wasi support, is now stable!
2019-07-10 12:27:21 -07:00
Jef
f53dc0b309
Fix problems found by fuzzing
2019-07-08 13:52:10 +02:00
Dan Gohman
9d91a937dc
Update wasmtime-wasi-c to cloudabi-utils 223dadc5.
...
We already had a forward-port of d5abd351d, so this just contains a
minor and unobservable bug fix.
2019-07-06 07:18:36 +02:00
Dan Gohman
1a10f4a002
Update to Cranelift 1.33 and require Rust 1.35.
...
Cranelift requires Rust 1.35; update accordingly.
2019-07-03 11:16:55 -07:00
Salim Shaaban Salim
89cd327c97
Print correct version of bin tools ( #183 )
...
* Print correct version of bin tools
Not something important, but I use these tools for some testing and
they print wrong version with --version flag.
2019-07-03 11:12:32 -07:00
Yury Delendik
210e959333
Allow jump tables in wasmtime.
2019-07-02 14:07:30 -07:00
Yury Delendik
fb9d6061e4
Update cranelift, faerie, target-lexicon and wasmparser deps
2019-07-02 14:07:30 -07:00
Yury Delendik
8b9c170a91
Update cranelift (v0.32) and wasmparser deps
2019-07-02 15:58:41 -05:00
Dan Gohman
e3c021cc59
Downgrade memoffset to 0.2.1.
...
Version 0.3.0 was yanked from crates.io.
2019-07-02 13:27:03 -07:00
Yury Delendik
d52ab02835
Fix skipping dead DWARF records
2019-06-26 14:26:26 -07:00
Yury Delendik
19cfec6e8f
Ignore non-existent refs in the transformed DWARF
2019-06-26 14:25:45 -07:00
Dan Gohman
c0ba4753eb
Enable wasi-common by default ( #177 )
...
This removes the --wasi-common, as it's now on by default, and adds a
--wasi-c option to enable the wasi-c implementation.
2019-06-25 02:05:49 -07:00
Sean Stangl
b9836d4d9c
Correctly capitalize Firefox in the README
2019-06-20 16:23:15 -07:00
Jef
2e4d676093
Fix several miscompilations
2019-06-20 15:21:22 +02:00
Van der Auwermeulen Grégoire
d900a5f6ef
Update WASI-tutorial.md
...
consistent
2019-06-19 07:13:51 -07:00
Van der Auwermeulen Grégoire
3425553dc6
Update WASI-tutorial.md
...
Update README based on feedback
2019-06-19 07:13:51 -07:00
Van der Auwermeulen Grégoire
15b85dc285
Update WASI-tutorial.md
2019-06-19 07:13:51 -07:00
Jakub Konka
ce8912abf3
Use preopen_dir handlers exposed in wasi-common
2019-06-19 07:12:00 -07:00
Sendil Kumar
ab8f8ef5d8
Adds an explicit way to use the args inside the WebAssembly Module
2019-06-19 07:10:56 -07:00
Jakub Konka
7ac6666fcb
Fixes incorrect guest fd encoding
...
Surfaced when running sunfishcode/misc-tests. When trying to
truncate the file without the __WASI_RIGHT_PATH_FILESTAT_SET_SIZE
right, error __WASI_ENOTCAPABLE was correctly returned, however,
the guest fd pointer was not encoded to -1 in that case. This
commit fixes it by taking out the guest fd encoding out of the
conditional branch which turns out obsolete.
2019-06-19 07:09:46 -07:00
Jef
e2285b543a
Fix div (makes the euler example pass!)
2019-06-13 13:24:40 +02:00
Jef
353e6e737b
Make not a no-op for condition codes, only emit constants once
2019-06-09 14:55:09 +02:00
Ari Lotter
8dc1d90352
Use try_from replacing cast in wasmtime-runtime.
2019-06-09 12:27:28 +02:00
Ari Lotter
f3f6ab0583
Use try_from replacing cast in wasmtime-wasi-c.
2019-06-09 12:27:28 +02:00
Ari Lotter
1158b5bd6c
Use try_from replacing cast in wasmtime-environ.
...
`try_from` is stable now, so cast is unnecessary.
2019-06-09 12:27:28 +02:00
Jakub Konka
e530a582af
Fix preopening dirs on Windows
2019-06-03 13:23:07 -07:00
Dan Gohman
635be8a032
Make the wasmtime-wasi-c dependency conditional on Unix.
2019-06-03 13:23:07 -07:00
Dan Gohman
06b6ec42b9
Provide the C WASI implementation as an option.
...
This adds the C WASI implementation as a new crate, wasmtime-wasi-c,
and adds a command-line flag to the wasmtime command-line driver to
select which WASI implementation to use.
2019-06-03 13:23:07 -07:00
Jakub Konka
d57fbc7d0c
Sync with wasi-common
2019-06-03 13:23:07 -07:00
Jakub Konka
e44d8e8fe3
Update min rustc to 1.34 as required by wasi-common
2019-06-03 13:23:07 -07:00