Ivan Enderlin
0f82cd3c40
doc(runtime-core) Write more documentation.
2019-11-06 14:48:46 +01:00
Ivan Enderlin
81326cee13
doc(runtime-core) Write more documentation.
2019-11-06 14:48:46 +01:00
Ivan Enderlin
3b34a9187a
chore(runtime-core) Remove dbg!
.
2019-11-06 14:48:46 +01:00
Ivan Enderlin
2a041f898e
!temp
2019-11-06 14:48:46 +01:00
Ivan Enderlin
6035bd2d9b
feat(runtime-core,clif-backend,llvm-backend) Rename an ImportFunc
offset.
...
`ImportedFunc::offset_vmctx` becomes `ImportedFunc::offset_func_ctx`.
2019-11-06 14:48:46 +01:00
Ivan Enderlin
e002c377ef
feat(runtime-core) vm::ImportedFunc
and vm::FuncCtx
have NonNull
pointers.
2019-11-06 14:48:46 +01:00
Ivan Enderlin
177c507a4e
feat(runtime-core) Introduce vm::FuncCtx
.
...
`vm::FuncCtx` replaces `vm::Ctx` as first argument passed to host
functions (aka imported functions).
2019-11-06 14:48:46 +01:00
nlewycky
dc437bb4e7
Fix typo in comment.
2019-11-05 11:31:14 -08:00
Ivan Enderlin
2703d48098
Merge branch 'master' into feat-runtime-core-host-function-without-vmctx
2019-10-31 10:59:16 +01:00
Ivan Enderlin
6a1d490a30
doc(runtimecore) Explain ExternalFunctionKind
with more details.
2019-10-30 19:34:04 +01:00
Ivan Enderlin
7eef49be12
test(runtime-core) Test host functions without a vm::Ctx
argument.
2019-10-30 19:34:04 +01:00
Ivan Enderlin
95e1b85c56
feat(runtime-core) Allow host functions without an explicit vm::Ctx
argument.
...
This patch allows host functions to get a signature without an
explicit `vm::Ctx` argument.
It is for Rust only. The C API receives a function pointer and has no
clue whether a `vm::Ctx` argument is present or not, so it assumes it
is always declared.
From the backend point of view, the pointer to `vm::Ctx` is always
inserted in the stack, but it is not used by the function when the
argument is absent.
2019-10-30 19:34:04 +01:00
Ivan Enderlin
bd9d4d9cc8
test(runtime-core) Add tests for the Func
structure.
2019-10-30 19:34:04 +01:00
Ivan Enderlin
77e01f01bd
chore(runtime-core) Use vm::Ctx
to access it.
...
Just to be consistent with the rest of the code.
2019-10-30 19:34:04 +01:00
Ivan Enderlin
edb6cbefca
fix(runtime-core) Share the definition of Trampoline
across all the backends.
...
This patch updates all the backends to use the definition of
`Trampoline` as defined in the `wasmer_runtime_core::typed_func`
module. That way, there is no copy of that type, and as such, it is
easier to avoid regression (a simple `cargo check` does the job).
This patch also formats the `use` statements in the updated files.
2019-10-30 13:10:34 +01:00
Mark McCaskey
82f258b888
Prepare for 0.9.0 release
2019-10-23 13:40:35 -07:00
Mark McCaskey
0fd0ab6e58
Merge branch 'master' into ventuzelo/add-detail-unimplemented-calls-runtime
2019-10-23 12:30:14 -07:00
bors[bot]
77527c23ce
Merge #877
...
877: Reimplement F32Min, F32Max, F64Min and F64Max. r=nlewycky a=nlewycky
# Description
Reimplement F32Min, F32Max, F64Min and F64Max.
Adds XMM8--15 registers. Adds VMOVA, VBLEND and VXORP, and the VCMPUNORD and VCMPORD comparisons.
Fixes 419 test failures.
Co-authored-by: Nick Lewycky <nick@wasmer.io>
2019-10-22 17:33:44 +00:00
Nick Lewycky
88dc613385
Save and restore the additional XMM registers in OSR too.
2019-10-21 19:44:16 -07:00
Nick Lewycky
961684a8e0
Adjust comment rulers.
2019-10-18 16:33:49 -07:00
Nick Lewycky
8424b61444
Fix typo in comment.
2019-10-18 16:33:49 -07:00
Nick Lewycky
f99d0360d2
Add registers XMM8--15 to from_dwarf_regnum
and invoke_call_return_on_stack
.
2019-10-16 10:34:37 -07:00
Ivan Enderlin
81be25d970
feat(runtime-core) Add documentation and make macros more readable.
...
After a long time, the macros are easy to read, but not at first
glance. I hope this PR will improve the situation: Same syntax used
everywhere, more spaces…
2019-10-16 16:07:50 +02:00
Nick Lewycky
765e1d3b9e
Add XMM8--XMM15. These were added in x64.
2019-10-14 13:46:55 -07:00
losfair
2e532fa66d
Preserve fault.ip when calling middleware.
2019-10-14 20:23:27 +08:00
losfair
b0b0983eb8
Allow accessing execution state in middleware breakpoint handlers.
2019-10-13 20:51:39 +08:00
losfair
5499a69ddc
Run cargo fmt on everything.
2019-10-13 20:02:47 +08:00
losfair
c18bdd52cc
Fix inline breakpoints on macOS.
2019-10-13 20:02:28 +08:00
losfair
94f97109ff
Include backend metadata in tiering module.
2019-10-11 21:05:17 +08:00
losfair
db59127f71
Inline breakpoint support in core.
2019-10-11 21:04:53 +08:00
Yaron Wittenstein
420bfa570e
Merge branch 'master' into deterministic
2019-10-10 15:55:35 +03:00
losfair
bd06aa02ba
x
2019-10-08 19:07:38 +08:00
losfair
c337999c5c
x
2019-10-08 18:43:39 +08:00
losfair
b5bb3fa764
Move {push,pop}_code_version to caller side for non-mananged execution.
2019-10-08 18:41:22 +08:00
Yaron Wittenstein
3489bfb9b9
renamed feature flag deterministic
to deterministic-execution
2019-10-07 23:07:20 +03:00
Nick Lewycky
4d99963640
Replace "be the i32 type" with "be an i32" in error messages.
2019-10-07 12:11:10 -07:00
losfair
e0e7d58313
Make state mapping work on non-x86 architectures.
2019-10-07 23:00:37 +08:00
Yaron Wittenstein
6ca5812798
When deterministic
feature will be enabled (turned-off by default) it'll guarantee deterministic
...
execution of wasm programs across different hardware/circumstances.
This is very useful for Blockchain projects having wasm smart-contracts
This is critical for Blockchain projects that require execution to be deterministic
in order to reach a consensus of the state transition of each smart-contract transaction.
2019-10-07 16:58:58 +03:00
losfair
80d6c4cbc0
Implement get_fault_info for aarch64.
2019-10-06 18:27:35 +08:00
Patrick Ventuzelo
4b3880c88b
add details when calling unimplemented!
2019-10-03 11:26:54 +02:00
Mark McCaskey
c77cbc1f40
Prepare for 0.8.0 release
2019-10-02 15:40:35 -07:00
Mark McCaskey
871310a851
Improve docs from feedback
2019-09-27 10:15:40 -07:00
Mark McCaskey
dc1744560c
Add lots of rustdocs and clean up one line of code
2019-09-26 17:17:50 -07:00
Brandon Fish
c69cdeca9b
Update cranelift backend to fork version 0.44.0
2019-09-25 23:37:39 -05:00
Mark McCaskey
4266926e90
Add ImportObject maybe_with_namespace
example
2019-09-25 12:37:27 -07:00
Patrick Ventuzelo
b45a228e84
Merge branch 'master' into ventuzelo/fix-800-index-oob-backing
2019-09-25 09:30:33 +02:00
Syrus
7bf306eb27
Use flat-square style in downloads button
2019-09-24 13:42:17 -07:00
Syrus
621ef56ab6
lmproved READMEs to use Azure Pipelines badges and better lgo
2019-09-24 13:36:31 -07:00
Syrus Akbary
588a77d2af
Merge branch 'master' into feature/merge-cranelift-0-43-1
2019-09-24 11:41:14 -07:00
Patrick Ventuzelo
ac321846e3
Merge branch 'master' into ventuzelo/fix-653-panic-memorydescriptor
2019-09-24 09:10:45 +02:00