Commit Graph

2616 Commits

Author SHA1 Message Date
b9fa698a73 Assert alignment 2019-06-13 21:53:37 +02:00
4059562560 Updated nightly version 2019-06-13 21:37:55 +02:00
86b78c6b14 Fixed clippy issues 2019-06-13 21:32:05 +02:00
583fdb5c4a Updated Changelog 2019-06-13 21:24:39 +02:00
7ebb90527c Fixes remaining clippy issues 2019-06-13 21:23:41 +02:00
675caf042c Various lint fixes 2019-06-13 21:01:37 +02:00
1560849e40 Fix lint errors and windows build 2019-06-13 20:46:05 +02:00
8829e1d901 Make Python running 🎉 2019-06-13 14:05:57 +02:00
58d75868f4 Fixed syscall220 alignment 2019-06-13 12:17:17 +02:00
f12d6f8dd2 Merge branch 'command/pyodide' of github.com:wasmerio/wasmer into command/pyodide 2019-06-12 23:26:02 +02:00
cc740040d2 Merge branch 'master' into command/pyodide 2019-06-12 22:52:05 +02:00
9585b89705 Fix bugs in state reading. 2019-06-12 23:54:15 +08:00
32008eba88 Read stack values based on state map. 2019-06-12 22:02:15 +08:00
3f975457c7 doc(changelog) Add #494. 2019-06-12 12:18:41 +02:00
63ec73aacc fix(runtime-c-api) Remove deprecated types from libc.
Since https://github.com/rust-lang/libc/pull/1379, fixed width integer
type aliases are deprecated. Thus, this patch uses Rust types instead
of libc aliases.
2019-06-12 12:10:49 +02:00
a6b5eee32f doc(changelog) Add #493. 2019-06-12 11:39:59 +02:00
81d8e4ee2e feat(runtime-c-api) Improve error message when compiling a module. 2019-06-12 11:35:29 +02:00
00b6bf632a Dumping stack through import. 2019-06-12 13:38:58 +08:00
109acd2fa3 Trying to fix ___syscall220 2019-06-12 01:01:47 +02:00
6ce4f5dca4 Minor fixes 2019-06-12 00:13:06 +02:00
ddd0653a25 Make singlepass backend emit state mapping information. 2019-06-12 00:21:43 +08:00
0b416e14c3 Improved syscall220 debug 2019-06-11 17:38:16 +02:00
da9bf05218 Machine state diff 2019-06-11 20:49:30 +08:00
8f3cc5f7c9 Merge #485
485: add wasmptr memory abstraction to emscripten; update wasi array access r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-06-11 10:41:04 +00:00
7f81f54e0e Updated CHANGELOG with merged PRs 2019-06-11 12:31:13 +02:00
b36783fc50 remove duplicated code, wrap WasmPtr on wasi side 2019-06-11 11:10:42 +02:00
7965ed2746 fix newly introduced bug in wasmptr array access 2019-06-10 13:32:33 +02:00
d165763b4d Merge branch 'master' into command/pyodide 2019-06-10 12:35:11 +02:00
7a66a5285d Merge branch 'master' into feature/better-memory-access-for-emscripten 2019-06-10 03:26:50 -07:00
1948ad53a9 Merge #490
490: Add MiddlewareChain and StreamingCompiler to runtime r=syrusakbary a=bjfish

It would be nice to add `MiddlewareChain` and `StreamingCompiler` to runtime to be able to use these without having to include the `runtime-core` as a dependency. For example:
```rust
use wasmer_runtime::{MiddlewareChain, StreamingCompiler};
use wasmer_singlepass_backend::ModuleCodeGenerator as SinglePassMCG;
use wasmer_middleware_common::metering::Metering;
let limit = 1_000_000;
let c: StreamingCompiler<SinglePassMCG, _, _, _, _> = StreamingCompiler::new(move || {
    let mut chain = MiddlewareChain::new();
    chain.push(Metering::new(limit));
    chain
});            
wasmer_runtime::compile_with(&prepared_code, &c)
    .map_err(|e| Error::Wasmer(format!("{}", e)))
            chain
        });            
wasmer_runtime::compile_with(&prepared_code, &c)
    .map_err(|e| Error::Wasmer(format!("{}", e)))
```

Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
2019-06-10 10:01:22 +00:00
c6786474a7 Add MiddlewareChain and StreamingCompiler to runtime 2019-06-09 23:24:10 -05:00
082b8376ae State representation. 2019-06-09 21:21:18 +08:00
bea3ebd2f3 Merge #488
488: Remove inst-limit option from wasmer binary r=losfair a=bjfish

Also, fixes compilation issue in CI.

Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
2019-06-09 03:20:36 +00:00
733ffa8854 Remove inst-limit option from wasmer binary 2019-06-08 16:48:41 -05:00
5d93d9a904 Added fb and gb symbols 2019-06-08 19:53:21 +02:00
ff21d9e95f Merge branch 'master' into command/pyodide 2019-06-08 19:48:25 +02:00
d5dbabf605 Merge #487
487: Fix stack offset check in singlepass backend. r=losfair a=losfair

#486 

Co-authored-by: laizy <aochyi@126.com>
Co-authored-by: losfair <zhy20000919@hotmail.com>
2019-06-08 15:03:02 +00:00
61786a370a Fix typo in machine. 2019-06-08 22:56:13 +08:00
1477062474 Add test case for PR 486 fix. 2019-06-08 22:55:24 +08:00
1780d57df1 add Mechine::release_locations_keep_state test 2019-06-08 22:25:20 +08:00
8105c0c16f fix stack offset check 2019-06-08 15:03:56 +08:00
5db8c13465 Merge #450
450: Metering. r=bjfish a=losfair

TODO
- [x] Add test to verify points used after function call
- [x] Add test to verify function call will trap
- [x] Add documentation

Co-authored-by: losfair <zhy20000919@hotmail.com>
Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
2019-06-07 20:44:41 +00:00
f6ecfa40cb Merge branch 'master' into feature/metering 2019-06-06 23:33:31 -05:00
e87d507162 Add black_box to benchmarking 2019-06-06 23:30:31 -05:00
418764a15f Add get/set gas used for benchmark 2019-06-06 23:25:11 -05:00
98e04193af Merge branch 'master' into feature/better-memory-access-for-emscripten 2019-06-06 18:03:55 -07:00
811acd7e68 probably actually fix the wasi ptr array bug now 2019-06-06 16:19:15 -07:00
ade70c6e1a Merge #484
484: fix bugs in emscripten socket syscalls r=MarkMcCaskey a=MarkMcCaskey

resolves #482 
This PR fixes:
- incorrect argument order
  - which cascaded in to a casting issue 
  - which cascaded in to misaligning the arguments of a function
  - which cascaded in to attempting to access an OOB pointer
- sets fd limit to 1024, rather than emscripten's 64
- updates `prlimit64` to return the correct result for `RLIMIT_NOFILE`
- fixes bug in `prlimit64` due to a mistransaltion of the emscripten javascript

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-06-06 22:50:06 +00:00
d7ea46bab7 add wasmptr memory abstraction to emscripten; update wasi array access 2019-06-06 15:45:19 -07:00
6f633cee6f fix pointer casting lint in emscripten syscall191 2019-06-06 12:07:19 -07:00