3132 Commits

Author SHA1 Message Date
Mark McCaskey
74ddc8e0c8 Add docs; fix misc bugs 2020-04-27 14:59:43 -07:00
Mark McCaskey
cffdb387f7 Fix new RuntimeError integration with the LLVM-backend 2020-04-27 12:55:58 -07:00
Mark McCaskey
2bbe3406cf Debugging LLVM trap code WIP 2020-04-26 12:52:58 -07:00
Mark McCaskey
89af5dc107 Fix new RuntimeError implementation for the Singlepass backend 2020-04-26 12:05:12 -07:00
Mark McCaskey
9723270f96 Fix tests for the Cranelift backend 2020-04-24 14:55:30 -07:00
Mark McCaskey
b9ec8f9845 Define runtime error values explicitly in Singlepass 2020-04-24 13:21:45 -07:00
Mark McCaskey
bfb6814f23 Make runtime and trap errors well defined (WIP) 2020-04-23 12:40:35 -07:00
bors[bot]
ab106af422
Merge #1358
1358: Update C API to use new API r=MarkMcCaskey a=MarkMcCaskey



# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-04-21 20:12:46 +00:00
Amir Keshavarz
4ce6280a13
Correct ctx data variable name in comment 2020-04-21 08:47:14 +04:30
Amir Keshavarz
29babb7be2
Correct the backend name 2020-04-20 21:16:53 +04:30
Nick Lewycky
452dbb814b Fix underflow in subtraction on global.get with float-type global. 2020-04-16 17:50:16 -07:00
Syrus
e714f55189 Fixed dereference error 2020-04-16 16:21:09 -07:00
Syrus
11a0ab08d4 Fixed lint issue 2020-04-16 15:31:55 -07:00
Mark McCaskey
ce6211579f Conditionally compile default_compiler and related functions 2020-04-16 14:44:59 -07:00
Syrus
f222658dcb Added DynamicFunc::new method for non x86 architectures 2020-04-16 12:53:17 -07:00
Syrus
51ed488b49 Added comments on features 2020-04-16 12:45:34 -07:00
Syrus
6904961325 Ignore basic test as it doesn’t run in Aarch64 2020-04-16 12:42:21 -07:00
Syrus
4e489a1bde Moved tests from runtime to high_level_api 2020-04-16 12:34:54 -07:00
Syrus
595f5bb472 Moved cache testing to the general tests 2020-04-16 12:22:28 -07:00
Syrus
b301ac85be Improved tests to use available compilers 2020-04-16 11:52:29 -07:00
Syrus
8369431b34 Removed unneeded parenthesis on ARM 2020-04-15 18:37:47 -07:00
Syrus
21f7baec99 Fixed lints 2020-04-15 18:29:53 -07:00
Syrus
bb3c1a6e19 Fixed suggestions 2020-04-15 18:29:53 -07:00
Syrus
ce14c6c079 Second part of the refactor 2020-04-15 16:31:05 -07:00
Syrus
a7dba54b7f Improved test generation 2020-04-14 11:41:12 -07:00
Mark McCaskey
4f23ed7f20 Readjust where things are exported in the new API 2020-04-10 12:12:36 -07:00
bors[bot]
6661ca73a6
Merge #1370
1370: feat(interface-types) Crate reorganization r=Hywan a=Hywan

This PR re-organizes the crate:

* `interpreter/wasm/values.rs` moves to `values.rs`,
* `interpreter/wasm/serde/*` moves to `serde/*`,
* `types.rs` is new, and includes `InterfaceType` and `RecordType`,
* Update the documentation.

Bonus: `InterfaceValue::Record`  now takes a `Vec1` rather than a `Vec` to match `InterfaceType::Record`.

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-04-10 08:24:23 +00:00
Mark McCaskey
bf09dc5e67
Merge branch 'master' into feature/update-capi-to-use-new-api 2020-04-09 17:40:29 -07:00
bors[bot]
da1e963c52
Merge #1371
1371: Update tests to use new API where easily possible r=MarkMcCaskey a=MarkMcCaskey

