Commit Graph

3148 Commits

Author SHA1 Message Date
Ivan Enderlin
0b19e2f90e feat(interface-types) Move to its own repository.
New repository is https://github.com/wasmerio/interface-types.
2020-05-12 17:31:26 +02:00
Mark McCaskey
11afbb050c
Merge branch 'master' into fix/issues-found-while-releasing-0.17.0 2020-05-11 14:54:29 -07:00
Mark McCaskey
3c15336a8e Post release fixup
These were things missing from the release that I had to add to ship 0.17.0
2020-05-11 14:09:00 -07:00
Mark McCaskey
6d01b7f891 Prepare for 0.17.0 release 2020-05-11 13:48:41 -07:00
losfair
6790702901 Add comment to explain the change to I64ExtendI32U. 2020-05-12 03:03:39 +08:00
losfair
51e085a7ba Garbage in upper 32 bits shouldn't propagate to I64ExtendI32U's result. 2020-05-12 02:11:43 +08:00
vms
c3e9e36782 make func clonable 2020-05-02 12:28:00 +03:00
Ivan Enderlin
3feaa7fd3f
Merge branch 'master' into fix/doc-comment-runtimeerror 2020-04-30 09:47:56 +02:00
Mark McCaskey
579d4564eb Update doc comment for RuntimeError 2020-04-29 13:46:57 -07:00
vms
c4fd02aec7 fix clippy warning 2020-04-29 23:46:34 +03:00
vms
abed2c238a some minor improvements 2020-04-29 23:15:38 +03:00
Heyang Zhou
7bfa7723a6
Fix typo in comment.
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-04-30 00:26:30 +08:00
losfair
b2ecf8a06c Use RCX instead of R10 as temp register in sysv call location. 2020-04-30 00:04:44 +08:00
bors[bot]
d23a3f3d1c
Merge #1401
1401: Make runtime and trap errors well defined r=syrusakbary a=MarkMcCaskey

Resolves #1328 

This PR goes through and gives explicit types for all the errors instead of using `Box<dyn Any + Send>` where possible.  This gives users better insight into what the specific errors are and should help with debugging in the case of mistakes in our code.

The remaining uses of `Box<dyn Any>` are due to the structure of our dependency graph -- this is probably solvable but it seems fine as is as all error types are now explicit and the remaining `Box<dyn Any>`s are either fully user controlled or not for end-user consumption.

# Review

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


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-04-28 22:21:13 +00:00
Mark McCaskey
9c5fdd6f69 Address feedback, cleanup, fix memory leak in LLVM-backend 2020-04-28 11:36:01 -07:00
Ivan Enderlin
5c2db568ed feat(runtime-core) Implement ImportObjectIterator::size_hint. 2020-04-28 16:32:20 +02:00
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