Benjamin Bouvier
f29a26de14
[meta] Remove the Python DSL
...
KILL THE SNAKE WITH FIRE.
2019-07-05 17:50:17 +02:00
Benjamin Bouvier
88307f693a
[meta] Generate the encodings files;
2019-07-05 17:50:17 +02:00
Benjamin Bouvier
f574ab8703
[meta] Generate the binemits files;
...
Co-authored-by: Benjamin Bouvier <public@benj.me >
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com >
2019-07-05 17:50:17 +02:00
Jakub Konka
93e1657bae
Update cranelift
2019-07-05 16:51:54 +02:00
Benjamin Bouvier
fd03677292
[meta] Recipes and encodings descriptions for x86;
2019-07-05 11:38:51 +02:00
Benjamin Bouvier
ca277422bb
[meta] Recipes and encodings descriptions for RiscV;
2019-07-05 11:38:51 +02:00
Benjamin Bouvier
21aaf0c89f
[meta] Add cdsl facilities for encodings and recipes;
...
Co-authored-by: Benjamin Bouvier <public@benj.me >
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com >
2019-07-05 11:38:51 +02:00
Benjamin Bouvier
4a6b88193e
[meta] Map global TransformGroup to local TransformGroup indices;
2019-07-04 16:38:28 +02:00
Benjamin Bouvier
1e42aac41a
[meta] Add new instruction predicates and the InstructionPredicateMap;
...
The latter helps deduplicating predicates during encodings and recipes
construction.
2019-07-04 16:38:28 +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
Dan Gohman
a3e459269e
Bump version to 0.33.0
2019-07-03 10:40:58 -07:00
Benjamin Bouvier
e34a4759cd
[meta] Fix typo in x86 setting name use_lzcnt;
2019-07-03 18:39:28 +02:00
Benjamin Bouvier
ec5678ab7a
[meta] Add the ability to bind any type to an instruction;
2019-07-03 18:39:28 +02:00
Benjamin Bouvier
9dcc185264
[meta] Add a MapWithDefault trait;
...
This traits augments HashMap so they have a `get_or_default` method that
can be used to avoid boilerplate around usage of `entry.or_default`.
2019-07-03 18:39:28 +02:00
Benjamin Bouvier
18fb87cd9c
[meta] Refactor instruction predicates to distinguish format and type checks;
...
Also add the instruction format name in format predicates, since they're
going to be used when generating encodings.
2019-07-03 18:39:28 +02:00
Benjamin Bouvier
f1d1d1e960
[meta] Uniquely number every instruction in the Rust crate;
2019-07-03 18:39:28 +02:00
Dan Gohman
102dbbb343
Bump the required rust version to 1.35.
...
Rust 1.34 gets errors like this:
```
$ cargo +1.34.0 build --release
Compiling cranelift-wasm v0.32.0 (cranelift/cranelift-wasm)
error[E0259]: the name `std` is defined multiple times
|
= note: `std` must be defined only once in the type namespace of this module
error: aborting due to previous error
For more information about this error, try `rustc --explain E0259`.
error: Could not compile `cranelift-wasm`.
To learn more, run the command again with --verbose.
```
Updating to Rust 1.35 fixes this.
2019-07-03 14:49:15 +02:00
Benjamin Bouvier
f6ac165ff6
[wasm] Don't panic when seeing unexpected types but properly fail instead;
2019-07-03 14:46:23 +02:00
Nicolas B. Pierron
460fdaa34d
Add verification pass to migrate from EBB to BB.
2019-07-03 13:57:14 +02: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
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