Mark McCaskey
adecb36d15
Update to 0.45.0 wasmparser Operator names in singlepass-backend
2019-12-20 17:15:38 -08:00
Nick Lewycky
c2f287e65b
Update to cranelift 0.51.
2019-12-20 17:10:36 -08:00
bors[bot]
4018494f6e
Merge #1071
...
1071: Add support for non-trapping float-to-int conversions. r=nlewycky a=nlewycky
# Description
Rewrites LLVM implementation of non-trapping float-to-int conversions. LLVM's conversion operations produce unspecified output when the input floats are out of range for the conversion.
Add implementation to singlepass for both x86-64 and AArch64.
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Nick Lewycky <nick@wasmer.io>
2019-12-21 00:23:31 +00:00
Nick Lewycky
bba0129150
Remove comments with register names that might not be right and don't really matter.
2019-12-20 16:20:58 -08:00
Nick Lewycky
e738a9f2b5
Name the magic constants in the singlepass backend.
2019-12-20 16:20:58 -08:00
Nick Lewycky
f00283ab03
Name the magic constants in the LLVM backend.
2019-12-20 16:20:58 -08:00
Nick Lewycky
56fd66403c
Update changelog again, to move entry to new unreleased section since there's been a release.
2019-12-20 16:20:58 -08:00
Nick Lewycky
f8d792cf04
Add changelog entry.
2019-12-20 16:20:58 -08:00
Nick Lewycky
b7929e6561
Add support for non-trapping float to int conversions in singlepass+AArch64.
2019-12-20 16:20:58 -08:00
Nick Lewycky
32ed6f2c10
Enable non-trapping float to int conversions by default.
2019-12-20 16:20:58 -08:00
Nick Lewycky
d52c193e84
Finish implementation of trunc_sat in singlepass x86-64.
2019-12-20 16:20:58 -08:00
Nick Lewycky
442c40f5f1
Initial implementatio of trunc-sat instructions in singlepass. 27 test failures.
2019-12-20 16:20:58 -08:00
Nick Lewycky
6fe2f434c6
Add tests for non-trapping float to int conversions.
...
This breaks all of conversions.wast on singlepass. LLVM and Cranelift pass.
2019-12-20 16:20:58 -08:00
Nick Lewycky
0cfe08fff3
Correct implementation of non-trapping float to int conversions in the llvm backend.
2019-12-20 16:20:58 -08:00
Nick Lewycky
5b35313099
Use type traits to ensure that the float and int types match in trunc_sat.
2019-12-20 16:20:58 -08:00
bors[bot]
fa29a1b9f2
Merge #1092
...
1092: Add function to get nul-terminated strings from memory r=MarkMcCaskey a=srenatus
## Description
This is meant to fix #1086 .
❓ I'm a bit new to this -- is this how you'd do it? Happy to take directions! 😃
I've added a note regarding the special case in the comment.
Are there existing tests to expand?
## Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Stephan Renatus <srenatus@chef.io>
2019-12-20 21:08:01 +00:00
Stephan Renatus
782be5b51a
Add function to get nul-terminated strings from memory
...
Fixes #1086 .
Signed-off-by: Stephan Renatus <srenatus@chef.io>
2019-12-20 21:53:08 +01:00
Syrus Akbary
957bfd6add
Merge pull request #1093 from wasmerio/fix/update-page-size
...
Update page_size crate
2019-12-20 09:33:53 -08:00
bors[bot]
6672bc1f7a
Merge #1026
...
1026: Bump smallvec from 0.6.13 to 1.0.0 r=MarkMcCaskey a=dependabot-preview[bot]
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 0.6.13 to 1.0.0.
<details>
<summary>Release notes</summary>
*Sourced from [smallvec's releases](https://github.com/servo/rust-smallvec/releases ).*
> ## v1.0.0
> * Requires Rust 1.36 or later.
> * [breaking change] Use `MaybeUninit` to avoid possible undefined behavior ([#162 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/162 ), [#170 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/170 )).
> * [breaking change] The `drain` method now takes a range argument, just like the standard `Vec::drain` ([#145 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/145 )).
> * [breaking change] Remove the `unreachable` function and replace it with the new standard `unreachable_unchecked` function ([#164 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/164 )).
> * [breaking change] Use `no_std` by default. This crate depends only on `core` and `alloc` by default. If the optional `write` feature is enabled then it depends on `std` so that `SmallVec<[u8;_]>` can implement the `std::io::Write` trait ([#173 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/173 )).
> * [breaking change] Remove the deprecated `VecLike` trait ([#165 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/165 )).
> * Add support for 96-element small vectors, `SmallVec<[T; 96]>` ([#163 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/163 )).
> * Iterators now implement `FusedIterator` ([#172 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/172 )).
> * Indexing now uses the standard `SliceIndex` trait ([#166 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/166 )).
> * Add automatic fuzz testing and MIRI testing ([#168 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/168 ), [#162 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/162 )).
> * Update syntax and formatting to Rust 2018 standard ([#174 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/174 ), [#167 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/167 )).
>
</details>
<details>
<summary>Commits</summary>
- [`34c2628`](34c26282c4
) Auto merge of [#175 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/175 ) - mbrubeck:one, r=jdm
- [`523a6dc`](523a6dc919
) Version 1.0.0
- [`a2c0504`](a2c0504511
) Auto merge of [#174 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/174 ) - mbrubeck:2018, r=jdm
- [`a51059c`](a51059cd38
) Update to Rust 2018 edition
- [`01917a6`](01917a6b1c
) Auto merge of [#168 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/168 ) - dpc:fuzz, r=mbrubeck
- [`a3ba738`](a3ba738ce6
) Add a fake stub input case for afl fuzzer
- [`85c54a5`](85c54a5689
) Add simple fuzzing
- [`b2c9c65`](b2c9c65129
) Auto merge of [#173 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/173 ) - mbrubeck:std, r=emilio
- [`fffb185`](fffb185d4f
) Use no_std by default
- [`af73fbd`](af73fbdc27
) Auto merge of [#172 ](https://github-redirect.dependabot.com/servo/rust-smallvec/issues/172 ) - mbrubeck:fused, r=mbrubeck
- Additional commits viewable in [compare view](https://github.com/servo/rust-smallvec/compare/v0.6.13...v1.0.0 )
</details>
<br />
[](https://dependabot.com/compatibility-score.html?dependency-name=smallvec&package-manager=cargo&previous-version=0.6.13&new-version=1.0.0 )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com ):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
</details>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-12-20 16:31:15 +00:00
Mark McCaskey
b12f346dad
Update page_size crate
2019-12-20 10:57:43 -05:00
bors[bot]
572399dce8
Merge #1089
...
1089: Add misc doc link fixes and update old comment r=MarkMcCaskey a=MarkMcCaskey
I spent way too long trying to make things work, `#[doc(no_inline)]`, adding doc comments on top of things with doc comments, and linking in the context of inlining are way harder than they seem like they should be 🙀
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-19 23:50:07 +00:00
bors[bot]
823c699ef2
Merge #1090
...
1090: Fix plugin example, add examples to test recipe r=syrusakbary a=MarkMcCaskey
This was reported [on spectrum](https://spectrum.chat/wasmer/general/failure-running-plugin-sample-on-mac~58c72ff0-47cd-4158-8069-fb726d7bb5dd ). This PR fixes the issue and adds it to `test` so we test it in CI.
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-19 23:10:25 +00:00
Mark McCaskey
ca52265a1c
Fix plugin example, add examples to test recipe
2019-12-19 16:32:28 -05:00
Mark McCaskey
ad8945a555
Add misc doc link fixes and update old comment
2019-12-19 16:22:51 -05:00
Syrus
0daaa75a70
Revert incorrect toolchain changes from ”Fix azure pipelines release"
...
This reverts partially the commit c88196355dacc4009b2292d8d969d6d44dd8dd9a.
2019-12-19 11:57:20 -08:00
Syrus Akbary
c88196355d
Fix azure pipelines release
2019-12-19 11:54:42 -08:00
dependabot-preview[bot]
61a30804b3
Bump smallvec from 0.6.13 to 1.0.0
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 0.6.13 to 1.0.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v0.6.13...v1.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-19 19:54:26 +00:00
bors[bot]
c96559305d
Merge #1087
...
1087: Update stable Rust to 1.39.0; pin nightly to 2019-12-19 r=MarkMcCaskey a=MarkMcCaskey
Both of these should speed up compile times:
The new stable has better parallelization and the new nightly has [new parallelization features](https://internals.rust-lang.org/t/help-test-parallel-rustc/11503 )
# Review
- [ ] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-19 19:21:37 +00:00
Mark McCaskey
3e3fe9ac6a
Update Travis CI nightly version to 2019-12-19
2019-12-19 14:20:42 -05:00
Mark McCaskey
5888f44e95
Cargo fmt with Rust 1.39.0
2019-12-19 14:06:27 -05:00
Mark McCaskey
bb9cb4e90b
Update stable Rust to 1.39.0; pin nightly to 2019-12-19
2019-12-19 14:00:26 -05:00
bors[bot]
6fb52e812e
Merge #1084
...
1084: Prepare for 0.12.0 release r=MarkMcCaskey a=MarkMcCaskey
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-19 16:43:39 +00:00
bors[bot]
096ea7ca97
Merge #1081
...
1081: Remove type_to_llvm_int_only, only use type_to_llvm. r=syrusakbary a=nlewycky
Co-authored-by: Nick Lewycky <nick@wasmer.io>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-12-18 23:08:18 +00:00
Syrus Akbary
10dccd9556
Merge branch 'master' into feature/llvm-use-floats
2019-12-18 15:07:43 -08:00
Mark McCaskey
6a74b7e994
Prepare for 0.12.0 release
2019-12-18 17:24:29 -05:00
bors[bot]
7083ff9e85
Merge #1083
...
1083: Add experimental IO devices r=MarkMcCaskey a=MarkMcCaskey
Adds some private stuff for us to experiment with
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Aaron Turner <aaron@aaronthedev.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-12-18 21:34:11 +00:00
Mark McCaskey
81ece2bf7a
Enable IO devices for CI's build
2019-12-18 16:31:40 -05:00
Syrus Akbary
3deaf3e525
Merge pull request #1082 from wasmerio/feature/travis-can-retry
...
Add retry logic to Travis CI
2019-12-18 12:51:12 -08:00
Mark McCaskey
caa75fa157
Merge branch 'master' into wat
2019-12-18 15:42:14 -05:00
Mark McCaskey
6201671791
Add retry logic to Travis CI
2019-12-18 15:36:27 -05:00
Mark McCaskey
7d77511ad5
Additional clean up, cargo update to fix merge issue
2019-12-18 15:24:42 -05:00
Nick Lewycky
5d0429989a
Remove type_to_llvm_int_only, only use type_to_llvm.
2019-12-18 11:53:48 -08:00
Mark McCaskey
4539ef44d0
Rename to experimental-io-devices and clean up for release
2019-12-18 14:10:54 -05:00
Syrus Akbary
09dbb49f84
Merge pull request #1079 from srenatus/sr/fix-markup
...
docs: fix markup runtime-core docs
2019-12-18 08:39:41 -08:00
Stephan Renatus
b5b8484f6a
docs: fix markup runtime-core docs
...
Signed-off-by: Stephan Renatus <srenatus@chef.io>
2019-12-18 15:06:46 +01:00
bors[bot]
6229346dd2
Merge #1078
...
1078: Add more parameters to Func r=Hywan a=Jasper-Bekkers
<!--
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests
-->
# Description
We ran into the issue that we needed to pass more then the available number of parameters to wasm, so I've extended the parameter count for `Func` to have max 26 parameters now.
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Jasper-Bekkers <bekkers@gmail.com>
2019-12-18 12:56:20 +00:00
Jasper-Bekkers
22b3a06b40
Skip formatting test_func_arity_n!
invocations with more then 15 parameters
2019-12-18 13:22:22 +01:00
Jasper-Bekkers
52440b66f3
Add pull request to CHANGELOG.md
2019-12-18 12:43:06 +01:00
Jasper-Bekkers
ee2e595e5b
Add more parameters to Func
2019-12-18 12:36:19 +01:00
bors[bot]
49c512b2c5
Merge #1075
...
1075: Add include guards for WASI APIs in runtime-c-api r=syrusakbary a=MarkMcCaskey
Improves correctness, but the readability does suffer.
In the future we should probably have separate header files or find a way to merge the conditional includes
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-18 03:15:33 +00:00