Commit Graph

3293 Commits

Author SHA1 Message Date
bors[bot]
1fb2f34c05 Merge #309
309: fix(llvm-backend) Remove an `example.rs` file. r=lachlansneff a=Hywan

I think this file is useless?

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Co-authored-by: Mackenzie Clark <mackenzie.a.z.c@gmail.com>
2019-04-01 03:46:18 +00:00
Mackenzie Clark
124563a556
Merge branch 'master' into fix-llvm-lints 2019-03-30 18:11:40 -07:00
Mackenzie Clark
ca41c6dd6b
Merge branch 'master' into fix-llvm-example 2019-03-30 18:10:20 -07:00
losfair
6ac81a3c84 Implement more instructions. 2019-03-31 00:44:02 +08:00
Mark McCaskey
e156ea2509 comment out write logic in linux fd_pread until design discussion 2019-03-29 17:02:58 -07:00
Mark McCaskey
5cee576b7b add some syscall skeletons; context switching 2019-03-29 17:00:58 -07:00
Mark McCaskey
42e8523c0b impl ValueType for fdstat_t 2019-03-29 15:49:42 -07:00
Mark McCaskey
147d71a32c implement ValueType for prestat_t 2019-03-29 15:39:36 -07:00
Mark McCaskey
e7a5c01ef8 fix backward enumerate 2019-03-29 15:21:54 -07:00
Mark McCaskey
5dcb95dd7a fix basic errors in linux impl 2019-03-29 15:17:42 -07:00
Mark McCaskey
35fbf573c9 add pread on linux 2019-03-29 15:10:46 -07:00
bors[bot]
ae3d1034ef Merge #314
314: add more stubs for pthreading, exceptions, and some invokes r=MarkMcCaskey a=MarkMcCaskey

resolves #308 

Adds stubs for the WASM file submitted in the issue; `_llvm_eh_typeid_for` may be able to be properly implemented now, the pthread and cxa ones will require much larger changes

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-03-29 20:55:08 +00:00
Mark McCaskey
accbe52dd6 add more stubs for pthreading, exceptions, and some invokes 2019-03-29 13:42:13 -07:00
Mark McCaskey
88212d356f implement random_get() 2019-03-29 13:06:06 -07:00
Mark McCaskey
28d9d1fe87 move linux impl to unix (it works on osx too!) 2019-03-29 12:39:48 -07:00
Mark McCaskey
1f8b90b57e probably actually fix linux for real though 2019-03-29 12:33:32 -07:00
Mark McCaskey
de241a03f9 fix linux impl bugs 2019-03-29 11:43:32 -07:00
Mark McCaskey
48d34d9522 improve calling of platform-specific code and impl linux clock calls 2019-03-29 11:38:48 -07:00
Lachlan Sneff
48b5918895 Merge branch 'master' into feature/wasi-fs 2019-03-29 11:09:04 -07:00
Mark McCaskey
23c09ac042 add imports 2019-03-29 11:04:38 -07:00
Lachlan Sneff
4df5f02444 Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into feature/wasi 2019-03-29 11:03:31 -07:00
Lachlan Sneff
b1030d3181 Add prestat_t 2019-03-29 11:03:21 -07:00
Mark McCaskey
514432c05a call wasi files correctly 2019-03-29 10:58:56 -07:00
Mark McCaskey
d10d0285ac
Merge branch 'feature/wasi' into feature/wasi-cross-platform-skeleton 2019-03-29 10:43:30 -07:00
Mark McCaskey
ea27effdb3 keeep top level wasi calls that call out to platform-specific impls 2019-03-29 10:20:08 -07:00
bors[bot]
39ccf403f3 Merge #306
306: Add helper types and wasi function signatures r=MarkMcCaskey a=lachlansneff



Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2019-03-29 17:00:47 +00:00
bors[bot]
c6a597f3a2 Merge #311
311: doc(lib) Add basic `README.md` r=Hywan a=Hywan

