Commit Graph

5218 Commits

Author SHA1 Message Date
bors[bot]
4746d04c44
Merge #1305
1305: Handle panics from DynamicFunc. r=losfair a=losfair

Fixes https://github.com/wasmerio/wasmer/issues/1251#issuecomment-599497118 .

Co-authored-by: losfair <zhy20000919@hotmail.com>
Co-authored-by: Heyang Zhou <zhy20000919@hotmail.com>
2020-03-17 11:02:46 +00:00
Heyang Zhou
5331a1c2e4
Merge branch 'master' into fix/dynamicfunc-panic 2020-03-17 19:02:20 +08:00
bors[bot]
c177c44aa2
Merge #1310
1310: upgrade the blake3 dependency to 0.2 r=MarkMcCaskey a=oconnor663

Version 0.2 makes assembly implementations available. They're off by default, and I haven't enabled them here, because they require the build machine to have a C toolchain installed. But if that's already a requirement for Wasmer, we could enable them with the `"c"` feature, for both better runtime performance and faster build times.

Co-authored-by: Jack O'Connor <oconnor663@gmail.com>
2020-03-16 21:49:54 +00:00
bors[bot]
de0578441b
Merge #1307
1307: Add FreeBSD specific failure excludes. r=MarkMcCaskey a=MikaelUrankar

These tests doesn't pass on FreeBSD amd64

Co-authored-by: MikaelUrankar <mikael.urankar@gmail.com>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-03-16 21:20:33 +00:00
Jack O'Connor
1cbafeb315 upgrade blake3 to version 0.2 2020-03-16 17:12:26 -04:00
bors[bot]
20c21e8737
Merge #1300
1300: Update `wasi-tests` to test multiple versions of WASI r=MarkMcCaskey a=MarkMcCaskey

This change also cleans up the `wasi-test` generation a bit.  It's
actually still really, really messy, but at least now it's split up
into easier to understand chunks.

There's still a lot of low-hanging fruit in terms of improving the
readability and maintainability of the code.

Improves test coverage over what's on master.  Things in `ignores.txt` weren't being tested on master either; we should do a follow up to remove them from there (will require finding a good solution for raw WASI calls)

# 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>
2020-03-16 20:48:35 +00:00
Mark McCaskey
382e244f18
Merge branch 'master' into freebsd 2020-03-16 12:53:10 -07:00
Mark McCaskey
fac27c749b
Merge branch 'master' into feature/improved-wasitests 2020-03-16 12:46:24 -07:00
Mark McCaskey
f78b41a269 Add changelog entry for wasitest update 2020-03-16 12:45:26 -07:00
Mark McCaskey
228c5baa53
Fix typo in wasitest build.rs
Co-Authored-By: Syrus Akbary <me@syrusakbary.com>
2020-03-16 12:37:23 -07:00
losfair
686fe4a1e1 Update changelog 2020-03-16 22:51:58 +08:00
losfair
0f663887ad Handle panics from DynamicFunc. 2020-03-16 22:49:37 +08:00
Syrus
5e2488c1ea Fixed lint 2020-03-14 15:38:16 -07:00
Syrus Akbary
77393c6ecc
Merge pull request #1301 from wasmerio/feature/use-rust-1.41.1
Update Rust version in CI to 1.41.1
2020-03-13 20:25:42 -07:00
Mark McCaskey
57d4a076cb Update Rust version in CI to 1.41.1 2020-03-13 16:32:40 -07:00
Mark McCaskey
6a5efcda98 Update wasi-tests to test multiple versions of WASI
This change also cleans up the `wasi-test` generation a bit.  It's
actually still really, really messy, but at least now it's split up
into easier to understand chunks.

There's still a lot of low-hanging fruit in terms of improving the
readibilty and maintainability of the code.
2020-03-13 15:41:50 -07:00
Syrus Akbary
c01afac783
Merge pull request #1298 from Hywan/doc-interface-types
doc(interface-types) Update the state of supported instructions
2020-03-12 09:00:53 -07:00
bors[bot]
f77df9b250
Merge #1285
1285: feat(interface-types) Greatly improve errors r=Hywan a=Hywan

~This PR is build on top of #1284. It must be merged first. [View the exact diff](https://github.com/Hywan/wasmer/compare/feat-interface-types-instructions-string-and-memory...Hywan:feat-interface-types-better-error?expand=1).~

Errors in `wasmer-interface-types` were just `&'static str`, which isn't quite great 😉. This PR introduces the `errors` module, with structures that represent errors. A `Display` implementation maps the errors to strings.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-03-12 13:58:22 +00:00
Ivan Enderlin
03910a51fb Merge branch 'master' into feat-interface-types-better-error 2020-03-12 14:52:15 +01:00
Ivan Enderlin
b78a6f47ab chore(interface-types) Simplify code. 2020-03-12 14:51:18 +01:00
Ivan Enderlin
f46099c67b feat(interface-types) Implement Error on errors. 2020-03-12 14:49:43 +01:00
Ivan Enderlin
64729aa8f4 feat(interface-types) Use include ranges to read the memory. 2020-03-12 14:39:15 +01:00
Ivan Enderlin
20085e84a6 doc(interface-types) Update the state of supported instructions. 2020-03-12 13:57:57 +01:00
bors[bot]
18168fc974
Merge #1283
1283: Workaround for floating point arguments and return values in `DynamicFunc`s. r=syrusakbary a=losfair

