ptitSeb
2953093fb1
Some more cleanup
2022-08-23 11:28:43 +02:00
ptitSeb
553745cd3d
Move LinearMemory trait and VMMemoryDefinition to wasmer_vm (from wasmer_types)
2022-08-19 16:00:38 +02:00
ptitSeb
f599df0240
Fix linter
2022-08-18 16:58:04 +02:00
John Sharratt's Shared Account
c7c1507b8b
Implemented LinearMemory trait
2022-08-18 16:53:37 +02: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
Amanieu d'Antras
738a66f719
Implement the new Context API for the core API
...
Co-authored-by: ptitSeb <sebastien.chev@gmail.com >
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
a6173f9746
Remove wasmer-{artifact,engine} and merge it into wasmer-compiler and wasmer-vm
2022-06-16 16:57:45 +03:00
Wolfgang Silbermayr
5339f7cdae
Fix clippy lints
...
Fixes : #2926
2022-06-09 16:05:53 +02:00
Manos Pitsidianakis
00f9a3c8d7
Remove loupe dependency
...
Closes #2731
Closes #2744
2022-06-08 14:12:49 +03:00
ptitSeb
0c7ea79bfc
Cleanup:
...
Removed conditionnal toml on wasm for VM as it's not builded in that configuration
Added unwind to wasm build
Moved Trap back to vm (from types) as it's used only on Runtime
Move MemoryError back to vm (from types) as it's used on Runtime only scenario
Some cleanup and lint fixes
Removed wasm build case from vfs/host_fs as it's not used
2022-05-03 09:34:13 +02:00
ptitSeb
1f3613c881
Split Artifact to have ArtifactCreate that handles only the creation part, not the run part
2022-05-03 09:32:34 +02:00
ptitSeb
3d7ae9e21f
Moved LibCall enum to wasmer_types, and compiler is no longer dependant of wasmer_vm
2022-05-03 09:32:34 +02:00
ptitSeb
e745ceab7a
Moved TableStyle and MemoryStyle to wasmer-types (and compiler-single pass do not depend from vm anymore)
2022-05-03 09:32:34 +02:00
ptitSeb
eb7ef52521
Move VMOffset (and a few friends) to wasmer_types, and adapted compiler-singlepass to use it
2022-05-03 09:32:34 +02:00
Manos Pitsidianakis
77af8ba634
Fix some clippy lints
...
Before:
```
% make lint 2>&1 | grep warnings | sort | uniq
error: could not compile `wasmer-cli` due to previous error; 25 warnings emitted
warning: `compiler-test-derive` (lib) generated 8 warnings
warning: `test-generator` (lib) generated 4 warnings
warning: `wasi-test-generator` (bin "wasi-test-generator") generated 8 warnings
warning: `wasmer-cache` (lib) generated 4 warnings
warning: `wasmer-cli` (lib) generated 25 warnings
warning: `wasmer-compiler-cranelift` (lib) generated 50 warnings
warning: `wasmer-compiler-singlepass` (lib) generated 228 warnings
warning: `wasmer-compiler` (lib) generated 3 warnings
warning: `wasmer-emscripten` (lib) generated 182 warnings
warning: `wasmer-engine-dummy` (lib) generated 6 warnings
warning: `wasmer-engine-dylib` (lib) generated 37 warnings
warning: `wasmer-engine-staticlib` (lib) generated 16 warnings
warning: `wasmer-engine-staticlib` (lib) generated 7 warnings
warning: `wasmer-engine-universal` (lib) generated 11 warnings
warning: `wasmer-engine` (lib) generated 15 warnings
warning: `wasmer-object` (lib) generated 5 warnings
warning: `wasmer-types` (lib) generated 31 warnings
warning: `wasmer-vfs` (lib) generated 4 warnings
warning: `wasmer-vm` (lib) generated 40 warnings
warning: `wasmer-wasi-experimental-io-devices` (lib) generated 11 warnings
warning: `wasmer-wasi-types` (lib) generated 3 warnings
warning: `wasmer-wasi` (lib) generated 13 warnings
warning: `wasmer-wast` (lib) generated 11 warnings
warning: `wasmer` (lib) generated 54 warnings
```
After:
```
warning: `wasmer-cli` (lib) generated 16 warnings
warning: `wasmer-compiler-cranelift` (lib) generated 48 warnings
warning: `wasmer-compiler-singlepass` (lib) generated 213 warnings
warning: `wasmer-emscripten` (lib) generated 170 warnings
warning: `wasmer-engine-dummy` (lib) generated 6 warnings
warning: `wasmer-engine-dylib` (lib) generated 4 warnings
warning: `wasmer-engine-staticlib` (lib) generated 14 warnings
warning: `wasmer-engine-staticlib` (lib) generated 5 warnings
warning: `wasmer-engine-universal` (lib) generated 9 warnings
warning: `wasmer-engine` (lib) generated 12 warnings
warning: `wasmer-object` (lib) generated 3 warnings
warning: `wasmer-types` (lib) generated 7 warnings
warning: `wasmer-vm` (lib) generated 36 warnings
warning: `wasmer-wasi-experimental-io-devices` (lib) generated 6 warnings
warning: `wasmer-wasi-types` (lib) generated 3 warnings
warning: `wasmer-wasi` (lib) generated 9 warnings
warning: `wasmer-wast` (lib) generated 9 warnings
warning: `wasmer` (lib) generated 42 warnings
```
2022-04-20 18:25:04 +03:00
Syrus Akbary
14c75e7b51
Fixed RuntimeError start when instantiating wasmer-js
2021-07-22 16:49:20 -07:00
Syrus Akbary
c398cae110
Fix breaking change
2021-07-22 16:22:30 -07:00
Syrus Akbary
98481f51fe
Move ModuleInfo to wasmer-types
2021-07-16 15:42:39 -07:00
Mark McCaskey
9b216cc5e5
Address testing related feedback
...
Expose inner VM externals as an unsafe method and move logic into the tests
2021-05-28 11:41:57 -07:00
Syrus Akbary
4f3aecd66d
Fixed comments
2021-04-29 14:32:01 -07:00
Syrus Akbary
50f899af69
Move from serde to rkyv
2021-04-29 01:24:44 -07:00
Mark McCaskey
e53b039c91
Address feedback, clean up ref types PR
2021-03-31 08:38:33 -07:00
Mark McCaskey
ef60f08740
Merge branch 'master' into feature/reference-types
2021-03-23 09:42:34 -07:00
Ivan Enderlin
03486f3b8a
feat: Use latest version of loupe.
2021-03-23 13:04:45 +01:00
Ivan Enderlin
44dc884260
feat: Start implementing loupe::MemoryUsage on wasmer::Module.
2021-03-23 13:04:45 +01:00
Mark McCaskey
6e3f835db8
Merge branch 'master' into feature/reference-types
2021-02-10 06:36:36 -08:00
Mark McCaskey
7b8c5b3554
More work on reference types -- wip
2021-02-09 10:54:26 -08:00
Mark McCaskey
6cfcc92d52
Implement further for compiler-cranelift; add ExternRef
2021-02-08 12:49:15 -08:00
Mark McCaskey
ecf891e0ac
Add extra layer of indirection for funcref, update tables
...
This is still a WIP, cranelift is passing spectests but singlepass has 3
failures and LLVM is not implemented correctly
2021-02-03 07:47:25 -08:00
Mark McCaskey
e013581fda
Update vm::Table to support more than just funcref
2021-01-29 10:19:19 -08:00
Mark McCaskey
f798f34eef
Merge branch 'master' into fix/host-func-env-memory-leak
2020-12-11 17:22:08 -08:00
Mark McCaskey
bd01d6a203
Address feedback
2020-12-11 15:47:12 -08:00
Mark McCaskey
569bfd5e67
Rename InstanceAllocator -> InstanceRef, use alloc name for builder
2020-12-11 12:19:25 -08:00
Mark McCaskey
9473e2e9d5
Address feedback, make InstanceBuilder private
2020-12-10 11:37:23 -08:00
Mark McCaskey
38363b11b9
Run cargo fmt
2020-12-09 15:58:49 -08:00
Mark McCaskey
ba583d23ff
Update docs
2020-12-09 14:39:52 -08:00
Mark McCaskey
410750a588
Remove "Instance was written" type state
2020-12-08 18:08:22 -08:00
Mark McCaskey
cc5648f118
Remove middle step
2020-12-08 17:22:41 -08:00
Mark McCaskey
e85e088cd9
Fix memory leak in InstanceAllocator on failure
2020-12-08 16:22:35 -08:00
Mark McCaskey
1eaea6ecf1
Fix memory leak in host function envs
2020-12-02 16:56:05 -08:00
Mark McCaskey
8669e92ed4
Move EngineExport to engine
2020-11-25 16:44:21 -08:00
Nick Lewycky
1a1bcbc21b
Document why Send and Sync are safe.
2020-11-02 13:22:19 -08:00
Nick Lewycky
22187a8dc4
Make FunctionBodyPtr a thin pointer.
...
This requires keeping the length around and passing it around in a few places that need it.
2020-11-02 12:56:54 -08:00
bors[bot]
a5281eaab8
Merge #1753
...
1753: Use a union for VMContext for functions r=MarkMcCaskey a=MarkMcCaskey
This makes the code more self documenting and correctly uses `unsafe`
to communicate that it's the caller's responsibility to ensure that the
code paths that can lead to the access can only write the value they
expect to be there.
spun off of #1739
- [x] There's still some inconsistent use of `vmctx` and `extra_data` might be good to unify this more.
- [x] Improve docs on the new type
Co-authored-by: Mark McCaskey <mark@wasmer.io >
2020-10-31 00:48:30 +00:00
Mark McCaskey
e3dfcf8b6f
Rename VMFunctionExtraData to VMFunctionEnvironment
2020-10-30 17:31:52 -07:00
Nick Lewycky
61abc72c9d
NFC. Make FunctionBodyPtr hold a const pointer.
2020-10-29 15:18:42 -07:00
Mark McCaskey
b124ea2032
Use a union for VMContext for functions
...
This makes the code more self documenting and correctly uses `unsafe`
to communicate that it's the user's responsibility to ensure that the
code paths that can lead to the access can only write the value they
expect to be there.
2020-10-22 11:46:42 -07:00
Nick Lewycky
c6bec2f23a
In engine-jit, load code for each artifact contiguously.
2020-09-16 12:53:30 -07:00
Syrus
6785e7e7ad
Move TableInitializer to wasm_common
2020-07-26 11:47:30 -07:00
Syrus
9ccaf70f70
Renamed table_elements to table_initializers
2020-07-25 01:51:09 -07:00