Ivan Enderlin
8d8a5f6d5a
Merge branch 'master' into feat-runtime-core-cleanup-typed-func
2020-02-17 20:33:35 +01:00
losfair
ed826cb389
Cleanup various FIXMEs and remove protect_unix.
2020-02-18 02:35:19 +08:00
Ivan Enderlin
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
Ivan Enderlin
ad77803243
fix(runtime-core) Rename ExternalFunction
to HostFunction
.
2020-02-17 16:02:23 +01:00
Ivan Enderlin
533609ff70
chore(runtime-core) Move one statement to be closer to the definition.
2020-02-17 16:01:01 +01:00
Syrus Akbary
a21cf6d4c3
Added link to a custom ABI example repo
...
https://github.com/wasmerio/wasmer-rust-customabi-example
2020-02-16 12:48:20 -08:00
Mark McCaskey
23275d07f6
Improve clif verifier error message
2020-02-14 11:45:11 -08:00
Mark McCaskey
5e3147db08
Enable clif verifier in debug mode, fix issue with verifier
2020-02-14 11:32:49 -08:00
Ivan Enderlin
0c4c9107d5
fix(interface-types) Remove a dbg!
macro.
2020-02-14 12:19:29 +01:00
Mark McCaskey
c8e3a0925b
Merge branch 'master' into feature/changed-memory-view
2020-02-13 16:04:43 -08:00
Syrus Akbary
7a45bd8a39
Merge branch 'master' into fix/isatty
2020-02-13 10:42:09 -08:00
Syrus
61c85b3fbf
Improved fd_write debugging
2020-02-13 10:35:48 -08:00
Syrus
c287170166
Fixed wasi isatty tests when being generated
2020-02-13 10:33:27 -08:00
Ivan Enderlin
c697e6812f
Merge branch 'master' into feat-interface-types
2020-02-13 14:40:46 +01:00
Ivan Enderlin
7f8d9165d4
fix(interface-types) Clean up cargo features.
2020-02-13 14:38:05 +01:00
Ivan Enderlin
eb2f9db230
feat(interface-types) Forbids unsafe code.
2020-02-13 14:36:17 +01:00
Ivan Enderlin
9559747394
doc(interface-types) Add #[deny(missing_docs)]
.
2020-02-13 14:34:45 +01:00
Ivan Enderlin
ae6e26158f
chore(interface-types) Simplify code.
2020-02-13 14:26:50 +01:00
Ivan Enderlin
6891517c8b
chore(encoders) Changing unimplemented!()
to todo!()
.
2020-02-13 14:24:07 +01:00
Ivan Enderlin
13cee90d17
feat(encoders) Implement ToString
instead of From<…> for String
.
2020-02-13 14:19:31 +01:00
Ivan Enderlin
722727bd56
chore(decoders) Simplify code.
2020-02-13 13:56:30 +01:00
Ivan Enderlin
d8f923091f
chore(decoders) Simplify code.
2020-02-13 13:54:26 +01:00
Ivan Enderlin
3f0c32bf44
fix(decoders) Remove the unsafe
block in the string
parser.
...
Instead of using `str::from_utf8_unchecked`, this patch updates the
code to use `str::from_utf8` and handles the error appropriately.
2020-02-13 13:52:23 +01:00
Ivan Enderlin
370fd6d866
feat(decoders) Improve LEB parser in the binary
module.
...
The LEB parser is renamed `uleb`. It now checks for overflow, and
badly-formed bits, resp. `TooLarge` or `Eof`. More test cases are
added, whose from the DWARF 4 standard.
2020-02-13 13:36:18 +01:00
Ivan Enderlin
1ad42d81cb
doc(interface-types) Improve documentation of decoders::binary::leb
.
2020-02-13 11:41:02 +01:00
Ivan Enderlin
b7941f4019
feat(interface-types) Ensure ast::Type
is always well-formed.
...
As @MarkMcCaskey noted, `Type` can be corrupted because `field_names`
and `field_types` must have the same length. This patch removes the
public visibility, and adds methods like `new`, `add_field`,
`field_names` and `field_types` to encapsulate `Type` internal data.
2020-02-13 11:24:29 +01:00
Syrus
62e1526037
Fixed WASI isatty
2020-02-12 23:00:30 -08:00
Ivan Enderlin
13b9cb3995
doc(interface-types) Improve the documentation of the interpreter
module.
2020-02-12 17:37:06 +01:00
Ivan Enderlin
6b0e43b7c4
doc(interface-types) Improve the documentation of the instruction
module.
2020-02-12 16:01:33 +01:00
Ivan Enderlin
b3c102da37
doc(interface-types) Improve documentation of the instruction
module.
...
Also, rename `RepeatWhile` to `RepeatUntil`.
2020-02-12 15:59:41 +01:00
Ivan Enderlin
98c73099c3
doc(interface-types) Improve documentation of the macros
module.
2020-02-12 15:52:15 +01:00
Mark McCaskey
93dcb63348
Maybe improve safety of MemoryView Deref
2020-02-11 14:13:25 -08:00
bors[bot]
f2d9a49e3f
Merge #1208
...
1208: Fix trap handling bug on Windows and add test r=MarkMcCaskey a=MarkMcCaskey
Resolves #1204
# Review
- [ ] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-02-11 21:54:49 +00:00
Mark McCaskey
132645e0d0
Fix trap handling bug on Windows and add test
2020-02-11 13:24:26 -08:00
losfair
c6861d1827
Merge remote-tracking branch 'origin/master' into fix/singlepass-indirect-call
2020-02-12 02:55:48 +08:00
losfair
01e570d60a
Add test for PR 1191.
2020-02-12 02:54:27 +08:00
losfair
5ca6c22cbf
Merge remote-tracking branch 'origin/master' into fix/singlepass-indirect-call
2020-02-12 02:28:25 +08:00
losfair
3999728e39
Merge remote-tracking branch 'origin/master' into feature/remove-wasm-trap-info
2020-02-12 02:14:30 +08:00
losfair
2071a4bddf
Fix LLVM invoke_trampoline.
2020-02-12 02:14:07 +08:00
Syrus Akbary
97328b3af7
Fixed typo
2020-02-10 13:24:11 -08:00
bors[bot]
9d80584c97
Merge #1202
...
1202: doc(runtime-c-api) Improve documentation of the `memory` module r=syrusakbary a=Hywan
Address https://github.com/wasmerio/wasmer/issues/1203 .
As part of the daily doc routine, this patch improves the documentation of `memory` module.
This patch also handles more null pointers.
Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-02-10 19:55:02 +00:00
losfair
cc4b512bde
Fix clif trap code conversions.
2020-02-11 03:16:56 +08:00
losfair
b40edd4512
Fix failures on test compilation.
2020-02-11 03:03:05 +08:00
losfair
e17d8f20b8
Merge remote-tracking branch 'origin/master' into feature/remove-wasm-trap-info
2020-02-11 02:52:14 +08:00
Ivan Enderlin
c5b963b81b
doc(interface-types) Improve documentation of the wat
module.
2020-02-10 17:12:32 +01:00
Ivan Enderlin
55ae0e474e
doc(interface-types) Add a doctest for decoders::binary::parse
.
2020-02-10 16:48:25 +01:00
Ivan Enderlin
98fb0697d1
test(interface-types) Test the parse
parser.
2020-02-10 16:39:34 +01:00
Ivan Enderlin
9fda6f9451
doc(interface-types) Improve documentation of the binary
module.
2020-02-10 16:39:06 +01:00
Ivan Enderlin
2fc1fbb7ec
doc(interface-types) Improve documentation of the ast
module.
2020-02-10 15:44:28 +01:00
Ivan Enderlin
d667cb8e2f
doc(interface-types) Improve documentation of the ast
module.
2020-02-10 15:41:41 +01:00