Syrus Akbary
4384ddf9cd
Improved EngineBuilder and Store API
...
- Store::new() now takes an impl Into<Engine>.
- Added Into<Engine> impls in each of the compilers
- Updated docs/migration_to_3.0.0.md on API usage
2022-07-28 15:20:26 +03:00
Manos Pitsidianakis
214346af3b
Merge Backend into EngineBuilder and refactor feature flags
2022-07-27 21:03:24 +03:00
Manos Pitsidianakis
4a06b1d3f6
Rename engine's Universal type to Backend
...
The Universal type was essentially a builder of engines that's given a
compiler backend and creates an Engine with .engine() method. The name
was not clear.
2022-07-25 13:23:13 +03:00
Syrus Akbary
a419ccdf52
Move Webassembly objects to Store and remove Context
...
Co-authored-by: ptitSeb <sebastien.chev@gmail.com >
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io >
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
f744bac1a2
Store: replace new() with new_with_engine() and make new() take CompilerConfig
...
Since there's one engine now, it doesn't make sense to initialize a
`Store` with the engine specifically. It's an extra redundant step for
the API user.
2022-06-16 16:57:45 +03:00
ptitSeb
0cd9dfe3e0
Fixed linter warnings/errors
2022-06-15 19:26:57 +03:00
Wolfgang Silbermayr
da4e9fe617
Rename NativeFunc to TypedFunction
...
Closes : #2915
2022-06-08 14:12:51 +03:00
Ivan Enderlin
e5a784a006
feat: Rename wasmer-engine-jit to wasmer-engine-universal.
...
This (small) patch renames the `wasmer-engine-jit` crate into
`wasmer-engine-universal`.
2021-05-25 16:12:06 +02:00
François Garillot
1915b51892
Clippy fixes
2021-03-24 07:18:49 -07:00
Syrus
13e6f29c29
Set compiler config to be owned (following wasm-c-api)
2020-12-04 02:39:19 -08:00
Syrus
b06f021612
Improved Function API
2020-07-21 20:02:01 -07:00
Syrus
5273fa0cae
Moved tunables into Store
2020-06-18 12:56:38 -07:00
Mark McCaskey
3f45582097
Merge branch 'master' into trace-issue
2020-06-09 16:35:37 -07:00
Mark McCaskey
7eb54950f1
Revert changes to Exportable
2020-06-09 13:26:12 -07:00
Mark McCaskey
a8faa2eb9c
Add benchmark with many parameters
2020-06-09 13:14:12 -07:00
Mark McCaskey
eb928e739c
Implement host functions in 1 case, optimize NativeFunc::call
...
`NativeFunc::call` is about 8% faster in the case we're benchmarking
by avoiding allocating a vector for the params / returns, instead we
do logic to determine which is larger and use that, conditionally
copying it back to the rets array if needed.
2020-06-09 11:35:58 -07:00
Mark McCaskey
e70828eb37
Fix up tests and benchmark to use new get
2020-06-08 16:10:05 -07:00
Mark McCaskey
e2b6041a65
Add benchmark
2020-06-08 13:58:21 -07:00