Benjamin Bouvier
f7e481d9ac
Implement wasm saturating conversions;
2018-08-09 19:50:41 -07:00
Sergey Pepyakin
9dbfbbde10
Stack Limit as an Argument Purpose ( #372 )
...
* Initial approach.
* Move stack_limit check before opening the frame
* Account for GPRs and frame pointer in stack check
* Check stack_limit example.
* Remove stack_limit attribute code.
Amends #359
* fmt
2018-08-04 06:16:21 -07:00
Dan Gohman
5379605737
Use the correct organization name.
2018-08-03 16:03:09 -07:00
Dan Gohman
c59cec6205
Update for Cretonne->Cranelift rename.
2018-08-03 16:02:00 -07:00
Dan Gohman
bb2589c63f
Remove python code artifacts.
2018-08-03 16:00:41 -07:00
Dan Gohman
f500b7d68d
Add build status badges.
2018-08-03 16:00:24 -07:00
Dan Gohman
1f21570c38
Bump version to 0.0.0
2018-08-03 15:44:31 -07:00
Dan Gohman
48e46c4fae
Update fuzz targets for API changes.
2018-08-03 15:43:51 -07:00
Dan Gohman
4992162fab
Format with rustfmt.
2018-08-03 15:37:57 -07:00
Dan Gohman
40791787c7
Update repository URLs.
2018-08-03 15:37:30 -07:00
Dan Gohman
a1b4c865d1
Prepare wasmtime-environ for publishing.
2018-08-03 15:33:15 -07:00
Dan Gohman
bba733b7a1
Tidy up a comment.
2018-08-03 15:26:26 -07:00
Dan Gohman
548c45c604
Rename wasmtime-runtime to wasmtime-environ.
...
This mirrors changes in cranelift.
2018-08-03 15:20:19 -07:00
Dan Gohman
b8daa27884
Update test-all.sh.
2018-08-03 15:11:02 -07:00
Dan Gohman
ef5254c0da
More code reorganization and cleanups.
2018-08-03 15:06:59 -07:00
Dan Gohman
33b7dfac00
Rename ptr_size.
2018-08-03 14:20:15 -07:00
Dan Gohman
831b481f13
More code reorganization.
2018-08-03 14:18:23 -07:00
Dan Gohman
6659ef7018
More code reorganization.
2018-08-03 13:35:25 -07:00
Dan Gohman
fdd3600f1b
Delete a redundant function.
2018-08-03 13:19:21 -07:00
Dan Gohman
0d8a69189c
Remove unused TableElement struct.
2018-08-03 13:15:31 -07:00
Dan Gohman
779128d14d
Factor out FuncEnvironment and ModuleEnvironment into a separate file.
2018-08-03 13:04:05 -07:00
Dan Gohman
63bc52d9fd
Eliminate runtime's direct dependeny on wasmparser.
2018-08-03 12:43:36 -07:00
Dan Gohman
217786e969
Add a note about the "rustc" tag in the issue tracker.
...
And other minor documentation fixes.
2018-08-03 12:17:25 -07:00
Bruce Mitchener
76a7efc8db
Clippy improvements ( #408 )
...
* clippy: Allow subsec_nanos usage for now.
The recommendation from clippy requires Rust 1.27, but we currently
support Rust 1.25 and later.
* Simplify ref pattern matches.
This was recommended by clippy.
2018-08-02 22:10:51 -07:00
Dan Gohman
753d650f1a
Update to cranelift 0.18.1.
2018-08-02 20:50:28 -07:00
Dan Gohman
c0af810ec0
Add an explicit version to the cranelift-codegen-meta dependency.
...
This allows it to work in crates.io.
2018-08-02 20:37:58 -07:00
Dan Gohman
cf2bac139d
Add codegen/meta to publish-all.sh.
2018-08-02 20:28:29 -07:00
Dan Gohman
cd02010a78
Bump version to 0.18.1
2018-08-02 20:10:23 -07:00
Dan Gohman
a52c547d0e
Rename "meta" back to "cranelift-codegen-meta" and publish it.
...
It appears that having the meta directory crate be inside the codegen
directory is not enough to allow codegen to depend on it without it
being published. So, let's just publish it.
2018-08-02 20:04:41 -07:00
Dan Gohman
c4a056a7a0
Bump version to 0.18.0
2018-08-02 18:34:22 -07:00
Dan Gohman
570f7bc20b
Rename "cranelift-meta" to just "meta".
...
This makes it easier for the publish-all.sh script to know to skip this
crate, and it avoids the need to use `extern cranelift_meta as meta`.
2018-08-02 15:36:54 -07:00
Dan Gohman
c5a554db83
Move the comment about Sphinx 1.4 out of the top-level README.
2018-08-02 15:25:09 -07:00
Dan Gohman
5cf2c6f0f7
Update cranelift-meta's Cargo.toml to reflect that it's not published.
2018-08-02 15:25:09 -07:00
Dan Gohman
7f530cd751
Add a langref.rst page that redirects to the new ir.rst page.
2018-08-02 15:25:09 -07:00
Dan Gohman
1b30265c5c
Define a "table" concept.
...
"Table" is to WebAssembly tables as "Heap" is to WebAssembly linear
memories.
2018-08-02 15:21:34 -07:00
Dan Gohman
cd75176f10
Update to the rustfmt in rust 1.28, which is now stable.
...
Also, rustfmt's --write-mode=check is now named --check.
2018-08-02 09:55:40 -07:00
Dan Gohman
26d122306d
Don't attempt to shrink regfill/regspill/regmove instructions.
...
This is a temporary workaround for bugs such as #420 , where normal
operand constraint checking doesn't correctly handle such instructions.
2018-08-02 09:53:25 -07:00
Dan Gohman
c61f8a5baf
Rename langref.rst to ir.rst.
...
This aligns with our use of the term "IR" rather than "IL" or
other terms involving "language".
2018-08-02 09:18:59 -07:00
Dan Gohman
987bbfa922
Fix rustfmt errors.
2018-08-01 15:14:49 -07:00
bjorn3
5389b7784e
Check signature compatibility in declare_function ( fixes #427 )
2018-08-01 14:23:59 -07:00
Dan Gohman
a8ded3a6f1
Remove unneeded dependencies.
2018-08-01 14:12:46 -07:00
Dan Gohman
bc8e5f82c8
Add use declarations needed for no_std mode.
2018-08-01 14:10:54 -07:00
Dan Gohman
c8350f4e8f
Update to raw-cpuid 5.0.0.
2018-08-01 14:06:16 -07:00
Dan Gohman
b8dbbce99d
Update cranelift-serde's license field.
...
This updates it to "Apache-2.0 WITH LLVM-exception".
2018-08-01 13:36:58 -07:00
Dan Gohman
c49c20713c
Check for duplicate jump tables before performing any IR mutations.
...
This isn't fixing an actual bug, but it does make `add_jt` more
consistent with the other `add_*` functions.
2018-08-01 13:33:54 -07:00
Dan Gohman
63e87895eb
Remove an unneeded command-line option.
2018-08-01 13:24:53 -07:00
Dan Gohman
f89cb1df64
Fix the test script to return an error if formatting diffs are found.
2018-08-01 13:24:53 -07:00
bjorn3
01729be8d7
Add comment support ( #379 )
...
* Add comment support
* Don't print empty comments
* Add nop instruction
* Add test and note
* Add FuncWriter trait
* Remove comment support
* Add write_preamble to FuncWriter
* Fix test
* Some changes
2018-08-01 11:21:05 -07:00
Dan Gohman
c42bed7452
Update paths for the meta => meta-python rename.
2018-08-01 05:05:33 -07:00
Benjamin Bouvier
3a550d185f
Enhance Verifier error reporting;
2018-07-31 08:02:14 -07:00