Commit Graph

3132 Commits

Author SHA1 Message Date
38a8a0eb01 Minimize unsafe block to unsafe code 2019-08-10 17:20:27 -06:00
b7970fb982 Uncomment slow exclude test again 2019-08-10 17:11:32 -06:00
0b73776c84 Validate all memory data initializers before writing 2019-08-10 17:10:24 -06:00
228d562a3b Re-use registered module instances in spectests 2019-08-10 15:56:25 -06:00
db5d8a5bf8 Push debug print to debug CI failure 2019-08-10 15:33:08 -06:00
4651b43078 Merge branch 'master' into feature/fix-table-init-error 2019-08-10 15:19:02 -06:00
a621b86286 Update windows excludes 2019-08-10 15:04:24 -06:00
b484ebb848 cargo fmt 2019-08-10 14:01:50 -06:00
bb8b4960b8 Remove filter which prevents initializer offset check 2019-08-10 13:59:31 -06:00
1584beebe6 Invalid table size for elems should produce link error 2019-08-10 12:13:14 -06:00
6372e0947c Fix more bare dyn traits in runtime-c-api 2019-08-10 11:20:22 -06:00
8ec4c0e01d Merge branch 'master' into feature/fix-namespace-table-issue 2019-08-09 14:12:25 -06:00
44f71759f6 Use Vec::with_capacity in various places. 2019-08-10 03:23:29 +08:00
9cade2b441 singlepass: Skip patchpoint. 2019-08-10 03:10:32 +08:00
d61a8bb6d2 Prevent continueing execution on unreliable stack. (LLVM register save area information is missing) 2019-08-10 03:10:12 +08:00
2e89f02191 Cargo fmt 2019-08-10 02:44:44 +08:00
b8c18215aa Refactor tier switching code 2019-08-10 02:32:14 +08:00
f909f7ed1f Merge pull request #650 from wasmerio/feature/wasi-path-rename
implement wasi::path_rename
2019-08-09 01:09:23 -07:00
61f1df06d1 implement wasi::path_rename 2019-08-09 15:40:04 +09:00
7f0c48b354 Add windows clif excludes 2019-08-08 21:12:36 -06:00
a7ff120dd9 Fix some spectest imports and namespace_table issue 2019-08-08 21:03:00 -06:00
d39d4b5f6d Remove structopt dependency from LLVM 2019-08-08 19:42:41 -07:00
27d8506a46 Merge #643
643: Improve error reporting of IO errors, implement path_symlink r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-08-09 00:34:22 +00:00
b2c4501357 Add support for backend flags. Backend flags are opaque to src/bin/wasmer.rs.
Use them to implement three features in the LLVM backend, getting a valid ELF object file, the post-optimization LLVM IR and the pre-optimization LLVM IR.

Presently they are also global to the backend which is not ideal.
2019-08-08 17:05:31 -07:00
77fe15db31 Merge #646
646: Fix bare_trait_objects warnings r=bjfish a=bjfish

These appear to be coming to stable soon:
https://github.com/rust-lang/rust/blob/master/RELEASES.md#compatibility-notes

Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
2019-08-08 23:25:07 +00:00
5a41686192 Fix bare_trait_objects warnings 2019-08-08 16:46:52 -06:00
02f1d73f88 Reformat. 2019-08-08 13:55:44 -07:00
c4d4a6888c Fix a bug where we would fail to find llvm-config-M or llvm-config-M-N when llvm-sys would.
Update to match features in newer llvm-sys.
2019-08-08 13:46:40 -07:00
c1619026d5 Swap code lazily when tiering up from singlepass to LLVM.
Does not handle long-running functions, but should work at least.
2019-08-09 04:26:17 +08:00
0d604b754b Commented out code for saving semantics of internal values. 2019-08-08 21:54:39 +08:00
d0696a0c0e implement wasi::path_symlink test & fix readlink test 2019-08-08 16:42:27 +09:00
55f214b3ac Merge branch 'master' into feature/unexclude-some-passing-unlinkable 2019-08-07 23:19:40 -06:00
1c32e2a4af Add windows specific clif failures 2019-08-07 23:10:50 -06:00
cdfd9afccc Improve error reporting of IO errors, begin implementation of path_symlink 2019-08-08 11:59:35 +09:00
0b0a77413e Unexclude some now passing assert_unlinkable 2019-08-07 19:45:31 -06:00
205d7081f5 Merge #640
640: Protect::ReadWriteExec is readable and writable. r=syrusakbary a=nlewycky

Also assert that page size is a power of two in two places we assume it is.

Co-authored-by: Nick Lewycky <nick@wasmer.io>
2019-08-08 01:36:19 +00:00
321ca4e565 Merge #635
635: Update spectests and runner r=bjfish a=bjfish



Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
Co-authored-by: Nick Lewycky <nick@wasmer.io>
Co-authored-by: Syrus <me@syrusakbary.com>
2019-08-08 00:51:59 +00:00
b8f8a637c1 Merge branch 'master' into feature/more-wasi-syscalls 2019-08-07 16:55:03 -07:00
75959577c3 Protect::ReadWriteExec is readable and writable.
Also assert that page size is a power of two in two places we assume it is.
2019-08-07 16:49:29 -07:00
8763d2cbde Merge branch 'master' into feature/spectests-runner 2019-08-07 16:50:06 -06:00
5d9aa1f986 Return link error instead of assertion failure for bad data initialization 2019-08-07 15:40:42 -06:00
b113f5a24b longjmp turns out to work on Windows. Remove custom unwinding code. 2019-08-08 03:19:19 +08:00
ddb0b99f12 implement path_link updated unlink, fix tests, add new test 2019-08-07 16:11:38 +09:00
6ad0be1e02 add fd_sync test 2019-08-07 12:41:35 +09:00
dbe96bbce9 add wasi::fd_sync 2019-08-07 12:17:52 +09:00
dc8384ed22 Add windows specific excludes 2019-08-06 21:03:09 -06:00
b7236a58fc Add support for platform star key skip exclude 2019-08-06 20:06:34 -06:00
4b1d337ebe Custom setjmp/longjmp to avoid SEH. (will it work?) 2019-08-07 00:38:42 +08:00
b50fd31adb Use setjmp/longjmp to handle LLVM exceptions. 2019-08-07 00:06:35 +08:00
8c13eae2b8 Allow platform specific excludes 2019-08-05 20:57:07 -06:00