4448 Commits

Author SHA1 Message Date
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
bors[bot]
d3d328189f
Merge #1077
1077: Improve some doc comments relating to type-safe indexing r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-18 00:51:46 +00:00
Mark McCaskey
13b097e8c3 Improve the wording of typed index doc comments. 2019-12-17 19:10:36 -05:00
bors[bot]
ca0cb6a182
Merge #1076
1076: Use function defined in wasmer-runtime-core instead of llvm-backend's own copy of it. r=nlewycky a=nlewycky



Co-authored-by: Nick Lewycky <nick@wasmer.io>
2019-12-18 00:03:54 +00:00
Mark McCaskey
d165a85743 Improve some doc comments relating to type-safe indexing 2019-12-17 18:45:07 -05:00
Nick Lewycky
6a0a4390c1 Use function defined in wasmer-runtime-core instead of our own copy of it. 2019-12-17 15:12:54 -08:00
Mark McCaskey
6618750ebd Add include guards for WASI APIs in runtime-c-api 2019-12-17 16:25:26 -05:00
bors[bot]
f9bb579c05
Merge #1062
1062: Add emscripten functions and types to the C API r=MarkMcCaskey a=MarkMcCaskey

resolves #574 

Left to do:
- [x] Add tests
- [x] Add memory set up, etc (need to break up monolithic ("run" function in wasmer_emscripten into pieces)
- [x] Add passing args, etc

# 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 <5770194+markmccaskey@users.noreply.github.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-12-17 19:20:20 +00:00
Syrus Akbary
83fded4f20
Merge branch 'master' into feature/emscripten-in-c-api 2019-12-17 10:54:21 -08:00
bors[bot]
971f4e3e88
Merge #1068
1068: Various cleanups for the singlepass backend on AArch64. r=losfair a=losfair

ref: https://github.com/wasmerio/wasmer/pull/713

Co-authored-by: losfair <zhy20000919@hotmail.com>
2019-12-17 15:28:47 +00:00
losfair
1681af7e1d Merge remote-tracking branch 'origin/master' into fix/aarch64-cleanup 2019-12-17 23:27:53 +08:00
bors[bot]
c02846a147
Merge #1069
1069: Add fn for splitting borrow of memory & data in Ctx, use in WASI r=MarkMcCaskey a=MarkMcCaskey

Fixes a soundness issue / some undefined behavior

# Review

- [ ] 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 <5770194+markmccaskey@users.noreply.github.com>
2019-12-17 00:55:56 +00:00
Mark McCaskey
3a2881e85c Add split borrow memory/data from Ctx to changelog 2019-12-16 19:55:13 -05:00
Mark McCaskey
bb90cffac9 Address feedback; improve emscripten fn names in C API 2019-12-16 19:43:57 -05:00
Mark McCaskey
2819821ab7
Fix typo in doc comment
Co-Authored-By: nlewycky <nick@wasmer.io>
2019-12-16 16:37:34 -08:00
Syrus Akbary
9dd8326c1b
Merge pull request #1065 from wasmerio/dependabot/cargo/log-0.4.10
Bump log from 0.4.8 to 0.4.10
2019-12-16 16:30:30 -08:00
Syrus Akbary
21ac9fde23
Merge branch 'master' into dependabot/cargo/log-0.4.10 2019-12-16 16:30:21 -08:00
Syrus Akbary
efa37b6ad4
Merge pull request #1064 from wasmerio/dependabot/cargo/serde-1.0.104
Bump serde from 1.0.103 to 1.0.104
2019-12-16 16:29:33 -08:00
Syrus Akbary
f9d95131dd
Merge pull request #1066 from wasmerio/dependabot/cargo/bincode-1.2.1
Bump bincode from 1.2.0 to 1.2.1
2019-12-16 16:29:17 -08:00
bors[bot]
a8497d07fb
Merge #1072
1072: Add minor changes to runtime/vm doc comments + make fns const fns r=syrusakbary a=MarkMcCaskey

Slightly improves readability of docs and makes more functions `const fn`

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-16 23:40:38 +00:00
Mark McCaskey
9ccb59eae5 Add minor changes to runtime/vm doc comments + make fns const fns 2019-12-16 18:27:37 -05:00
Mark McCaskey
15c52fd743 Update doc comment on borrow splitting ctx fn 2019-12-16 18:16:20 -05:00
Mark McCaskey
cd0b4a3d7f Add capi emscripten test to test-capi recipe 2019-12-16 18:07:07 -05:00
Mark McCaskey
a2b47bd591 Update changelog, clean up, fix test 2019-12-16 18:06:37 -05:00
dependabot-preview[bot]
1e1ec83738
Bump log from 0.4.8 to 0.4.10
Bumps [log](https://github.com/rust-lang/log) from 0.4.8 to 0.4.10.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.8...0.4.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 22:37:30 +00:00
dependabot-preview[bot]
1ebfecad26
Bump serde from 1.0.103 to 1.0.104
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 22:37:28 +00:00
dependabot-preview[bot]
de74719b92
Bump bincode from 1.2.0 to 1.2.1
Bumps [bincode](https://github.com/servo/bincode) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/servo/bincode/releases)
- [Commits](https://github.com/servo/bincode/compare/v1.2.0...v1.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 22:37:26 +00:00
bors[bot]
bedf707419
Merge #1070
1070: Update Inkwell r=MarkMcCaskey a=MarkMcCaskey

Updates inkwell which removes the networking dep from building Inkwell -- this should speed up our CI

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-16 22:00:05 +00:00
Mark McCaskey
05012f9514 Update Inkwell 2019-12-16 16:51:33 -05:00
Mark McCaskey
06d4897d11
Merge branch 'master' into feature/emscripten-in-c-api 2019-12-16 13:50:12 -08:00
Mark McCaskey
bb344c1ab1 Add fn for splitting borrow of memory & data in Ctx, use in WASI 2019-12-16 16:48:52 -05:00
bors[bot]
76800c7367
Merge #1032
1032: Fix abort signature in emscripten ABI r=MarkMcCaskey a=MarkMcCaskey

Needs tests; this is preventing python on wapm from working

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-16 20:48:03 +00:00
Mark McCaskey
e86b3941d0 Update Emscripten API layout; expose inner parts to to C API; add test 2019-12-16 15:45:28 -05:00
losfair
f9928752ba Update changelog. 2019-12-17 00:42:26 +08:00
losfair
912c2f8996 Run cargo fmt. 2019-12-17 00:36:00 +08:00
losfair
5521352f52 singlepass: Use a valid instruction as the inline breakpoint marker. (AArch64) 2019-12-17 00:33:18 +08:00
losfair
4d7eec10e9 fault, state: Cleanup and keep consistent with backend. 2019-12-17 00:32:26 +08:00
losfair
57615e5673 runtime-core/backend: Add comments and cleanup. 2019-12-17 00:31:47 +08:00
bors[bot]
598fbfa44a
Merge #1063
1063: Add more doc comments to our WASI implementation r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-12-14 01:13:40 +00:00
Mark McCaskey
24e0e34fb2 Add more doc comments to our WASI implementation 2019-12-13 17:11:13 -08:00
bors[bot]
e749029a3b
Merge #1044
1044: Initial commit for support of AArch64 in the llvm backend. r=syrusakbary a=nlewycky

# Description
Enables AArch64 in the llvm backend, and inkwell when the target_arch is aarch64. Adds relevant failing spectests to the excludes.txt.

# Review

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


Co-authored-by: Nick Lewycky <nick@wasmer.io>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-12-13 22:08:27 +00:00
Syrus Akbary
243e0b5e2c
Trying to fix Windows LLVM - 3rd intent 2019-12-13 14:07:59 -08:00
Mark McCaskey
f1c95a81ab Add foundational emscripten functions and types to C API 2019-12-13 14:02:48 -08:00
Syrus Akbary
963494080f
Trying to fix Windows LLVM Installation 2019-12-13 13:57:24 -08:00
Syrus Akbary
952309a36b
Merge branch 'master' into feature/llvm-on-arm 2019-12-13 13:03:51 -08:00
Syrus Akbary
b84ff0e293
Trying to fix Win64 LLVM release for ARM 2019-12-13 13:03:27 -08:00
bors[bot]
17aecf9541
Merge #1060
1060: Test the capi with multiple backends r=syrusakbary a=syrusakbary

<!-- 
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

This PR updates the codebase to test the capi with multiple backends.
<!-- 
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: Syrus <me@syrusakbary.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-12-13 19:54:21 +00:00
Syrus
6946d6883a Install LLVM for the CAPI 2019-12-13 11:53:31 -08:00
Syrus Akbary
4aafa45a7a
Merge branch 'master' into capi-multiple-backends 2019-12-12 17:06:10 -08:00
Syrus
8a2a429a2d Added changes to the changelog 2019-12-12 17:05:36 -08:00