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
Mark McCaskey
f864765298
Make trailing commas in imports!
macro optional
...
We now use `,*` on the outside of a `$()` expression to match on
interspersed commas instead of trailing commas. To continue to handle
the trailing comma case, we optionally match on an extra comma at the
end with `$(,)?`.
2020-03-17 16:17:03 -07:00
Mark McCaskey
f4dc419b5e
Add types and methods to provide updated API
2020-03-17 15:27:11 -07:00
losfair
8485ccc88c
Update comment for nan_canonicalization
.
2020-03-18 01:48:27 +08:00
losfair
5e40be48a1
Merge remote-tracking branch 'origin/master' into feature/singlepass-nan-cncl
2020-03-18 00:43:52 +08:00
Heyang Zhou
5331a1c2e4
Merge branch 'master' into fix/dynamicfunc-panic
2020-03-17 19:02:20 +08:00
Jack O'Connor
1cbafeb315
upgrade blake3 to version 0.2
2020-03-16 17:12:26 -04:00
losfair
5d26d92d9b
Add switch to turn on/off NaN canonicalization.
2020-03-16 23:40:02 +08:00
losfair
0f663887ad
Handle panics from DynamicFunc.
2020-03-16 22:49:37 +08: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
Mark McCaskey
fffdba395d
Prepare for 0.16.2 release
2020-03-11 19:15:31 -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
Mark McCaskey
dc9cc3292c
Prepare for 0.16.1 release
2020-03-11 16:00:21 -07:00
losfair
6c7f49a223
Put fat DynamicFunc
s 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
Mark McCaskey
ac3d9a37ae
Update some dependencies manually, removing duplicate deps
2020-03-11 11:52:43 -07: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
Mark McCaskey
d7d5f5b894
Prepare for 0.16.0 release
2020-03-11 11:15:07 -07:00
Heyang Zhou
e521dfe8c1
Fix typo (2)
...
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-03-10 12:38:55 +08:00
Heyang Zhou
cfbcd886d0
Fix typo (1)
...
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-03-10 12:38:39 +08:00
losfair
7d2d89b606
Resolve review comments.
2020-03-10 12:28:54 +08:00