This PR makes floating point arguments and return values for `DynamicFunc`s work correctly in all three backends.

Previously Singlepass used integer registers for all arguments. This PR adds another thin trampoline layer just before control is transferred to the import function, so that arguments will be rearranged strictly according to the System V ABI.

The full fix would require singlepass to implement the SysV calling convention internally too: https://github.com/wasmerio/wasmer/pull/1271 . This is just a workaround.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Co-authored-by: losfair <zhy20000919@hotmail.com>
Co-authored-by: Heyang Zhou <zhy20000919@hotmail.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-03-12 04:52:12 +00:00
Syrus Akbary
7617350851
Merge branch 'master' into fix/fpcc-workaround 2020-03-11 21:51:31 -07:00
bors[bot]
7b97b8abb7
Merge #1289
1289: Enable `DynamicFunc` for closures with captured environment. r=syrusakbary a=losfair

Previously we disabled `DynamicFunc` for any non-zero-sized closures to leave space for future changes. However this feature is critical for applications that needs to bring context with host functions, like integrations with dynamic lauguages. So it might be good to enable it.

A question left is: should we put this behind a feature flag or enable it by default?

@Hywan @syrusakbary 

Co-authored-by: losfair <zhy20000919@hotmail.com>
2020-03-12 04:25:34 +00:00
Syrus Akbary
81f7411b60
Merge pull request #1295 from wasmerio/release/0.16.2
Prepare for 0.16.2 release
2020-03-11 19:16:39 -07:00
Mark McCaskey
fffdba395d Prepare for 0.16.2 release 2020-03-11 19:15:31 -07:00
Syrus Akbary
2234f790c3
Merge pull request #1294 from wasmerio/fix/wasmptr-len-0-is-okay
Allow zero length arrays and check base offset for being out of bounds
2020-03-11 19:12:58 -07:00
Mark McCaskey
c3865c919c Allow zero length arrays and check base offset for being out of bounds 2020-03-11 19:10:15 -07:00
Syrus Akbary
c99fdf6a85
Merge pull request #1291 from wasmerio/release/0.16.1
Prepare for 0.16.1 release
2020-03-11 17:02:58 -07:00
Syrus Akbary
418edef88f
Update CHANGELOG.md 2020-03-11 16:10:06 -07:00
Mark McCaskey
dc9cc3292c Prepare for 0.16.1 release 2020-03-11 16:00:21 -07:00
Syrus Akbary
a0d0263e86
Update azure-pipelines.yml 2020-03-11 15:57:26 -07:00
Syrus Akbary
65da0daf24
Merge pull request #1290 from wasmerio/fix/wax-packaging
Fix `wax` command packaging for install script
2020-03-11 15:56:20 -07:00
Mark McCaskey
9d6681006d Fix wax command packaging for install script 2020-03-11 15:54:45 -07:00
losfair
6c7f49a223 Put fat DynamicFuncs behind a feature flag. 2020-03-12 03:14:57 +08:00
losfair
5edd1b5ab7 Enable DynamicFunc for closures with environment. 2020-03-12 02:58:36 +08:00
losfair
9930d54aaa Merge remote-tracking branch 'origin/fix/fpcc-workaround' into fix/fpcc-workaround 2020-03-12 02:53:19 +08:00
losfair
f93561dafc Add #1283 into changelog. 2020-03-12 02:52:48 +08:00
losfair
fc9f1bc8b3 Merge remote-tracking branch 'origin/master' into fix/fpcc-workaround 2020-03-12 02:51:40 +08:00
losfair
adabfa02b0 Move feed_* into closures. 2020-03-12 02:51:22 +08:00
Syrus Akbary
68376116b8
Merge pull request #1287 from wasmerio/release/0.16.0
Prepare for 0.16.0 release
2020-03-11 11:17:08 -07:00
Mark McCaskey
d7d5f5b894 Prepare for 0.16.0 release 2020-03-11 11:15:07 -07:00
Syrus Akbary
603065fe5f
Merge pull request #1286 from wasmerio/wapm-wax
Updated Windows Wasmer icons. Add wax
2020-03-10 21:39:29 -07:00
Syrus
a4a90dfcd8 Fixed WAPM version 2020-03-10 21:38:17 -07:00
Syrus
f2c5f88b21 Added wax symlink 2020-03-10 18:24:10 -07:00
Syrus Akbary
cce134de50
Merge branch 'master' into wapm-wax 2020-03-10 10:53:18 -07:00
Syrus Akbary
a1cdeede40
Update CHANGELOG.md 2020-03-10 10:52:53 -07:00
Ivan Enderlin
4ffb158f14 doc(changelog) Add #1285. 2020-03-10 17:49:35 +01:00