Mark McCaskey
ccd369ff0c
Add example, rename Ctx fn, make things pub(crate), misc changes
2019-09-18 16:43:47 -07:00
Mark McCaskey
5741a2cf70
Implement function lookups using the table
2019-09-18 16:06:46 -07:00
Patrick Ventuzelo
315b87c718
check index before accessing imports.globals
2019-09-18 10:28:49 +02:00
Mark McCaskey
9c205e05a2
Add comments explaining the unsafe impls and simplify the code, too
2019-09-17 18:35:12 -07:00
Mark McCaskey
83c3909b00
Implement it for memory and make Instance Send
2019-09-17 14:58:26 -07:00
Mark McCaskey
9e9343878d
Implement Send for everything except Memory
2019-09-17 11:45:13 -07:00
Mark McCaskey
17a0e78cef
Implement Send for Instance
2019-09-17 10:37:37 -07:00
Patrick Ventuzelo
374f81972a
remove panic from UnsharedMemory
2019-09-17 17:46:36 +02:00
Patrick Ventuzelo
c660aa9fce
fix 653 panic in memoryDescriptor
2019-09-17 17:42:06 +02:00
Patrick Ventuzelo
4190f01195
remove panic and unimplemented in llvm-backend and runtime-core
2019-09-17 12:03:03 +02:00
Mark McCaskey
b35a522d28
Add method to call function at index on Ctx
2019-09-16 15:01:18 -07:00
losfair
96163a07a6
Temporarily disable all lints in runtime-core.
2019-09-15 18:33:53 +08:00
losfair
2af69f6710
Fixed compilation on aarch64.
2019-09-15 18:32:02 +08:00
losfair
9b77677e4b
Relax constraints a bit to compile on aarch64.
2019-09-15 18:23:42 +08:00
Johan Andersson
21bcac2159
Rustfmt
2019-09-15 03:31:05 +02:00
Johan Andersson
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
Patrick Ventuzelo
ba5c43e09d
fix issue 725, remove panics
2019-09-09 16:58:26 +02:00
Syrus
d8471e2b6a
Improved docs with custom logo and favicon
2019-09-03 17:06:31 -07:00
losfair
7dd5c92c21
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-09-01 17:58:44 +08:00
Mark McCaskey
538bba5638
Add comment explaining why WasmHash is implemented the way it is
2019-08-27 11:50:03 -07:00
losfair
7491b360ac
Fix CodeMemory::new(0)
2019-08-22 11:57:58 -07:00
losfair
c7377a465f
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-08-21 15:49:25 -07:00
losfair
56e735349d
Format everything
2019-08-21 15:23:56 -07:00
losfair
bf9d915635
Fix a few issues from PR comments.
2019-08-21 14:53:33 -07:00
Nick Lewycky
70d561a1dd
Remove SharedStaticMemory and simplify surrounding code.
2019-08-20 11:30:19 -07:00
losfair
90dcdfec1c
Cargo fmt
2019-08-19 19:17:50 -07:00
losfair
4e6267aa57
Correctly handle more than 5 WASM function parameters when reading state of a LLVM context.
2019-08-19 19:12:33 -07:00
Nick Lewycky
172ef77ddd
Use the static intrinsics for static shared memory too.
2019-08-19 17:26:35 -07:00
Nick Lewycky
d66b805529
Add misaligned atomic access trap display for WasmTrapInfo.
2019-08-19 17:26:15 -07:00
Nick Lewycky
0eba153232
Implement shared static memory similarly to unshared static memory.
2019-08-19 15:18:22 -07:00
losfair
124ad73e8a
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-08-19 13:06:59 -07:00
Nick Lewycky
86346d6ebe
Thread the feature support through to wasmparser.
2019-08-19 10:51:14 -07:00
Nick Lewycky
cca419c982
Add the --enable-threads flag and thread it as far as runtime-core.
2019-08-19 10:51:14 -07:00
Nick Lewycky
3040ec90ad
cargo fmt
2019-08-16 18:00:20 -07:00
Nick Lewycky
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
losfair
dbaa000e96
Re-enable snapshotting.
2019-08-16 13:08:10 -07:00
Brandon Fish
bccbbb3d8b
Add deny nonstandard-style and unused-mut lints
2019-08-15 20:18:29 -06:00
losfair
afa0600701
Cargo fmt
2019-08-15 19:13:00 -07:00
losfair
6a24485999
Insert trampolines to preserve callee-saved registers for backends without register save area information.
2019-08-15 19:10:24 -07:00
losfair
1582224d61
Cargo fmt
2019-08-14 17:16:30 -07:00
losfair
9edd9ffdfe
Make lookup_*_ip public.
2019-08-14 17:14:01 -07:00
losfair
c9e3db3d94
Remove feature(core_intrinsics)
2019-08-14 16:41:44 -07:00
losfair
0e0573c73c
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
2019-08-14 16:33:26 -07:00
Brandon Fish
de8fe32dbe
Add memory validation
2019-08-13 13:04:13 -06:00
Brandon Fish
f22250d85a
Refactor func_count in parser
2019-08-12 21:36:17 -06:00
Brandon Fish
e76777ed9b
Finalize signatures & names when no function bodies
2019-08-12 20:22:54 -06:00
Brandon Fish
9b4ba66e11
Add code comment explanation of validation
2019-08-11 13:59:48 -06:00
Brandon Fish
f61fc5c298
Validate all initializers before finalizing
2019-08-11 13:28:47 -06:00
Brandon Fish
38a8a0eb01
Minimize unsafe block to unsafe code
2019-08-10 17:20:27 -06:00
Brandon Fish
0b73776c84
Validate all memory data initializers before writing
2019-08-10 17:10:24 -06:00