losfair
5d26d92d9b
Add switch to turn on/off NaN canonicalization.
2020-03-16 23:40:02 +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
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
losfair
7e2ede3960
Fix floating point return values.
2020-03-10 03:16:22 +08:00
losfair
65962f0186
Add a translation layer before import call in singlepass.
2020-03-10 02:46:13 +08:00
losfair
3ff3554345
Merge remote-tracking branch 'origin/master' into fix/fpcc-workaround
2020-03-10 01:29:15 +08:00
Mark McCaskey
f8d34e0b57
Add WasmPtr access edge case test
2020-03-05 15:08:09 -08:00
Mark McCaskey
eb4c1bdace
Prevent 0 length utf8 strings from WasmPtr too
2020-03-05 13:31:37 -08:00
Mark McCaskey
1c6424a754
Fix WasmPtr to work with accesses accessing the final valid byte
...
This also returns `None` for all accesses of zero sized types and
arrays of length 0. Because the array accesses have a non-inclusive
length, length of 0 is not valid. These checks prevent returning
empty slices that point just outside of memory bounds.
2020-03-05 13:23:50 -08:00
losfair
e62095da5d
runtime-core: Move ArgumentRegisterAllocator into state
.
2020-03-06 00:37:48 +08:00
losfair
a5de17fb18
runtime-core: Correctly allocate floating point registers for trampolines.
2020-03-05 22:49:58 +08:00
Mark McCaskey
c295adbaa8
Prepare for 0.15.0 release
2020-03-04 12:26:19 -08:00
Mark McCaskey
4a6c96382d
Update wording of doc comment from feedback
2020-03-03 17:04:52 -08:00
Mark McCaskey
469e43312a
Improve WasmPtr
documentation
2020-03-03 16:16:29 -08:00
losfair
f499dea0a7
Merge remote-tracking branch 'origin/master' into feature/polymorphic-v2
2020-03-04 01:56:52 +08:00
losfair
d9e744d9dc
Resolve review comments.
2020-03-04 01:56:48 +08:00
Nick Lewycky
d5581331a2
Fix our side of wasmparser typo.
2020-03-02 11:16:21 -08:00
losfair
d443ad8d40
Remove outdated comment.
2020-02-29 11:15:09 +08:00
losfair
4012645aee
Fix CodeMemory
doc comments.
2020-02-29 11:13:34 +08:00
losfair
2ddf9ad4c8
Disallow "fat" closures.
2020-02-28 22:16:29 +08:00
losfair
6516243e8a
Merge remote-tracking branch 'origin/master' into feature/polymorphic-v2
2020-02-28 11:54:13 +08:00
losfair
31a72e59fb
Rename ErasedFunc to DynamicFunc and fix leaky PolymorphicContext
.
2020-02-28 11:41:36 +08:00
Mark McCaskey
91808b9df2
Update test-rest to explicitly test each crate
2020-02-27 14:22:26 -08:00
losfair
32915f0077
Merge remote-tracking branch 'origin/master' into feature/polymorphic-v2
2020-02-27 23:49:10 +08:00
Mark McCaskey
0593965459
Make gdb jit symbol weak linking default in llvm-backend features
2020-02-26 19:41:53 -08:00
Mark McCaskey
b5cbb9df60
Fix test and build for musl
2020-02-26 19:07:30 -08:00
Mark McCaskey
dbb2ececf8
Work around unstable linkage attribute
2020-02-26 18:32:40 -08:00
Mark McCaskey
a089cf5a0c
Link GDB JIT exposed global and fn as "linkonce"
...
This is required because LLVM exposes its own
2020-02-26 18:05:24 -08:00
Mark McCaskey
3691c80b7d
Add generate_debug_info field to test
2020-02-26 17:29:18 -08:00
Mark McCaskey
56e47c17b0
Revert Wasm parsing to improved old style, fixing singlepass
2020-02-26 16:35:25 -08:00
Mark McCaskey
cb20cd9b2d
Merge branch 'master' into feature/debug-prototype2
2020-02-26 14:39:02 -08:00
Mark McCaskey
a8b4f2a1e4
Update clif option string, fix table parsing to match AnyFunc
2020-02-26 13:25:41 -08:00
Mark McCaskey
21fd95d760
Update wasmparser to 0.51.3 and clif forks to 0.59
2020-02-26 12:51:56 -08:00
losfair
eb89720d5a
Merge remote-tracking branch 'origin/feature/polymorphic-v2' into feature/polymorphic-v2
2020-02-26 17:09:10 +08:00
losfair
b0877b26e5
Add safety notice for TrampolineBufferBuilder::remove_global
.
2020-02-26 17:07:56 +08:00
Heyang Zhou
a438a644b6
fold() -> sum()
...
Co-Authored-By: Ivan Enderlin <ivan.enderlin@wanadoo.fr>
2020-02-26 17:01:36 +08:00
Heyang Zhou
292e42addc
Update lib/runtime-core/src/typed_func.rs
...
Co-Authored-By: Ivan Enderlin <ivan.enderlin@wanadoo.fr>
2020-02-26 17:01:16 +08:00
losfair
262d431b49
Remove unneeded allow(dead_code).
2020-02-26 16:59:31 +08:00