This patch adds very basic `README.md`. They must obviously be completed, but it's better than nothing!

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2019-03-29 15:56:14 +00:00
Ivan Enderlin
1c063090c5 doc(runtime-c-api) Add short module descriptions. 2019-03-29 16:35:35 +01:00
bors[bot]
ef0f00f5a1 Merge #312
312: feat(runtime-c-api) Split the big `lib.rs` file into modules r=Hywan a=Hywan

This PR splits the `lib.rs` file into smaller modules.
Proof everything is OK:

  1. `wasmer.h` and `wasmer.hh` are not different,
  2. Tests are still green,
  3. `rustc` is polite.

Bonus: I removed the last couple of warnings.

Next step: Add more documentations.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2019-03-29 15:17:04 +00:00
Ivan Enderlin
8ee0f16c8a fix(runtime-c-api) Remove last warnings. 2019-03-29 15:56:08 +01:00
Ivan Enderlin
849af62911 feat(runtime-c-api) Finish to extract last pieces of code. 2019-03-29 15:52:41 +01:00
Ivan Enderlin
361ff81db7 feat(runtime-c-api) Extract the import module. 2019-03-29 15:50:16 +01:00
Ivan Enderlin
9c4696eb5b feat(runtime-c-api) Extract the export module. 2019-03-29 15:38:12 +01:00
Ivan Enderlin
f46be814da feat(runtime-c-api) Extract the instance module. 2019-03-29 15:14:05 +01:00
Ivan Enderlin
d06d6b7ac8 feat(runtime-c-api) Extract the global module. 2019-03-29 15:05:17 +01:00
Ivan Enderlin
8bdb458ea7 feat(runtime-c-api) Extract the table module. 2019-03-29 15:02:50 +01:00
Ivan Enderlin
4239975240 feat(runtime-c-api) Move wasmer_validate into the module module. 2019-03-29 14:59:02 +01:00
Ivan Enderlin
55c010688c feat(runtime-c-api) Extract the memory module. 2019-03-29 14:57:08 +01:00
Ivan Enderlin
168aa8031f feat(runtime-c-api) Extract the module module. 2019-03-29 14:51:35 +01:00
Ivan Enderlin
96324977b5 feat(runtime-c-api) Extract the error module. 2019-03-29 14:41:39 +01:00
Ivan Enderlin
49c01f6093 feat(runtime-c-api) Extract the value module. 2019-03-29 14:40:26 +01:00
Ivan Enderlin
316cbc54ab doc(lib) Add basic README.md. 2019-03-29 10:17:24 +01:00
Ivan Enderlin
8179dd6f96 fix(llvm-backend) Remove sign_type from generate_trampoline. 2019-03-29 10:09:56 +01:00
Ivan Enderlin
34b4f2fb11 fix(llvm-backend) Mark some variables as unused. 2019-03-29 10:09:39 +01:00
Ivan Enderlin
5cd45cbc28 fix(llvm-backend) Mark a variable as unused. 2019-03-29 10:09:10 +01:00
Ivan Enderlin
b03980f8c9 fix(llvm-backend) Remove unused variables or functions. 2019-03-29 10:08:43 +01:00
Ivan Enderlin
76d26d97ac fix(llvm-backend) Remove Intrinsics.ctx_ty, CtxType.ctx_ty, and .ctx_ptr_ty`. 2019-03-29 10:07:38 +01:00
Ivan Enderlin
7645a812d9 fix(llvm-backend) Remove unused variables. 2019-03-29 10:07:08 +01:00
Ivan Enderlin
00e4b25111 fix(llvm-backend) No need to enumerate items in this iterator. 2019-03-29 10:06:31 +01:00
Ivan Enderlin
20378de0e7 fix(llvm-backend) llvm_sig variable is not used here. 2019-03-29 10:06:11 +01:00