a0ea1af71f
Remove pub(self).
2020-02-26 16:54:33 +08:00
96d9e39913
Specify imports instead of using a *
.
2020-02-26 13:40:02 +08:00
40d823e298
Merge remote-tracking branch 'origin/master' into feature/polymorphic-v2
2020-02-26 01:45:18 +08:00
80f824e708
Auto-release trampolines.
2020-02-26 01:45:11 +08:00
b7c9c1843a
Add dynamic executable memory allocation & tests to trampolines.
2020-02-26 01:44:50 +08:00
ce21910077
Prepare for 0.14.1 release
...
0.14.1 differs from 0.14.0 primarily in that the GNU/Linux build is
built on Ubuntu 16.04 instead of 18.04, meaning we'll use an earlier
version of GLIBC.
2020-02-24 13:20:12 -08:00
b67acbc0e3
Add ErasedFunc
for type-erased functions.
2020-02-25 01:19:19 +08:00
2020901d75
Merge remote-tracking branch 'origin/master' into feature/polymorphic-v2
2020-02-25 00:56:46 +08:00
1e52d4b9b2
doc(readme) Fix logo.
2020-02-21 13:39:43 +01:00
1374bf0806
Prepare for 0.14.0 release
2020-02-20 13:15:29 -08:00
e9333c5790
Merge branch 'master' into feat-runtime-core-value-try-from
2020-02-18 10:01:03 +01:00
abd44e9fba
Merge branch 'master' into feat-runtime-core-cleanup-typed-func
2020-02-17 13:00:13 -08:00
8d31f0b7e9
Merge branch 'master' into feat-runtime-core-wasm-extern-type-macros
2020-02-17 20:57:27 +01:00
9013d52ea4
doc(runtime-core) Hide some traits and structs in the documentation.
...
Those are not necessary for the user. It's only internal
implementation, that must be public because it ends up in public
types, but the compiler infers everything automatically.
2020-02-17 16:03:54 +01:00
ad77803243
fix(runtime-core) Rename ExternalFunction
to HostFunction
.
2020-02-17 16:02:23 +01:00
533609ff70
chore(runtime-core) Move one statement to be closer to the definition.
2020-02-17 16:01:01 +01:00
2ee1e80f3b
feat(runtime-core) Allow dynamic signature for polymorphic host functions.
...
This patch adds a new field in `Func`: `signature`. It contains the
signature of the host function.
For non-polymorphic host functions, the signature is computed from the
`Args` and `Rets` implementation parameters at compile-time.
For polymorphic host functions though, to be fully dynamic, the
signature given to `new_polymorphic` is used in `Func` as the correct
signature.
2020-02-17 15:50:12 +01:00
ad20a008e0
fix(runtime-core) Use explicit dyn
for trait objects.
2020-02-17 15:30:25 +01:00
ff154999f3
fix(runtime-core) Remove warnings.
...
Because we can use the `impl_traits!` macro with only one identifier,
a warning is emitted saying the parenthesis are useless for this
specific usecase. They are required for all the other usecases
though. We can safely ignore this warning.
2020-02-17 15:20:21 +01:00
1d1ffcc10a
feat(runtime-core) Implement TryFrom<native_type>
for Value
.
2020-02-17 14:56:43 +01:00
9088f6b9e2
feat(runtime-core) Simplify WasmExternType
implementations with macros.
2020-02-17 14:53:09 +01:00
5f4561e5ef
Fix compilation error on Aarch64.
2020-02-16 00:28:43 +08:00
12373bb872
Func::new_polymorphic
2020-02-15 01:31:49 +08:00
2fe6e6f039
Global trampoline buffer.
2020-02-15 01:31:33 +08:00
93dcb63348
Maybe improve safety of MemoryView Deref
2020-02-11 14:13:25 -08:00
e17d8f20b8
Merge remote-tracking branch 'origin/master' into feature/remove-wasm-trap-info
2020-02-11 02:52:14 +08:00
073d342f01
Fix typo in comment.
2020-02-07 12:16:16 -08:00
e0aafbe9dd
Remove WasmTrapInfo
and passExceptionCode
in the generic Box<Any>
container.
2020-02-06 23:49:50 +08:00
2c44b700c8
Merge #1183
...
1183: Make full preemption an optional feature. r=syrusakbary a=losfair
Full preemption requires two additional memory loads on loop backedges and function calls. This PR allows disabling full preemption at code generation time, and disables it by default.
Co-authored-by: losfair <zhy20000919@hotmail.com >
Co-authored-by: Heyang Zhou <zhy20000919@hotmail.com >
2020-02-05 01:05:04 +00:00
d2fc5c8013
Cargo fmt
2020-02-05 00:45:24 +08:00
d3f2cf594a
Fix comments.
2020-02-05 00:44:59 +08:00
fe5ed7b27a
Improve comment for memory_bound_check_mode
.
...
Co-Authored-By: nlewycky <nick@wasmer.io >
2020-02-05 00:35:15 +08:00
5a795d560e
Fix a couple typos in comments.
2020-02-03 12:41:57 -08:00
bb79df7e69
Merge remote-tracking branch 'origin/master' into feature/optional-full-preemption
2020-02-04 01:58:53 +08:00
929825cba1
Improve some docs and misc code segments
2020-01-31 15:42:18 -08:00
455783aa21
Make full preemption an optional feature.
2020-02-01 01:12:06 +08:00
fcbdada259
Port to FreeBSD
2020-01-28 21:49:55 +01:00
fb15aa003e
Cargo fmt
2020-01-29 00:43:24 +08:00
8845e1104b
Fix musl compatibility issues.
2020-01-29 00:38:39 +08:00
0a02f3bb97
Clean up misc. bits of runtime-core
2020-01-24 15:31:52 -08:00
2c45106ae0
Share some more code in runtime-core::sys
2020-01-22 13:34:50 -08:00
f1db4aec1d
Merge branch 'master' into fix/imported-functions-must-be-send
2020-01-21 09:47:46 -08:00
0d2d4369aa
Fixed lint issue
2020-01-20 14:15:02 -08:00
5293bad793
Merge branch 'master' into blake3
2020-01-20 14:13:27 -08:00
74eb11352a
Merge remote-tracking branch 'origin/master' into feature/unified-exceptions
2020-01-21 01:10:40 +08:00
5931944a21
Add clippy error checking in lint step
2020-01-17 15:47:45 -08:00
8c760da83a
Require that imported functions must be Send
2020-01-17 15:14:11 -08:00
c187d1656e
Add misc doc improvements to runtime-core
2020-01-17 14:31:10 -08:00
1b682bf353
Delete runtime-core::mono_vec
2020-01-17 14:31:00 -08:00
0cbcc0aff6
Document runtime-core::vmcalls functions
2020-01-16 17:02:40 -08:00