Commit Graph

2074 Commits

Author SHA1 Message Date
Mark McCaskey
6278ced7fc implement fd_write for files 2019-04-02 12:06:35 -07:00
Lachlan Sneff
3a6e2c9c37 Change tagged and untagged methods 2019-04-02 11:49:05 -07:00
Mark McCaskey
242f9f679d add hacked together impl of write for stdout and stderr 2019-04-02 11:43:04 -07:00
Mark McCaskey
d421e91407 implement some of fd_prestat_get 2019-04-02 10:58:22 -07:00
Mark McCaskey
435629300b get debug statements working; add some extra info 2019-04-02 10:22:45 -07:00
Mark McCaskey
6cec356a74 add debug lines to all wasi syscalls 2019-04-02 09:47:45 -07:00
losfair
b74d8bc521 Optimize locals. 2019-04-02 20:50:56 +08:00
losfair
4d6bbed905 Optimize call. 2019-04-02 11:11:45 +08:00
Lachlan Sneff
287c81d7a5 Misc fixes 2019-04-01 17:50:53 -07:00
Lachlan Sneff
8bab9f1bea init zbox first 2019-04-01 17:25:45 -07:00
Mark McCaskey
d164c7a93b update wasi Cargo.toml 2019-04-01 17:21:48 -07:00
Mark McCaskey
84dc20af94 Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into feature/wasi 2019-04-01 16:36:56 -07:00
Mark McCaskey
2dd7ec8b72 fix it up 2019-04-01 16:36:41 -07:00
Lachlan Sneff
92ec71974b Add wasi_try macro 2019-04-01 16:34:18 -07:00
Lachlan Sneff
23b1d1dd6a Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into feature/wasi 2019-04-01 15:52:41 -07:00
Lachlan Sneff
ce35e5794f Change ValueType trait and add basic fs 2019-04-01 15:52:35 -07:00
Mark McCaskey
61dd2e1df9 add more doc comments 2019-04-01 15:22:30 -07:00
Lachlan Sneff
c12c7d558c Merge branch 'feature/wasi-fs' into feature/wasi 2019-04-01 15:17:13 -07:00
Lachlan Sneff
68f1123ad6 Add start of wasi fs 2019-04-01 15:15:20 -07:00
Mark McCaskey
5b6856df6b add lots of doc comments 2019-04-01 14:04:58 -07:00
Mark McCaskey
7addd920df add more stubs for fs calls 2019-04-01 12:11:11 -07:00
Syrus Akbary
63ab51442b
Merge pull request #316 from 0mp/patch-1
Add FreeBSD installation instructions for CMake
2019-04-01 10:52:03 -07:00
Mark McCaskey
4108c8ff58
Merge pull request #307 from wasmerio/feature/wasi-cross-platform-skeleton
Feature/wasi cross platform skeleton
2019-04-01 10:45:26 -07:00
losfair
84e5a0c8eb Call 2019-04-02 01:16:37 +08:00
losfair
1179b8a20f Fix Operator::Br. 2019-04-02 00:17:52 +08:00
losfair
4451a0f35c Update single_pass_tests/loop to check output value. 2019-04-02 00:17:38 +08:00
Mackenzie Clark
6a8d48af59
Merge branch 'master' into patch-1 2019-04-01 09:11:23 -07:00
losfair
13c5446c55 Loop & bug fixes 2019-04-02 00:11:01 +08:00
losfair
d2e12084a0 64-bit operators & bug fixes. 2019-04-01 23:49:46 +08:00
losfair
cf680e2a13 Relax 64-bit immediates. 2019-04-01 20:56:32 +08:00
losfair
6762c2d586 More opcodes for codegen v2. 2019-04-01 20:33:33 +08:00
bors[bot]
593720dfc5 Merge #310
310: fix(llvm-lint) Clean up various warnings r=Hywan a=Hywan

These patches remove various warnings raised by `rustc`.
Only 2 warnings remain.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Co-authored-by: Mackenzie Clark <mackenzie.a.z.c@gmail.com>
2019-04-01 10:18:56 +00:00
Mateusz Piotrowski
ee60d47f5c
Add FreeBSD installation instructions for CMake 2019-04-01 09:48:32 +02:00
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