Commit Graph

3865 Commits

Author SHA1 Message Date
Nick Lewycky
bc7e017188 Add atomic.rmw operations, excluding xchg and cmpxchg.
Sizes are now ordered, to facilitate an assertion that one size is less (smaller) than another.

panic! error messages are provided for remaining emitter functions.
2019-10-02 16:31:11 -07:00
Nick Lewycky
f021d59a0b Refactor out a compare-and-swap loop function. 2019-10-02 16:31:11 -07:00
Nick Lewycky
cd1d06f5a5 Initial working implementation of I32AtomicRmwAnd!
Adds the ability to reserve a specific temp-gpr register. Needed for CMPXCHG which always uses RAX.
2019-10-02 16:31:11 -07:00
Nick Lewycky
6937019b65 Use a compare-and-swap loop for AND.
BUG: This might allocate RAX twice.
2019-10-02 16:31:10 -07:00
Nick Lewycky
81895830f0 Add emitter for LOCK CMPXCHG so that we can emit compare-and-swap loops. 2019-10-02 16:31:10 -07:00
Nick Lewycky
efc89e829d Add i32 rmw add and sub. 2019-10-02 16:31:10 -07:00
Nick Lewycky
98f35ef84a Initial implementation of atomic load/store and i32 atomic rmw add. 2019-10-02 16:31:10 -07:00
bors[bot]
65637bec70
Merge #859
859: Prepare for 0.8.0 release r=MarkMcCaskey a=MarkMcCaskey

Releasing 0.8.0!


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-10-02 22:53:46 +00:00
Mark McCaskey
e5b5f11fc0 Add contributor shoutout section to 0.8.0 release 2019-10-02 15:44:07 -07:00
Mark McCaskey
c77cbc1f40 Prepare for 0.8.0 release 2019-10-02 15:40:35 -07:00
bors[bot]
38078173d3
Merge #850
850: Add builder API for WasiState r=MarkMcCaskey a=MarkMcCaskey

Nicer to use and it checks for errors!

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-10-02 20:17:29 +00:00
Mark McCaskey
afbde49d1f Update stub wasi generate import object fn
Fix typo

