Commit Graph

34 Commits

Author SHA1 Message Date
Mark McCaskey
ef60f08740 Merge branch 'master' into feature/reference-types 2021-03-23 09:42:34 -07:00
Ivan Enderlin
d801eb4bfe feat: Use latest version of loupe. 2021-03-23 14:57:36 +01:00
Ivan Enderlin
906079fd9d feat: Implement MemoryUsage for Instance. 2021-03-23 14:57:36 +01:00
Mark McCaskey
54b76cddfc Get references passed through globals fully working via top level API 2021-02-23 11:52:31 -08:00
Ivan Enderlin
facd41412a feat(vm) Rename the instance_allocator fields to instance_ref. 2020-12-14 10:28:38 +01:00
Mark McCaskey
d54a8b8676 Improve Wasmer API intro docs 2020-12-07 13:29:53 -08:00
Ivan Enderlin
7973a965fb Merge branch 'master' into fix-vm-leak 2020-12-01 10:08:21 +01:00
Mark McCaskey
03410c15a1 Rename EngineExport to Export 2020-11-30 12:32:53 -08:00
Mark McCaskey
9e0cfcebbb Rename vm::Export to vm::VMExport 2020-11-30 11:38:14 -08:00
Mark McCaskey
8669e92ed4 Move EngineExport to engine 2020-11-25 16:44:21 -08:00
Mark McCaskey
7013163829 WIP attempt to make an Export wrapper type
I can't figure out how we can ever use the non-wrapped type though
2020-11-25 10:59:04 -08:00
Ivan Enderlin
e77afea383 big patch: Start injecting InstanceAllocator everywhere. 2020-11-23 17:25:09 +01:00
Ivan Enderlin
ca89bd5d75 feat(api) Rename Extern::from_export to …::from_vm_export.
I hope this little change will clarify a little bit that the `Export`
passed to `Extern::from_vm_export` is not a `wasmer::Export` but a
`wasmer_vm::Export`.
2020-11-19 11:06:18 +01:00
jubianchi
8782c0f9ea doc(examples): Add Global examples 2020-10-26 22:37:29 +01:00
Nick Lewycky
3aec7f74f2 Remove redundant clone, this is an Arc.
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
2020-10-08 20:26:47 -07:00
Nick Lewycky
fdf70880db Use Self instead of the full name of the structure.
https://rust-lang.github.io/rust-clippy/master/index.html#use_self
2020-10-08 20:15:47 -07:00
Mark McCaskey
c2a10c4046 Remove redundant checks form api::Global::set 2020-09-03 16:53:57 -07:00
Mark McCaskey
18f8a58d72 Fix soundness issue in vm::Global
The `unsafe impl` for `Send` and `Sync` relies on the global being
locked when it's being accessed; the get and get_mut functions did
not (and could not) do this, so we replace them with `get` and `set`
methods which operate on `Value`s directly.

Additionally the `get_mut` function took a `&self` and returned a
`&mut` to the underlying data which allows for aliased mutable
references to the same data which is another soundness issue.
2020-09-03 15:23:11 -07:00
Syrus
756ae2017c Fixed v128 bytes 2020-07-24 16:15:47 -07:00
Syrus
a749f899f0 Fixed tests 2020-07-24 15:37:59 -07:00
Syrus
b5d35356e8 Fixed syntax 2020-07-24 14:12:46 -07:00
Syrus
2c34fd2338 Fixed global API 2020-07-24 14:08:58 -07:00
Syrus
04f2250195 Simplified globals a bit further 2020-07-23 16:16:11 -07:00
Syrus
59715c12e0 Improved API a bit further 2020-07-23 16:07:30 -07:00
Syrus
b7d41e1e31 Merge branch 'master' into feature/improve-thread-safety-of-core-types
# Conflicts:
#	lib/api/src/instance.rs
#	lib/engine-jit/src/artifact.rs
#	lib/engine-native/src/artifact.rs
2020-07-23 15:29:13 -07:00
Syrus
9a80977743 Improved docs a bit further 2020-07-15 18:12:18 -07:00
Syrus
0c13173624 Fixed comments based on feedback 2020-07-15 18:04:13 -07:00
Syrus
7bf6b9efc9 Added spec docs to app API public objects 2020-07-15 17:40:35 -07:00
Syrus
e0fbf70234 Simplify Global new 2020-07-10 13:32:38 -07:00
Mark McCaskey
f9bce8858b Merge branch 'master' into feature/improve-thread-safety-of-core-types 2020-07-09 13:57:58 -07:00
Syrus
92f8651312 Renamed wasmer_runtime to wasmer_vm 2020-07-07 21:26:06 -07:00
Mark McCaskey
c717a25770 Make Global threadsafe, fix memory leak, etc in Global 2020-06-30 17:28:56 -07:00
Mark McCaskey
342b2cf927 Get Wasm C API Hello World working 2020-05-29 13:39:24 -07:00
Ivan Enderlin
0ba966018b feat(api) Split the externals module into sub-modules. 2020-05-28 16:07:17 +02:00