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
Jakub Konka
b4280d6cd6
Use ManuallyDrop instead of forget
2019-07-02 12:52:27 -07:00
Dan Gohman
b35227b417
Bump version to 0.32.0
2019-07-02 12:27:39 -07:00
Dan Gohman
f163050c9a
Update to wasmparser 0.32.1.
2019-07-02 11:59:06 -07:00
Dan Gohman
4b924d34b6
Bump version to 0.31.0
2019-06-28 11:37:39 -07:00
Dan Gohman
ccd77c1d0b
Update to wasmparser 0.31.0 and goblin 0.0.22.
2019-06-28 15:23:54 +02:00
Dan Gohman
83715d638b
Update the Rust version badge to match what's tested in CI.
2019-06-28 10:24:41 +02:00
Jakub Konka
7287767a3f
Add enough Windows functionality to run WASI tutorial ( #22 )
...
* Add partial impl of determine_type_rights fn
* Add draft of fd_fdstat_get hostcall
* Add writev wrapper for writing IoVec in RawHandle
* Move IoVec and writev to separate helper crate
* Add Win error handling
Clean up closing and duplicating RawHandle
* Wrap Win file type result
* Add draft impl of fd_close and fd_read
* Refactor getting file access rights
* Remove winapi from the main Cargo.toml
* Add very rough draft of open_path (very incomplete)
* Clean up WinError with macro
* Ignore dir handle in openat if path absolute
* Decode oflags and advance open_path hostcall
* Clean up AccessRight and FlagsAndAttributes flags
* Implement path_get (without symlink expansion yet!)
* Add ShareMode and fix path_get for nested paths
* Add some error mappings between Win and WASI
* Clean up fdflags conversions
* Fix sharing violation when calling openat at '.'
* Apply Alex's fix of using ManuallyDrop instead forget
* Clean up
* Explicitly specify workspace to avoid comp errors at tests
2019-06-27 17:10:15 -07:00
data-pup
a08444c4c6
fix sections translator doc comment
2019-06-27 17:04:12 -07:00
Benjamin Bouvier
83336290c2
Mark the jump_table_entry Instruction as loading;
2019-06-27 17:38:20 +02:00
Jakub Konka
22c69f46f9
Use build.rs to generate test cases automatically
...
Now, test binaries are bundled with the repo, and
just like in CraneStation/wasmtime, the test cases
are generated automatically using build.rs. So all
it takes is to drop a new test binary in the
testsuite dir to get the test case for it generated
(with some caveats to do with handling preopens).
2019-06-26 15:24:21 -07:00
Jakub Konka
656112d00b
Patch wasmtime-wasi to use this wasi-common version
2019-06-26 15:24:21 -07:00
Jakub Konka
81b673f908
Fix typos
2019-06-26 15:24:21 -07:00
Jakub Konka
b9c04d431f
Move workspace creation outside of runtime instantiation
2019-06-26 15:24:21 -07:00
Jakub Konka
d0eac815f0
Fix Windows CI
2019-06-26 15:24:21 -07:00
Jakub Konka
ae63b33a23
Refactor
2019-06-26 15:24:21 -07:00
Jakub Konka
20d228f29e
Modify test-all.sh script
2019-06-26 15:24:21 -07:00
Jakub Konka
982dbab1f2
Add misc-tests as a submodule dep
2019-06-26 15:24:21 -07:00
Jakub Konka
6ca01ce546
Add wasmtime as default runtime for integration tests
2019-06-26 15:24:21 -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
Jakub Konka
513429f1b8
Port trace log from wasmtime-wasi-c crate
2019-06-24 22:47:41 +02:00
Jakub Konka
dc05d89a08
Fix path_readlink: with a 0-sized buffer should succeed
2019-06-24 11:54:18 -07:00
Jakub Konka
7fef91c1e4
Fix fd_renumber when trying to renumber a preopen
2019-06-24 11:54:18 -07:00
Jakub Konka
a11f2b1d3a
Refactor path_get and fix flags in path_open
2019-06-24 11:54:18 -07:00
Jakub Konka
b35719fe4a
Add fixes so that misc-tests pass
2019-06-24 11:54:18 -07:00
Benjamin Bouvier
079ccf1f6e
Remove unused results warnings;
2019-06-24 11:42:26 +02:00
Benjamin Bouvier
d7d48d5cc6
Add the dyn keyword before trait objects;
2019-06-24 11:42:26 +02:00
Lars T Hansen
eee824b6bd
Merge pull request #797 from lars-t-hansen/memsink_rodata_fix
...
Fix a calculation error for rodata_size in memsink
2019-06-21 08:29:13 -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
Lars T Hansen
36870c41c8
Fix a calculation error for rodata_size in memsink
2019-06-18 07:14:32 -07:00
Jakub Konka
54a897cf91
Move common functionality into hostcalls mod
2019-06-18 06:00:22 -07:00
Jakub Konka
c113ff32e6
Move preopen_dir handlers from wasmtime to wasi-common
2019-06-17 02:40:42 -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
Lars T Hansen
3b8ab2b5e2
Merge pull request #790 from lars-t-hansen/reloc_jt_fixes
...
Handle Reloc::X86PCRelRodata4 in sundry reloc_jt
2019-06-09 08:32:51 +02:00
Lars T Hansen
ec5dc3384e
Handle Reloc::X86PCRelRodata4 in sundry reloc_jt
2019-06-07 14:37:58 +02:00