Fix debug issue
2019-10-02 13:16:47 -07:00
Mark McCaskey
b45b1c12f1 Add WASI support to runtime-c-api 2019-10-02 12:06:17 -07:00
Mark McCaskey
5185f120f4 Update some from feedback, fix tests
format with 1.37
2019-10-02 11:25:55 -07:00
Syrus Akbary
fed80fcd3e
Merge pull request #855 from wasmerio/fix/example-in-runtime-readme
Fix example in runtime readme
2019-10-01 13:54:38 -07:00
Mark McCaskey
0d997c332f Fix example in runtime readme 2019-10-01 13:45:44 -07:00
Mark McCaskey
75286b580b
Merge branch 'master' into feature/builder-api-for-wasi-state 2019-10-01 09:32:25 -07:00
Syrus Akbary
b74e62af3d
Merge pull request #845 from wasmerio/dependabot/cargo/generational-arena-0.2.3
Bump generational-arena from 0.2.2 to 0.2.3
2019-09-30 23:55:31 -07:00
Syrus Akbary
f474e9722e
Merge pull request #846 from wasmerio/dependabot/cargo/bindgen-0.51.1
Bump bindgen from 0.51.0 to 0.51.1
2019-09-30 23:55:03 -07:00
Syrus Akbary
82f3956e2c
Merge pull request #852 from jdanford/minor-readme-fixes
Make minor fixes to README.md
2019-09-30 23:08:12 -07:00
Jordan Danford
9be72e6808 Fix some other files too 2019-09-30 22:50:04 -07:00
Jordan Danford
5a92e6b450 Make minor fixes to README.md 2019-09-30 19:47:10 -07:00
Mark McCaskey
4660bc6652 Update API to be more cleann 2019-09-30 17:52:53 -07:00
Syrus Akbary
863b86eae6
Merge pull request #851 from wasmerio/feature/update-emoji-in-feature-matrix
Update emoji in feature matrix
2019-09-30 17:13:46 -07:00
Mark McCaskey
00715e160f Use the large white square emoji instead of the white square emoji 2019-09-30 17:05:40 -07:00
Mark McCaskey
acf40ed9ce Update emoji again! 2019-09-30 17:02:58 -07:00
Mark McCaskey
bd0e275c6c Update emoji in feature matrix 2019-09-30 16:55:41 -07:00
Mark McCaskey
38602b257b Move validation to end of Builder 2019-09-30 16:32:18 -07:00
Mark McCaskey
2e860e589a Add builder API for WasiState 2019-09-30 15:26:04 -07:00
dependabot-preview[bot]
5585cce714
Bump bindgen from 0.51.0 to 0.51.1
Bumps [bindgen](https://github.com/rust-lang/rust-bindgen) from 0.51.0 to 0.51.1.
- [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.51.0...v0.51.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-30 11:12:21 +00:00
dependabot-preview[bot]
5c5a498e4e
Bump generational-arena from 0.2.2 to 0.2.3
Bumps [generational-arena](https://github.com/fitzgen/generational-arena) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/fitzgen/generational-arena/releases)
- [Changelog](https://github.com/fitzgen/generational-arena/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/generational-arena/compare/0.2.2...0.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-30 11:11:54 +00:00
bors[bot]
8a2052bb90
Merge #828
828: No need to emit add of constant zero. r=losfair a=nlewycky

# Description
While debugging singlepass generated code, I noticed unnecessary adds of zero. Removing them made the resulting assembly shorter and easier to analyze.


Co-authored-by: Nick Lewycky <nick@wasmer.io>
Co-authored-by: nlewycky <nick@wasmer.io>
Co-authored-by: Heyang Zhou <zhy20000919@hotmail.com>
2019-09-29 04:53:33 +00:00
Heyang Zhou
dfb8989280
Merge branch 'master' into nlewycky/singlepass-add-zero 2019-09-29 12:52:26 +08:00
bors[bot]
67ae86bdbd
Merge #841
841: Add lots of rustdocs and clean up one line of code r=MarkMcCaskey a=MarkMcCaskey



- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-09-27 17:17:45 +00:00
Mark McCaskey
dad43dd990 Merge branch 'master' into docs/improved-rust-docs 2019-09-27 10:17:11 -07:00
Mark McCaskey
871310a851 Improve docs from feedback 2019-09-27 10:15:40 -07:00
bors[bot]
73137140fa
Merge #835
835: Add parallel execution example r=Hywan a=MarkMcCaskey

A bit wip

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-09-27 11:39:43 +00:00
Mark McCaskey
dc1744560c Add lots of rustdocs and clean up one line of code 2019-09-26 17:17:50 -07:00
Mark McCaskey
1083e7cd2a Add parallel execution example 2019-09-26 16:25:31 -07:00
bors[bot]
287b42579c
Merge #836
836: Update cranelift backend to fork version 0.44.0 r=bjfish a=bjfish

<!-- 
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
Update cranelift dependency to updated fork version 0.44.0
<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
2019-09-26 22:35:22 +00:00
Brandon Fish
6c361853db Merge branch 'master' into feature/merge-cranelift-0-44-0 2019-09-26 17:34:23 -05:00
bors[bot]
44e908698c
Merge #839
839: Update CI to use Rust 1.37 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-09-26 19:38:21 +00:00
Mark McCaskey
4083b5f1d1 Update CI to use Rust 1.37 2019-09-26 12:35:19 -07:00
Brandon Fish
008a1d7369 Update to published cranelift fork version 0.44.0 2019-09-26 08:43:12 -05:00
Brandon Fish
cfbaf4458f Add changelog entry for cranelift fork version update 0.44.0 2019-09-25 23:44:10 -05:00
Brandon Fish
c69cdeca9b Update cranelift backend to fork version 0.44.0 2019-09-25 23:37:39 -05:00
Syrus Akbary
c52c44a6e5
Merge pull request #834 from pventuzelo/ventuzelo/fix-830-panic-unwrap-wasmer-args
Fix 830 panic unwrap wasmer args
2019-09-25 14:21:54 -07:00
Syrus
8a92e52f96 Don’t create unexisting dir 2019-09-25 13:46:32 -07:00
Syrus
d9f2cded26 Trying to improve cache time 2019-09-25 13:35:11 -07:00
Patrick Ventuzelo
de533af2cc
Merge branch 'master' into ventuzelo/fix-830-panic-unwrap-wasmer-args 2019-09-25 22:01:19 +02:00