4190f01195
remove panic and unimplemented in llvm-backend and runtime-core
2019-09-17 12:03:03 +02:00
b35a522d28
Add method to call function at index on Ctx
2019-09-16 15:01:18 -07:00
21bcac2159
Rustfmt
2019-09-15 03:31:05 +02:00
ad70caff83
Remove colored CLI output from runtime-core lib.
...
When the colored output was originally added in https://github.com/wasmerio/wasmer/pull/489 and there was a discussion then about that it should ideally be in a higher-level crate rather than in the runtime-core library crate.
I agree with that, users of the library shouldn't be required to bring in the colored crate dependency and ideally also not have stdout/stderr output either, that should be controlled by the application that uses wasmer-runtime-core, not the library.
Disabling stdout/stderr output would be more intrusive but I wanted to at least not have colored output and another crate dependency so this change removes the colored output and the "colored" crate.
2019-09-15 03:21:04 +02:00
ba5c43e09d
fix issue 725, remove panics
2019-09-09 16:58:26 +02:00
d8471e2b6a
Improved docs with custom logo and favicon
2019-09-03 17:06:31 -07:00
7dd5c92c21
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-09-01 17:58:44 +08:00
538bba5638
Add comment explaining why WasmHash is implemented the way it is
2019-08-27 11:50:03 -07:00
7491b360ac
Fix CodeMemory::new(0)
2019-08-22 11:57:58 -07:00
c7377a465f
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-08-21 15:49:25 -07:00
56e735349d
Format everything
2019-08-21 15:23:56 -07:00
bf9d915635
Fix a few issues from PR comments.
2019-08-21 14:53:33 -07:00
70d561a1dd
Remove SharedStaticMemory and simplify surrounding code.
2019-08-20 11:30:19 -07:00
90dcdfec1c
Cargo fmt
2019-08-19 19:17:50 -07:00
4e6267aa57
Correctly handle more than 5 WASM function parameters when reading state of a LLVM context.
2019-08-19 19:12:33 -07:00
172ef77ddd
Use the static intrinsics for static shared memory too.
2019-08-19 17:26:35 -07:00
d66b805529
Add misaligned atomic access trap display for WasmTrapInfo.
2019-08-19 17:26:15 -07:00
0eba153232
Implement shared static memory similarly to unshared static memory.
2019-08-19 15:18:22 -07:00
124ad73e8a
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-08-19 13:06:59 -07:00
86346d6ebe
Thread the feature support through to wasmparser.
2019-08-19 10:51:14 -07:00
cca419c982
Add the --enable-threads flag and thread it as far as runtime-core.
2019-08-19 10:51:14 -07:00
3040ec90ad
cargo fmt
2019-08-16 18:00:20 -07:00
a3fe372beb
Replace wasmer_runtime_code::memory::Atomic with std::sync::atomic atomics.
...
This means we lose op_new(), op_weak() and proxy() from the interface.
2019-08-16 17:36:11 -07:00
dbaa000e96
Re-enable snapshotting.
2019-08-16 13:08:10 -07:00
bccbbb3d8b
Add deny nonstandard-style and unused-mut lints
2019-08-15 20:18:29 -06:00
afa0600701
Cargo fmt
2019-08-15 19:13:00 -07:00
6a24485999
Insert trampolines to preserve callee-saved registers for backends without register save area information.
2019-08-15 19:10:24 -07:00
1582224d61
Cargo fmt
2019-08-14 17:16:30 -07:00
9edd9ffdfe
Make lookup_*_ip public.
2019-08-14 17:14:01 -07:00
c9e3db3d94
Remove feature(core_intrinsics)
2019-08-14 16:41:44 -07:00
0e0573c73c
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-08-14 16:33:26 -07:00
de8fe32dbe
Add memory validation
2019-08-13 13:04:13 -06:00
f22250d85a
Refactor func_count in parser
2019-08-12 21:36:17 -06:00
e76777ed9b
Finalize signatures & names when no function bodies
2019-08-12 20:22:54 -06:00
9b4ba66e11
Add code comment explanation of validation
2019-08-11 13:59:48 -06:00
f61fc5c298
Validate all initializers before finalizing
2019-08-11 13:28:47 -06:00
38a8a0eb01
Minimize unsafe block to unsafe code
2019-08-10 17:20:27 -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
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
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
a7ff120dd9
Fix some spectest imports and namespace_table issue
2019-08-08 21:03:00 -06:00
5a41686192
Fix bare_trait_objects warnings
2019-08-08 16:46:52 -06: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
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
5d9aa1f986
Return link error instead of assertion failure for bad data initialization
2019-08-07 15:40:42 -06:00