Mark McCaskey
1e637badc4
Merge remote-tracking branch 'origin/master' into feature/make-instance-send
2019-09-23 11:05:00 -07:00
Mark McCaskey
05ad1aaea4
Add test for Instance, fix tests for ImportObject
2019-09-23 11:04:31 -07:00
losfair
3dadbc15c9
Integer subset done.
2019-09-23 22:30:08 +08:00
Ivan Enderlin
f289cb2ba9
doc(runtime-core) Replace map(|cell| cell.get())
by map(Cell::get)
.
...
Because it's simpler :-p.
2019-09-23 15:15:06 +02:00
Patrick Ventuzelo
5ace7a0af3
fix failing test
2019-09-23 11:17:02 +02:00
Syrus
9942d3ae98
Improved Emscripten / WASI autodetection
2019-09-22 18:23:22 -07:00
Azure Pipelines
8e2f526f73
Added cpp example
2019-09-22 17:42:19 -07:00
Azure Pipelines
009c123332
Fixed emscripten main functions
2019-09-22 17:29:12 -07:00
Brandon Fish
a1a88c6eb8
Use the default features for wasmparser
2019-09-21 13:59:08 -05:00
Brandon Fish
f48d6f6690
Cranelift backend update to fork of clif version 0.43.1
2019-09-21 13:06:54 -05:00
bors[bot]
7d9e6d8caa
Merge #821
...
821: Remove patch version in deps when not necessary r=MarkMcCaskey a=MarkMcCaskey
This allows wasmer library users to have more control over the exact versions of deps that Wasmer uses.
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-09-20 23:44:37 +00:00
Syrus Akbary
862a4c5448
Merge pull request #814 from confio/fix-linux-image-link-error
...
Fix issues with testing/linking singlepass in runtime-c-api
2019-09-20 16:33:30 -07:00
Mark McCaskey
bf396ec76d
Remove patch version in deps when not necessary
2019-09-20 16:11:09 -07:00
Mark McCaskey
7f2c532594
Allow dead code in emscripten WasmPtr
2019-09-20 13:19:31 -07:00
Mark McCaskey
882a77ccf9
Remove null pointer checks generally, re-add them in Emscripten
2019-09-20 12:02:12 -07:00
Patrick Ventuzelo
7deed3160b
cargo fmt
2019-09-20 18:59:36 +02:00
Patrick Ventuzelo
ca409f78c5
fix spectest
2019-09-20 18:54:05 +02:00
bors[bot]
0790ebff0c
Merge #803
...
803: Add method to call function at index on Ctx r=MarkMcCaskey a=MarkMcCaskey
For #638 and #670
```Rust
fn call_guest_fn(ctx: &mut Ctx, guest_fn: u32) -> u32 {
println!("{}", guest_fn);
let guest_fn_typed = unsafe { std::mem::transmute(guest_fn) };
let result = ctx.call_with_table_index(guest_fn_typed, &[]).unwrap();
println!(" -> {:?}", result);
0
}
```
is what this looks like from the Host side
See `examples/callback.rs` for an example that doesn't require `transmute`
# Review
- [x] Create a short description of the the change in the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-09-19 20:55:09 +00:00
Ivan Enderlin
9a49fb59e0
Merge branch 'master' into fix-test-typo
2019-09-19 22:15:32 +02:00
bors[bot]
dd1a4a6c10
Merge #805
...
805: Replace panic! & unimplemented! in runtime-code and llvm-backend r=nlewycky a=pventuzelo
# Description
Replace `unimplemented!` by already used `CodegenError` in `lib/llvm-backend/src/code.rs`
Replace `unimplemented!` by `Err` in `lib/llvm-backend/src/trampolines.rs`
Replace `panic!` by already used `BinaryReaderError` in `lib/runtime-core/src/parse.rs`
# Review
- [ ] Create a short description of the the change in the CHANGELOG.md file
Co-authored-by: Patrick Ventuzelo <ventuzelo.patrick@gmail.com>
2019-09-19 19:20:04 +00:00
Johan Andersson
8d0edc61df
Merge master
2019-09-19 11:16:14 +02:00
Mark McCaskey
a9d8b22fe7
Merge branch 'master' into feature/call-function-at-index-on-just-ctx
2019-09-18 16:46:08 -07:00
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
Ethan Frey
8ae255b51a
Fix issues with testing/linking singlepass in runtime-c-api
2019-09-19 00:19:17 +02:00
Ethan Frey
e8a918e2e5
%lld -> %ld fixes cargo test compile error
2019-09-18 23:25:35 +02:00
losfair
a124d87d0f
Fix Operator::MemorySize.
2019-09-19 01:10:23 +08:00
losfair
5f8b289751
movzx/movsx
2019-09-19 01:04:20 +08:00
losfair
8a91f801b9
Fix return from homomorphic host redirection trampoline.
2019-09-18 21:47:31 +08: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
losfair
72b6123def
Fix memory grow
2019-09-18 02:38:35 +08:00
losfair
e40600533e
Add missing emit_mov
variants.
2019-09-18 02:30:45 +08:00
losfair
97b75d0124
Ensure callee-saved registers are properly preserved.
2019-09-18 02:21:35 +08:00
losfair
b57aba4ae7
Add homomorphic host redirection abstraction for vm->host calls.
2019-09-18 02:14:13 +08: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
726269a52c
fix missing info error
2019-09-17 12:05:00 +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
Johan Andersson
ba488adb8f
Merge branch 'master' into remove-colored
2019-09-16 22:17:34 +02:00
Nick Lewycky
05816e3221
This is no longer referring to the correct line.
...
It's supposed to be 352 which is already there.
2019-09-16 13:13:21 -07:00
Nick Lewycky
2108c908a4
Depending on the micro-arch, this function may trigger emission of a stack realignment. If it does, OSR can't statically prove that it's safe to insert a function call and asserts.
2019-09-16 12:14:10 -07:00
Nick Lewycky
59597b9e83
Switch from PIC+Default (small) to Static+Large. Should fix flaky test failures.
2019-09-16 10:49:39 -07:00
losfair
d8b313e3fd
Fix emit_lea.
2019-09-17 00:49:21 +08:00
losfair
05557fc9ad
Bump dynasm to v0.5.1
2019-09-16 23:46:10 +08:00
Patrick Ventuzelo
00c2e09f43
fix CodeGen message type
2019-09-16 11:00:03 +02:00