Nick Lewycky
e9d5c7896c
Merge .eh_frame without interpretation. Add a 0-CIE to the end.
...
Add unfinished attempt at using gimli, to be deleted but recorded in case we need it in the future.
2020-06-18 15:35:37 -07:00
Nick Lewycky
77c3ce5a33
Add 8-byte PC-relative relocation.
2020-06-18 15:34:23 -07:00
Nick Lewycky
52eae576fc
Record the .eh_frame sections from each .o file.
2020-06-18 15:34:23 -07:00
Nick Lewycky
69ccd86b4a
Enable the tests that are failing and will be fixed on this branch.
2020-06-18 15:34:23 -07:00
Mark McCaskey
c5a879146a
Begin readding WASI tests
2020-06-18 14:44:33 -07:00
Syrus Akbary
338e93322f
Merge pull request #118 from wasmerio/config-refactor
...
Config refactor
2020-06-18 14:11:30 -07:00
Syrus
d27fee87aa
Trying to fix lint issue
2020-06-18 13:40:38 -07:00
Syrus
30516b5930
Improved docs
2020-06-18 13:24:41 -07:00
Syrus
895c70712f
Fixed lint error
2020-06-18 13:17:46 -07:00
Syrus
e604d6db49
Fixed linting
2020-06-18 13:08:52 -07:00
Syrus
5273fa0cae
Moved tunables into Store
2020-06-18 12:56:38 -07:00
Syrus
83203a849b
Improved tunables story
2020-06-18 12:08:55 -07:00
Syrus Akbary
6a9d0faaad
Merge pull request #120 from wasmerio/feat-api-nativefunc
...
feat(api) `Function::native` returns a `Result`
2020-06-18 10:27:16 -07:00
Ivan Enderlin
a312d9b67d
feat(wasm-common) Variant of the previous patch: panic! in wrap.
2020-06-18 17:21:31 +02:00
Ivan Enderlin
e82a78c383
feat(wasm-common) Support Result as returned type for host functions.
...
We re-use the `TrapEarly` trait to represent a host function that
return a Wasm value, or a `Result` of a Wasm value.
In this patch, the returned value of the `wrap` functions is
`Result<Rets::CStruct, Trap::Error>`. Note that it will require a
large amount of modification on the compilers side.
2020-06-18 17:17:58 +02:00
Ivan Enderlin
4da16e0c48
chore(wasm-common) Clean up the code.
2020-06-18 17:17:40 +02:00
Ivan Enderlin
b71d929f66
doc(runtime) Fix a typo.
2020-06-18 17:16:42 +02:00
Ivan Enderlin
4a5ce43787
feat(api) Function::native returns a Result.
...
This patch updates `Function::native` to return a `Result` rather than
an `Option`.
2020-06-18 15:28:08 +02:00
Syrus
769ffebb61
Improved feature-generation to be compiler-based
2020-06-18 02:11:54 -07:00
Syrus
422051ebe5
Simplified compiler config names
2020-06-18 01:36:25 -07:00
Syrus
1002a2765c
Improved default store
2020-06-18 01:34:11 -07:00
Syrus
74e4ab0e53
Simplify testing logic
2020-06-18 01:20:26 -07:00
Syrus
f2fa2a9100
Created builders for JIT and Native engines
2020-06-18 00:57:32 -07:00
Syrus
5f6c931710
Fixed c-api compilation
2020-06-17 23:17:13 -07:00
Syrus
99bd98458a
Improved compiler configurations
2020-06-17 22:47:32 -07:00
Syrus
8649f2eb79
Remove target from CompilerConfig
2020-06-17 20:26:50 -07:00
Syrus
e062e87d8b
Refactored Compilers
2020-06-17 19:17:06 -07:00
Mark McCaskey
d5fd82bed4
Add comment explaining WasiMemory Drop logic
2020-06-17 16:08:23 -07:00
Mark McCaskey
084a1550fa
Clean up and comment WASI delayed initialization code
2020-06-17 15:45:40 -07:00
Syrus Akbary
bf5259fb31
Merge pull request #116 from wasmerio/feature/add-table-as-trait
...
Add `Table` as a trait
2020-06-17 14:32:56 -07:00
Mark McCaskey
d150be816b
Implement shared, delayed WASI memory initialization
2020-06-17 13:57:06 -07:00
Mark McCaskey
3d46711cb3
Add Table as a trait
2020-06-17 12:18:22 -07:00
Syrus Akbary
67044eb9bb
Merge pull request #114 from wasmerio/feature/memory-is-a-trait
...
Implement the `Memory` API as a trait
2020-06-17 11:35:09 -07:00
Mark McCaskey
f85f4636f3
Clean up and address feedback
2020-06-17 10:59:29 -07:00
Heyang Zhou
999bf25c83
Merge pull request #100 from wasmerio/middleware
...
Middleware
2020-06-18 01:07:50 +08:00
losfair
0f6268af7c
Remove unused imports.
2020-06-18 00:51:19 +08:00
losfair
9d27bd2318
Merge remote-tracking branch 'origin/master' into middleware
2020-06-18 00:41:42 +08:00
Syrus Akbary
36e2fd6216
Merge pull request #115 from wasmerio/compiler-simplification
...
Unify trampolines in Compilation object
2020-06-16 22:28:09 -07:00
Syrus Akbary
48bc984833
Update lib/compiler/src/function.rs
2020-06-16 22:09:54 -07:00
Syrus Akbary
2efa44396e
Apply suggestions from code review
...
Co-authored-by: nlewycky <nick@wasmer.io >
2020-06-16 22:07:37 -07:00
Syrus
03494ac1a2
Unify trampolines in Compilation object
2020-06-16 20:11:47 -07:00
Syrus Akbary
ca1586d3ad
Update lib/compiler/Cargo.toml
...
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com >
2020-06-16 18:37:35 -07:00
Mark McCaskey
bfb09543d9
Implement the Memory API as a trait
2020-06-16 16:30:15 -07:00
Syrus
1e590f1bea
Fixed import order
2020-06-16 13:57:38 -07:00
Mark McCaskey
ef285aae6c
Merge pull request #110 from wasmerio/feature/functions-own-their-envs
...
Change functions to own their `env`s
2020-06-16 13:36:05 -07:00
Mark McCaskey
cf3a391422
Add comment about derefing typecasted pointer
2020-06-16 13:01:51 -07:00
Syrus Akbary
2ee55add0b
Added support for ARM-based machines
2020-06-16 19:58:47 +00:00
Mark McCaskey
d85a5c56f1
Fix C API
2020-06-16 12:42:08 -07:00
Mark McCaskey
e67759c000
Run cargo fmt
2020-06-16 12:22:32 -07:00
Mark McCaskey
3cebca05d2
Require Env to be 'static in Function
2020-06-16 12:18:24 -07:00