Commit Graph

2269 Commits

Author SHA1 Message Date
Dan Gohman
cc5efeb54d WASI: Simplify byref translation.
Avoid needlessly copying data from wasm into the host for output
parameters, and factor out the `.unwrap()` for translating pointers
when writing to output parameters.
2019-04-01 15:55:40 -07:00
Dan Gohman
5b77f95284 WASI: Implement translation for events and subscriptions. 2019-04-01 15:55:40 -07:00
Dan Gohman
7151c110d7 Implement decode/encode for __wasi_filestat_t. 2019-04-01 13:35:43 -07:00
Dan Gohman
dd0d71b18f Fix name name mangling of WASI functions in the JS polyfill.
Emscripten prefixes C functions with '_', so these functions end up
having 3 leading underscores.
2019-04-01 12:48:13 -07:00
Dan Gohman
a6f31a2be3 Update Rust instructions, add a link to wasi-sysroot. 2019-03-31 06:29:23 -07:00
Dan Gohman
7378a0bfbe Update Travis from trusty to xenial. (#84)
* Update Travis from trusty to xenial.

* Don't use getentropy on GLIBC < 2.25.
2019-03-31 05:46:32 -07:00
Dan Gohman
05a05551ba Pre-opened directory resources are now supported; update the docs. 2019-03-29 11:59:13 -07:00
Dan Gohman
f53ed6d8ee Document that random_get can block. 2019-03-29 11:59:09 -07:00
Dan Gohman
ab28cd9a2c Tidy up wording in the explanation of capabilities, and link to the tutorial. 2019-03-28 10:51:07 -07:00
Dan Gohman
5adbf58482 Fix grammar. 2019-03-28 10:47:46 -07:00
Dan Gohman
4fd7c4b931 Document the constraints on path_open's returned file descriptor.
Whether the downsides in POSIX and existing application compatibility
outweigh the benefits of thread safety remains an open question.
Right now, this note is just documenting the current behavior.
2019-03-28 10:42:48 -07:00
Dan Gohman
c37f245fc8 Update URLs for things that have moved. 2019-03-28 09:20:11 -07:00
Gene McCulley
1d4b704cb8 Update README.md
Small spelling fix.
2019-03-28 07:31:43 -07:00
Gene McCulley
c39a7f82cb Update README.md
Fix grammar error.
2019-03-28 07:31:12 -07:00
Jef
762cd3fb32 rustfmt 2019-03-28 10:22:43 +01:00
Jef
a8bb9fd634 Use latest wasmparser instead of fork 2019-03-28 10:14:40 +01:00
Dan Gohman
01f8c87b76 Fix broken link to wasi-software-architecture.png. 2019-03-27 11:49:07 -07:00
Dan Gohman
002a61c32b Fix a missing close paren. 2019-03-27 11:33:04 -07:00
Dan Gohman
d8242bc612 Add a blurb explaining the capability mapping support in WASI libc. 2019-03-27 11:29:19 -07:00
bjorn3
3ae7c60b13 Update src/wasmtime.rs
Fix spelling error.

Co-Authored-By: sunfishcode <sunfish@mozilla.com>
2019-03-27 10:58:43 -07:00
Dan Gohman
a4515a01e3 Add a proposed CG subgroup charter document. 2019-03-27 10:58:43 -07:00
Matthias Prechtl
3cb76f15da Update README.md
Fix a missing comma.

Co-Authored-By: sunfishcode <sunfish@mozilla.com>
2019-03-27 10:58:43 -07:00
Dan Gohman
b2fefe7714 WASI prototype design, implementation, and documentation.
This adds documents describing the WASI Core API, and an implementation in
Wasmtime.
2019-03-27 10:58:43 -07:00
Jef
2a60d76bdc Update to latest cranelift 2019-03-27 15:20:17 +01:00
Jef
1e5b09fbc4 Update README 2019-03-27 12:58:30 +01:00
Jef
79f26328d4 Improve efficiency of resetting stack pointer 2019-03-27 12:57:49 +01:00
Jef
652e2fdeec Fix some places that could have caused panics, update example assembly in readme 2019-03-27 12:44:51 +01:00
Jef
d50f075078 Add CondCode location so we can branch much more efficiently 2019-03-27 12:22:57 +01:00
Dan Gohman
b0243b212f Update the minimum Rust version to 1.32. 2019-03-27 02:25:13 -07:00
Yury Delendik
2353be95e6 update cranelift deps to 0.30.0 2019-03-27 02:24:51 -07:00
Yury Delendik
94ca967d0a Update faerie to 0.9.1 2019-03-27 02:24:51 -07:00
Jef
11b26430b6 Fix on latest nightly 2019-03-27 10:06:54 +01:00
Jef
1ff22de331 Remove unused code 2019-03-26 17:50:03 +01:00
Jef
96df539554 Remove unused code 2019-03-26 17:40:57 +01:00
Jef
84b4fa0208 Update to latest cranelift 2019-03-26 16:02:30 +01:00
Jef
4f21ffc006 Update README 2019-03-26 15:07:20 +01:00
Jef
cf9c57e279 Fix br_if calling convention handling 2019-03-26 10:29:55 +01:00
Jef
f9e66eab84 Update README 2019-03-26 09:10:55 +01:00
Jef
3798890d71 Fix inter-function calls assuming that functions are allocated sequentially 2019-03-26 09:01:09 +01:00
Jef
e69e0aeb28 Update README 2019-03-21 14:12:54 +01:00
Jef
103ae62095 Fix README 2019-03-21 13:52:57 +01:00
Jef
624d5cc6ad Update README 2019-03-21 13:35:55 +01:00
Jef
791ccf84b4 Free up registers where possible 2019-03-21 13:33:00 +01:00
Jef
4eb546c6a5 Fix conversions trapping and fix some weirdness around conditional jumps 2019-03-21 11:47:50 +01:00
Dan Gohman
db0abe8431 Move the wasmtime crate directories form lib/* to wasmtime-*.
This follows a similar change to Cranelift made here:

https://github.com/CraneStation/cranelift/pull/660
2019-03-20 11:30:28 -07:00
Jef
14bff9229e Fix conversions 2019-03-20 18:38:32 +01:00
Jef
6b8ff11854 Implement imported mutable globals 2019-03-20 10:57:55 +01:00
Jef
e4752aae3d Several fixes, implement imported globals 2019-03-19 15:22:05 +01:00
Jef
36ec29b048 Fix imported memories 2019-03-18 21:17:18 +01:00
Jef
64ab86f9bc Add new test results 2019-03-18 20:42:08 +01:00