Commit Graph

389 Commits

Author SHA1 Message Date
Syrus
2387ec07b6 Upgrade dependencies 2020-10-29 22:59:48 -07:00
Syrus
e6d8ee51eb Fixed tests 2020-10-29 21:46:51 -07:00
Syrus
9bd2c47730 Upgraded Cranelift to 0.67 2020-10-29 20:19:16 -07:00
Nick Lewycky
61abc72c9d NFC. Make FunctionBodyPtr hold a const pointer. 2020-10-29 15:18:42 -07:00
Mark McCaskey
78f958b52c Clean up misc code 2020-10-29 13:07:04 -07:00
Mark McCaskey
83008a7771 Fix up error handling code, get tests passing 2020-10-29 11:13:51 -07:00
Mark McCaskey
be3ab95688 Add error handling to host init logic 2020-10-28 17:39:37 -07:00
Mark McCaskey
5b67b2f3dc Merge branch 'master' into feature/host-env-prototype 2020-10-27 16:24:00 -07:00
Mark McCaskey
adc40aeae3 Merge branch 'master' into feature/add-table-example 2020-10-27 11:57:08 -07:00
Mark McCaskey
cfa87b272d Add misc changes, update from feedback 2020-10-26 14:56:02 -07:00
Mark McCaskey
67e53dd6d6 Clean up from feedback 2020-10-22 12:36:57 -07:00
Mark McCaskey
1b7188769c Remove VMContext port to union, split into #1753 2020-10-22 12:00:44 -07:00
Mark McCaskey
b124ea2032 Use a union for VMContext for functions
This makes the code more self documenting and correctly uses `unsafe`
to communicate that it's the user's responsibility to ensure that the
code paths that can lead to the access can only write the value they
expect to be there.
2020-10-22 11:46:42 -07:00
Mark McCaskey
729a044c75 Add misc updates from feedback 2020-10-21 16:34:27 -07:00
Mark McCaskey
011ec22d43 Merge branch 'master' into feature/host-env-prototype 2020-10-20 15:46:50 -07:00
Mark McCaskey
ed1202181e Clean up code a bit 2020-10-20 12:21:16 -07:00
Nick Lewycky
f55121c1dc Merge branch 'master' into feature/trampoline-in-artifact 2020-10-20 11:11:49 -07:00
Nick Lewycky
29c9cb1471 Rename trampoline to call_trampoline, part 2. 2020-10-20 11:11:32 -07:00
nlewycky
ae5fc2a8fd Rename trampoline to call_trampoline, part 1.
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-10-20 11:02:58 -07:00
Mark McCaskey
3c7dfe29f3 Add hacked together vertical slice of host env updating idea 2020-10-19 17:19:46 -07:00
Mark McCaskey
c5b6d9fa8f Abstract over metadata ownership in Memory/Table fn impls 2020-10-19 15:07:34 -07:00
Mark McCaskey
1ee99d394c Address feedback and fix small issue with cfg logic 2020-10-16 17:38:59 -07:00
Mark McCaskey
a423cf31e1 Fix bugs in object file engine 2020-10-15 17:48:42 -07:00
Mark McCaskey
9fdbb0886c Split memory, table creation. Mark unsafe functions unsafe 2020-10-15 15:42:54 -07:00
Mark McCaskey
de79a408ee Merge branch 'master' into feature/add-table-example 2020-10-14 16:31:25 -07:00
Mark McCaskey
49fe1734b3 Fix local table ownership issue 2020-10-14 16:12:35 -07:00
Mark McCaskey
4fc8ace118 Fix local memory ownership issue -- WIP
This commit contains a ton of debug code that we'll need to remove
2020-10-14 15:15:50 -07:00
nlewycky
ed630bf982 Merge branch 'master' into feature/trampoline-in-artifact 2020-10-14 01:02:11 -07:00
Syrus
4f0128f494 Merge branch 'master' of https://github.com/wasmerio/wasmer 2020-10-13 18:29:17 -07:00
Syrus
c97c70558d Fixed broken intra docs attrs 2020-10-13 18:27:29 -07:00
Nick Lewycky
8350c7b349 Comment ends in a full stop. 2020-10-12 17:23:42 -07:00
nlewycky
6ede21c173 Update lib/vm/src/export.rs
Correct a comment.

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-10-12 17:22:59 -07:00
Nick Lewycky
d69617112a Merge branch 'master' into feature/trampoline-in-artifact 2020-10-09 10:43:57 -07:00
Nick Lewycky
63815020d0 Use copy instead of clone.
https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
2020-10-08 19:59:05 -07:00
Nick Lewycky
628b5ea1ba Use copy instead of clone.
https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
2020-10-08 19:58:05 -07:00
Nick Lewycky
2a52e1f1b8 Simplify this code using ok_or instead of ok_or_else.
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
2020-10-08 19:55:00 -07:00
Nick Lewycky
804204dfdb Use copy instead of clone.
https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
2020-10-08 19:52:41 -07:00
Nick Lewycky
6ffbbb7500 Use copy instead of clone.
https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
2020-10-08 19:51:39 -07:00
Nick Lewycky
9793d4568a Merge branch 'master' into feature/trampoline-in-artifact 2020-10-08 19:04:28 -07:00
Mark McCaskey
61c88be863 Prepare for 1.0.0-alpha4 release 2020-10-08 16:47:14 -07:00
Nick Lewycky
5d147f8236 WIP checkpoint. Code that builds.
Use Option<VMTrampoline> which should be ffi-compatible.

Put the register_signature and lookup_signature functions back on the Engine.
2020-10-08 15:09:37 -07:00
Nick Lewycky
e05e0ef2b4 Add a 'trampoline' field to ExportFunction.
Work in progress.
2020-10-07 17:01:56 -07:00
Mark McCaskey
ab153fc642 Improve error messages around memory creation 2020-10-05 15:45:52 -07:00
Nick Lewycky
a593c889da Stack probes are not ordinary functions. 2020-10-02 15:26:11 -07:00
Mark McCaskey
a97f339687 Make Function Env immutable
Work in progress, we still have to update Emscripten
2020-09-30 17:30:17 -07:00
nlewycky
4c25ac315b SignatureRegistry is in Engine, not Compiler. 2020-09-30 12:06:47 -07:00
Nick Lewycky
ab72302923 Handle zero-size mmap in target = windows as we do for target != windows.
Remove dbg!() statements.
2020-09-16 18:34:49 -07:00
Nick Lewycky
ad8aceacb9 Add debugging info to help with the failure on Windows CI. 2020-09-16 17:53:30 -07:00
nlewycky
674fd19514 Merge branch 'master' into feature/engine-jit-one-mmap 2020-09-16 13:13:15 -07:00
Nick Lewycky
c6bec2f23a In engine-jit, load code for each artifact contiguously. 2020-09-16 12:53:30 -07:00