Commit Graph

865 Commits

Author SHA1 Message Date
Mark McCaskey
6d01b7f891 Prepare for 0.17.0 release 2020-05-11 13:48:41 -07:00
vms
c3e9e36782 make func clonable 2020-05-02 12:28:00 +03:00
Ivan Enderlin
3feaa7fd3f
Merge branch 'master' into fix/doc-comment-runtimeerror 2020-04-30 09:47:56 +02:00
Mark McCaskey
579d4564eb Update doc comment for RuntimeError 2020-04-29 13:46:57 -07:00
vms
abed2c238a some minor improvements 2020-04-29 23:15:38 +03:00
bors[bot]
d23a3f3d1c
Merge #1401
1401: Make runtime and trap errors well defined r=syrusakbary a=MarkMcCaskey

Resolves #1328 

This PR goes through and gives explicit types for all the errors instead of using `Box<dyn Any + Send>` where possible.  This gives users better insight into what the specific errors are and should help with debugging in the case of mistakes in our code.

The remaining uses of `Box<dyn Any>` are due to the structure of our dependency graph -- this is probably solvable but it seems fine as is as all error types are now explicit and the remaining `Box<dyn Any>`s are either fully user controlled or not for end-user consumption.

# Review

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


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-04-28 22:21:13 +00:00
Mark McCaskey
9c5fdd6f69 Address feedback, cleanup, fix memory leak in LLVM-backend 2020-04-28 11:36:01 -07:00
Ivan Enderlin
5c2db568ed feat(runtime-core) Implement ImportObjectIterator::size_hint. 2020-04-28 16:32:20 +02:00
Mark McCaskey
74ddc8e0c8 Add docs; fix misc bugs 2020-04-27 14:59:43 -07:00
Mark McCaskey
cffdb387f7 Fix new RuntimeError integration with the LLVM-backend 2020-04-27 12:55:58 -07:00
Mark McCaskey
2bbe3406cf Debugging LLVM trap code WIP 2020-04-26 12:52:58 -07:00
Mark McCaskey
89af5dc107 Fix new RuntimeError implementation for the Singlepass backend 2020-04-26 12:05:12 -07:00
Mark McCaskey
9723270f96 Fix tests for the Cranelift backend 2020-04-24 14:55:30 -07:00
Mark McCaskey
b9ec8f9845 Define runtime error values explicitly in Singlepass 2020-04-24 13:21:45 -07:00
Mark McCaskey
bfb6814f23 Make runtime and trap errors well defined (WIP) 2020-04-23 12:40:35 -07:00
bors[bot]
ab106af422
Merge #1358
1358: Update C API to use new API r=MarkMcCaskey a=MarkMcCaskey



# 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>
2020-04-21 20:12:46 +00:00
Syrus
f222658dcb Added DynamicFunc::new method for non x86 architectures 2020-04-16 12:53:17 -07:00
Syrus
a7dba54b7f Improved test generation 2020-04-14 11:41:12 -07:00
Mark McCaskey
bf09dc5e67
Merge branch 'master' into feature/update-capi-to-use-new-api 2020-04-09 17:40:29 -07:00
Mark McCaskey
23bc0fd720 Fix kernel-net check, fix misc warnings
Split out nightly check step
2020-04-08 17:05:25 -07:00
Mark McCaskey
db76aea198 Remove more uses of wasmer_runtime_core from the C API 2020-04-07 17:28:23 -07:00
bors[bot]
1833af7eba
Merge #1350
1350: update blake3 to 0.3.1 r=syrusakbary a=oconnor663

Version 0.3.0 caused problems because it required a C compiler with
AVX-512 support, which broke Android x86 cross-compilation. Version
0.3.1 automatically falls back to a pure Rust build when the C compiler
either doesn't exist or doesn't support the flags we need.

