Commit Graph

366 Commits

Author SHA1 Message Date
d8c6f76846 Redesign the interface between the runtime and the backends.
This removes the ProtectedCaller and FuncResolver traits, simplifying call implementations and improving dynamic call throughput.
2019-04-11 18:01:54 -07:00
688b6cae26 Merge branch 'master' into feature/nightly-release 2019-04-11 14:36:18 -07:00
d67bfdb2c5 Renamed dynasm backend to singlepass 2019-04-11 12:44:03 -07:00
c898439817 Add well placed unwind(allowed) attribute 2019-04-11 12:07:54 -07:00
72b9939331 Merge #334
334: Added longjmp implementation r=syrusakbary a=syrusakbary

Added longjmp implementation

Co-authored-by: Syrus <me@syrusakbary.com>
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2019-04-11 00:26:30 +00:00
870faf9838 Merge #341
341: feat(runtime-core) `Instance.exports` takes `&self` instead of `&mut self` r=lachlansneff a=Hywan

There is no reason for `exports` to take a mutable reference. This patch rewrites the `Instance.export` signature a little bit.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2019-04-10 19:22:12 +00:00
20297d1751 feat(runtime-core) Instance.exports takes &self instead of &mut self.
There is no reason for `exports` to take a mutable reference.
2019-04-10 12:17:16 -07:00
6848e81a77 Merge branch 'master' into feature/longjmp
# Conflicts:
#	lib/runtime-core/src/backend.rs
#	lib/runtime-core/src/typed_func.rs
2019-04-10 10:57:45 -07:00
2d2a177e9c Fix lint 2019-04-10 10:31:49 -07:00
cfd4758210 Add some documentation 2019-04-10 10:26:16 -07:00
02ed9f0e5f Reenabled longjmp 🎉 2019-04-09 18:33:53 -07:00
a320af4485 Fix runtime test missing method 2019-04-09 17:09:33 -07:00
cc656b26a9 Add implementations for typed func errors to cranelift and llvm 2019-04-09 17:09:33 -07:00
7d09a2ee7e Initial typed func rewrite 2019-04-09 17:09:33 -07:00
fec65a262e implement emscripten resize_heap 2019-04-09 17:09:33 -07:00
8ba5ea2a08 allow resize_heap to grow heap in emscripten 2019-04-09 17:09:33 -07:00
18a00e8e8f fix bug in stat, move lstat64 back to unix 2019-04-09 17:09:33 -07:00
41129e445d Fix runtime test missing method 2019-04-09 16:15:50 -07:00
c212ba3619 Add implementations for typed func errors to cranelift and llvm 2019-04-09 15:53:01 -07:00
5e1a67d835 Initial typed func rewrite 2019-04-09 12:48:41 -07:00
50a22bcae2 implement emscripten resize_heap 2019-04-08 16:17:34 -07:00
6578838acd allow resize_heap to grow heap in emscripten 2019-04-08 14:44:40 -07:00
7f8b1ea521 Merge #332
332: fix lstat64; heap size; and stat r=MarkMcCaskey a=MarkMcCaskey

- Get https://github.com/nikic/PHP-Parser working 🎉 
- fixes memory issue bug which looked like relative paths didn't work, but was really pointer aliasing corrupting data

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-04-08 18:58:48 +00:00
b3a765446a fix bug in stat, move lstat64 back to unix 2019-04-08 11:26:25 -07:00
3b11da91c5 Make DynFunc public 2019-04-06 14:31:39 -07:00
1193d561e2 Improved debug! macro with timing 2019-04-05 23:47:59 -07:00
03b529d3d1 Merge branch 'master' into add-validate 2019-04-03 21:35:23 -07:00
bda5b19098 update wasm-parser dep; use it for validation 2019-04-03 17:21:57 -07:00
bbf663aceb Merge branch 'master' into feature/wasi 2019-04-03 17:16:09 -07:00
1ff6ed6d1b Add Export and GlobalDescriptor to Runtime API 2019-04-02 22:10:49 -05:00
287c81d7a5 Misc fixes 2019-04-01 17:50:53 -07:00
ce35e5794f Change ValueType trait and add basic fs 2019-04-01 15:52:35 -07:00
48b5918895 Merge branch 'master' into feature/wasi-fs 2019-03-29 11:09:04 -07:00
316cbc54ab doc(lib) Add basic README.md. 2019-03-29 10:17:24 +01:00
c45de2207e Add helper types and half-ish of the wasi signatures 2019-03-28 17:00:10 -07:00
5c12fd0b49 fix test 2019-03-28 13:55:38 -07:00
7b0992e44f Instance now pulls state from the ImportObject 2019-03-28 11:56:31 -07:00
c684ea46f0 lint 2019-03-28 11:42:59 -07:00
5294eb6b0d merge and respond to feedback 2019-03-28 11:41:45 -07:00
0787d001e3 Add data support to import macro 2019-03-28 11:41:14 -07:00
4bbf9903f3 Merge #294
294: add support for symbol maps r=MarkMcCaskey a=MarkMcCaskey

resolves #293 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-03-28 17:09:44 +00:00
764ec96ad1 fix compilation error 2019-03-28 09:20:54 -07:00
d8347a3d40 Merge branch 'master' into feature/vfs 2019-03-27 17:31:56 -07:00
315d8286c4 clean up (second pass) 2019-03-27 14:08:17 -07:00
09068c1a74 clean up implementation 2019-03-27 14:01:27 -07:00
d65a5dfe57 fix typo 2019-03-26 20:07:00 -07:00
8dd158d3fb fix more warnings 2019-03-26 19:05:53 -07:00
0533a4eef6 dynamically import null funcs (all with the same signature) 2019-03-26 18:59:39 -07:00
9c58bed344 add support for symbol maps 2019-03-26 16:41:40 -07:00
7c9e537443 refactor everything 2019-03-25 19:44:12 -07:00