The primary thing that wasn't updated yet is the compile and compile_with... functions.


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-04-09 22:56:57 +00:00
Mark McCaskey
5c09fedcd3 Remove all uses of wasmer_runtime from tests 2020-04-09 15:50:35 -07:00
Mark McCaskey
c9460e3a03 Migrate tests away from using runtime and runtime_core 2020-04-09 14:37:21 -07:00
Mark McCaskey
a149c9aaeb Update tests to use new API where easily possible 2020-04-09 12:51:18 -07:00
Ivan Enderlin
3e9c3a1694 doc(interface-types) Update the module documentation. 2020-04-09 12:16:57 +02:00
Ivan Enderlin
4c2fb953a4 feat(interface-types) InterfaceValue::Record now takes a Vec1.
It matches the definition of `InterfaceType::Record`.
2020-04-09 12:10:48 +02:00
Ivan Enderlin
700c290e55 feat(interface-types) Move the values and serde modules to the root of the crate. 2020-04-09 11:23:26 +02:00
Ivan Enderlin
e4b05d0b00 feat(interface-types) Remove the re-export of InterfaceType in values. 2020-04-09 10:54:09 +02:00
Ivan Enderlin
f955617d17 feat(interface-types) Extract InterfaceType and RecordType into its own types module. 2020-04-09 10:48:50 +02:00
bors[bot]
ad6f939e85
Merge #1362
1362: feat(interface-types) Remove allocator index from `string.lower_memory` r=Hywan a=Hywan

This PR updates `string.lower_memory` to remove the allocator index. Indeed, the string pointer is assumed to be present on the stack.
Also, this PR updates `string.size` to pop, and not to peek, the string to compute the length from.

That way, it matches the WIT proposal.

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-04-09 08:05:50 +00:00
Mark McCaskey
23bc0fd720 Fix kernel-net check, fix misc warnings
Split out nightly check step
2020-04-08 17:05:25 -07:00
Mark McCaskey
b72000a2d6 Update emscripten in C API to use new API crate 2020-04-08 16:40:41 -07:00
Mark McCaskey
4d58ae2d14 Fix issue with kernel-net; add it to CI 2020-04-08 15:18:04 -07:00
Mark McCaskey
9e8d08a771
Merge branch 'master' into feature/dev-utils-in-tests 2020-04-08 12:15:22 -07:00
Mark McCaskey
3d4ed92466 Move dev-utils crate into tests 2020-04-08 11:59:47 -07:00
bors[bot]
45c412e8dd
Merge #1363
1363: fix(interface-types) Don't duplicate code in the binary encoder. r=MarkMcCaskey a=Hywan

Use the `ToBytes` implementation of `RecordType` to encode the inner
record type of a type, so that it avoids code duplication.

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-04-08 18:48:49 +00:00
Mark McCaskey
db76aea198 Remove more uses of wasmer_runtime_core from the C API 2020-04-07 17:28:23 -07:00
Ivan Enderlin
4eae19ccc7 fix(interface-types) Don't duplicate code in the binary encoder.
Use the `ToBytes` implementation of `RecordType` to encode the inner
record type of a type, so that it avoids code duplication.
2020-04-07 14:29:57 +02:00
Ivan Enderlin
1687744ec9 feat(interface-types) string.size pops the string.
Previously, `string.size` was just peeking the string.
2020-04-07 12:40:14 +02:00
Ivan Enderlin
bfa5821d98 test(interface-types) Update the test_executable_instruction macro.
It provides a better failure message.
2020-04-07 12:34:30 +02:00
Ivan Enderlin
2fffee32a5 fix(interface-types) Remove allocator index from string.lower_memory. 2020-04-07 12:34:07 +02:00
Ivan Enderlin
c0623b0f8c doc(interface-types) Add record instructions. 2020-04-07 11:58:13 +02:00