Co-authored-by: Jack O'Connor <oconnor663@gmail.com>
2020-04-02 15:11:41 +00:00
Jack O'Connor
aca0bd11c0 update blake3 to 0.3.1
Version 0.3.0 caused problems because it required a C compiler with
AVX-512 support, which broke Android x86 cross-compilation. Version
0.3.1 automatically falls back to a pure Rust build when the C compiler
either doesn't exist or doesn't support the flags we need.
2020-04-02 11:02:49 -04:00
Mark McCaskey
0527b50af3 Improve consistency of names, reuse more code, and reorganize a bit 2020-03-31 16:00:52 -07:00
Mark McCaskey
bde319d9fb Fix bug and un-deprecate Instance::call 2020-03-31 14:06:30 -07:00
Mark McCaskey
836711f7cd Implement Instance::call in terms of the exports API 2020-03-31 12:40:55 -07:00
Mark McCaskey
50fcd57e45 Improve consistency and add misc clean ups 2020-03-31 12:37:50 -07:00
Mark McCaskey
403d4b4c8b
Merge branch 'master' into feature/update-api 2020-03-30 17:40:18 -07:00
Mark McCaskey
7ca721bd83 Update from feedback
Deprecate more methods on `Instance`, add `into_iter` method on
`Exports`, add FuncSig to ImportType and other updates.
2020-03-30 17:38:51 -07:00
Syrus Akbary
34638417a9
Revert "update blake3 to version 0.3.0" 2020-03-30 15:22:46 -07:00
Jack O'Connor
566d2f7467 update blake3 to version 0.3.0
Version 0.3 switched to using assembly implementations by default, which
both perform better and build more quickly. This invokes the C compiler
from build.rs. If Wasmer would prefer to avoid that build dependency, we
could enable the new `pure` feature.
2020-03-30 11:19:39 -04:00
Mark McCaskey
7cd9e82015 Simplify ImportType 2020-03-27 14:00:02 -07:00
Mark McCaskey
a0dca15fbc Add misc. fixes and updates from feedback 2020-03-27 13:25:51 -07:00
Mark McCaskey
3eff8c1973 Convert usages of Instance::{func,dyn_func} to exports.get 2020-03-26 18:13:45 -07:00
Mark McCaskey
2fb8f8197b Deprecate Instance::func and Instance::dyn_func 2020-03-26 17:11:37 -07:00
Mark McCaskey
a18371eb91 Implement instance.exports field syntax 2020-03-26 16:24:23 -07:00
Mark McCaskey
c14c88fb72 Improve high level API test 2020-03-25 16:14:04 -07:00
Mark McCaskey
ce1b1f67cf Update opt name in CompilerConfig, enable IR verification in spectests 2020-03-24 15:46:58 -07:00
Mark McCaskey
403e14bc1e Add CompilerConifg opt to disable IR verification in debug mode 2020-03-24 14:52:02 -07:00
Mark McCaskey
9829d97d7d Update Module::custom_sections to properly return multiples 2020-03-23 14:12:07 -07:00
Mark McCaskey
59bd6f6e86
Merge branch 'master' into feature/update-api 2020-03-23 14:07:02 -07:00
Mark McCaskey
9cdb49d22c
Merge branch 'master' into android 2020-03-23 13:29:18 -07:00
bors[bot]
e695ecbfd8
Merge #1288
1288: Update some dependencies manually, removing duplicate deps r=MarkMcCaskey a=MarkMcCaskey

Removes all duplicate deps (as seen by `cargo +stable tree -d`).  Primarily by updating `wasm-debug` but also by through updating some other dependencies.

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-03-23 18:58:51 +00:00
YAMAMOTO Yuji
96a0f851c2
Update libc
The new version of libc contains changes necessary to build
wasmer-runtime-core for Android.

See https://github.com/rust-lang/libc/pull/1622 for details.
2020-03-23 11:55:32 +09:00
Yuji Yamamoto
0df0a1cccb
Support Android
I'll send a PR after https://github.com/rust-lang/libc/pull/1622 is merged and released
2020-03-23 11:55:31 +09:00
Mark McCaskey
844a572bca Rename new type fields from type_ to ty 2020-03-20 17:10:43 -07:00
Mark McCaskey
248e06146a Support multiple custom sections with the same name 2020-03-20 11:27:23 -07:00
Mark McCaskey
da949f47a1 Improve Table implementation for API
This commit also leaves comments explaining the current state of
things so that when it's unblocked it can be finished and the API made public.
2020-03-20 11:15:10 -07:00
Mark McCaskey
2dc3ea53eb Implement table getting and setting 2020-03-18 18:06:53 -07:00
Mark McCaskey
71be2c6763 Add getter to table and other misc changes 2020-03-18 15:33:34 -07:00