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 DynamicFunc
s behind a feature flag.
2020-03-12 03:14:57 +08:00
Mark McCaskey
aaab59f69c
Update deps in llvm and singlepass too
2020-03-11 12:00:36 -07: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
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
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
Ivan Enderlin
7d6bc577b7
feat(interface-types) Reformat the instructions.
2020-03-10 17:49:35 +01:00
Ivan Enderlin
f0c97a1b81
feat(interface-types) Use better errors.
...
The new `errors` module contains structure to represent errors,
instead of using basic strings. The first usage is in the interpreter
itself.
2020-03-10 17:49:35 +01:00
Syrus Akbary
ea641495f8
Merge pull request #1284 from Hywan/feat-interface-types-instructions-string-and-memory
...
feat(interface-types) Implement string and memory instructions
2020-03-10 09:48:25 -07:00
Ivan Enderlin
58c3b3489a
doc(changelog) Add #1284 .
2020-03-10 16:00:05 +01:00
Ivan Enderlin
c1e40f165e
fix: Revert a file that wasn't a commit candidate.
2020-03-10 15:58:27 +01:00
Ivan Enderlin
52312ff0ad
feat(interface-types) Remove the 'input
lifetime on Instruction
.
2020-03-10 10:37:09 +01:00
Ivan Enderlin
717914f82b
Merge branch 'master' into feat-interface-types-instructions-string-and-memory
2020-03-10 10:33:56 +01:00
Ivan Enderlin
e9de8f9999
feat(interface-types) write-utf8
is renamed string-to-memory
.
2020-03-10 10:27:17 +01:00
Ivan Enderlin
1b0bda82dd
feat(interface-types) Rename write-utf8
to string-to-memory
.
2020-03-10 10:25:58 +01: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
3e63f1aaa9
Deprecate wasmer_trampoline_buffer_builder_add_callinfo_trampoline.
2020-03-10 12:37:40 +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
fc114ac671
Merge remote-tracking branch 'Hywan/test-runtime-core-polymorphic-host-functions' into fix/fpcc-workaround
2020-03-10 02:47:00 +08:00
losfair
65962f0186
Add a translation layer before import call in singlepass.
2020-03-10 02:46:13 +08:00
losfair
79613e42d7
Prettier format panic message in spectest.
2020-03-10 02:45:31 +08:00
bors[bot]
674d18ed66
Merge #1281
...
1281: feat(interface-types) Rename `call` to `call-core`, and remove `call-export` r=syrusakbary a=Hywan
The latest standard removes `call-export` and has a single `call-core` instruction.
Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-03-09 18:03:28 +00:00
Syrus Akbary
50e5b78a6a
Merge pull request #1282 from Hywan/doc-interface-types-list-instructions
...
doc(interface-types) Improve the `README.md`
2020-03-09 10:41:16 -07:00
losfair
3ff3554345
Merge remote-tracking branch 'origin/master' into fix/fpcc-workaround
2020-03-10 01:29:15 +08:00
Ivan Enderlin
39d491e465
feat(interface-types) read-utf8
is renamed memory-to-string
.
2020-03-09 15:06:35 +01:00