Daniel Miller (Earthmark)
cdf3d6e198
Fixed the ptr.rs comments having compiler errors.
2021-05-08 10:26:05 -07:00
Daniel Miller (Earthmark)
00e3553389
Merge remote-tracking branch 'origin/master' into earthmark-WasmPtr-StructComment
2021-05-08 10:24:15 -07:00
Mark McCaskey
18fe400758
Fix doc test
2021-05-05 08:27:42 -07:00
Mark McCaskey
97c4a03e67
Recompute Memory::ty, make it return by value
...
This is a requirement of the updated `imports.wast` spectest
2021-05-05 07:50:35 -07:00
Syrus Akbary
f7e152a71f
Renamed VMExport to VMExtern
2021-05-01 18:22:47 -07:00
Syrus Akbary
6c87c851fb
Fixed formatting
2021-05-01 09:26:36 -07:00
Syrus Akbary
b82edb9906
Improved naming
2021-05-01 02:25:44 -07:00
Syrus
9befaf64be
Simplified function environment
2021-05-01 02:15:18 -07:00
Syrus
8fae8ae8dc
Simplified api function
2021-05-01 01:23:32 -07:00
Syrus
a7367ea7e2
Fixed lint
2021-05-01 00:42:53 -07:00
Syrus
07b625a9e0
Simplified table api
2021-05-01 00:37:28 -07:00
Syrus
12226f3d29
Simplified global api
2021-05-01 00:34:00 -07:00
Syrus
165152ddb8
Simplified api Memory
2021-05-01 00:31:51 -07:00
Syrus
da8e6b4219
First move from vmexports
2021-05-01 00:19:59 -07:00
Daniel Miller (Earthmark)
f06603cd4e
Merge branch 'earthmark-WasmPtr-StructComment' of https://github.com/Earthmark/wasmer into earthmark-WasmPtr-StructComment
2021-04-28 17:15:20 -07:00
Daniel Miller (Earthmark)
0d2fcc1de9
Fixed linter warnings
2021-04-28 17:14:29 -07:00
Daniel Miller
488d650d71
Merge branch 'master' into earthmark-WasmPtr-StructComment
2021-04-27 19:02:54 -07:00
Daniel Miller
85c6cbb487
Update lib/api/src/ptr.rs
...
It seems I forgot to install my spellchecker!
Co-authored-by: Ivan Enderlin <ivan@mnt.io >
2021-04-27 01:30:41 -07:00
Daniel Miller (Earthmark)
9364a2d122
Added a comment to WasmPtr about structs.
2021-04-24 02:25:26 -07:00
k-nasa
7c9984ba50
Fix feature links
2021-04-24 16:32:08 +09:00
k-nasa
40ee361586
fix favicon
2021-04-24 15:34:44 +09:00
k-nasa
03a0673fb6
Fix broken link
2021-04-24 15:15:24 +09:00
Bo Yao
dadc81296a
cargo fmt
2021-04-21 16:06:12 -07:00
Bo Yao
24bcc9349e
cargo fmt
2021-04-21 15:42:47 -07:00
Bo Yao
92af25a585
resolve conflict, replace two primary map to hash map
2021-04-20 16:50:05 -07:00
Mark McCaskey
9eed2733ca
Add misc cleanups from self-review
2021-04-06 12:02:45 -07:00
Mark McCaskey
d87fcab0c2
Rename methods with checked_anyfunc into vm_funcref
2021-04-06 11:18:46 -07:00
Mark McCaskey
4550ec3e21
Add test showing func refs being passed & called
2021-04-06 11:01:46 -07:00
Mark McCaskey
f072ab9be2
Get the Store to where we need it for dynamic functions
2021-04-06 10:38:05 -07:00
Mark McCaskey
8149453ff5
Merge branch 'master' into feature/reference-types
2021-03-31 08:42:26 -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
e1e2f03c7c
fix: Rename lib/wasmer-types/ to lib/types/.
2021-03-23 17:36:58 +01: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
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
Ivan Enderlin
4b752ed498
chore: Use loupe 0.1.0.
2021-03-23 11:18:31 +01:00
Ivan Enderlin
2afed4d813
feat: Use latest version of loupe.
2021-03-22 11:43:46 +01:00
Ivan Enderlin
026520998c
feat: Start implementing loupe::MemoryUsage on wasmer::Store.
2021-03-22 11:42:28 +01:00
Mark McCaskey
2a541e072b
Merge branch 'master' into feature/reference-types
2021-03-16 12:28:05 -07:00
Mark McCaskey
bfc91dc445
Feature gate wasmer::ExternRef
2021-03-16 09:24:13 -07:00
Mark McCaskey
f26de7ea54
Disable dynamic ref counting in compiler-cranelift
...
This will leak extern refs but lets all spec tests pass. We can follow up later
to resolve the leaking of ExternRefs, but most of this PR should land on
master/main now.
2021-03-15 12:51:04 -07:00
Mark McCaskey
6a31e8eb45
Test ref counting with new instructions
2021-03-08 11:13:32 -08:00
Mark McCaskey
64bd472a76
Improve testing of ref counting, fix up some edge cases
2021-03-08 08:30:55 -08:00
Mark McCaskey
3dcba53309
Add wip commit, more ref counting improvements
2021-03-05 11:58:21 -08:00
Mark McCaskey
af3e3e5ff4
Fix up extern ref counting for globals + misc cleanups
2021-03-05 08:01:52 -08:00
bors[bot]
07464c719c
Merge #2157
...
2157: Simplify WasmPtr code r=MarkMcCaskey a=MarkMcCaskey
`std::mem::size_of::<T>()` already accounts for end padding. The `align_of` code
was not only a no-op, it would be incorrect if it wasn't.
Thanks to Matt Itamenye on the wasmerians slack for pointing this out!
This PR does not change any behavior, only removes misleading code.
Co-authored-by: Mark McCaskey <mark@wasmer.io >
2021-03-05 14:04:14 +00:00
Ivan Enderlin
f233ca444e
chore(api) The compiler feature enables wasmer-compiler/translator.
2021-03-04 23:17:14 +01:00
Mark McCaskey
473c0f4f9e
Improve extern ref ref counting tests
2021-03-03 08:13:16 -08:00