Johnathan Sharratt
cc83041680
Merge branch 'wasix' of github.com:wasmerio/wasmer into wasix-major-fixes-and-tweaks
2023-02-15 17:07:17 +11:00
Syrus Akbary
cd4cb7a75b
Make function internal APIs closer
2023-02-14 18:10:37 -08:00
Syrus Akbary
e9b8868b63
Moved ExternRef and FuncRef into crate::vm for unification
2023-02-14 18:07:05 -08:00
Syrus Akbary
3e7552abc3
Fix global
2023-02-14 17:58:42 -08:00
Syrus Akbary
7bf1bd1dc1
Fixed as_js for global
2023-02-14 17:08:05 -08:00
Syrus Akbary
4c0399f674
Unified global into js/sys
2023-02-14 16:41:39 -08:00
Syrus Akbary
4c0bd5c9d8
Unified Memory in js/sys
2023-02-14 16:20:11 -08:00
Christoph Herzog
60850bdb2f
fix(wasi): Get the JS implementation to build (somewhat hackily)
...
Makes various fixes to get wasi JS to build.
Has some nasty workarounds that need to be removed in the future.
2023-02-14 13:24:45 +01:00
Syrus Akbary
1966af3703
Unified extern::Table in js/sys
2023-02-13 17:07:22 -08:00
Syrus Akbary
3b0ee715f7
Created vm module
2023-02-13 17:05:46 -08:00
ptitSeb
4c64988d07
Same lifetime on js as on sys for MemoryView
2023-02-13 13:25:27 +01:00
Syrus Akbary
fcad0fa5de
Make AsJs work with unified Instance
2023-02-11 19:49:48 -08:00
Syrus Akbary
db6430c0b3
Unified Extern in js/sys
2023-02-11 19:32:01 -08:00
Syrus Akbary
1d85b301ef
Moved reexports one level down
2023-02-11 18:35:03 -08:00
Syrus Akbary
92255601fe
Merge branch 'master' into std-api
...
# Conflicts:
# lib/api/src/sys/instance.rs
2023-02-11 18:19:10 -08:00
Syrus Akbary
f72220e9d7
Removed repeated comments
2023-02-11 18:10:22 -08:00
Syrus Akbary
3d56b6bdd6
Unify Instance in js/sys
2023-02-11 18:07:47 -08:00
Syrus Akbary
58f27ae045
Unify InstantiationError
2023-02-11 17:41:53 -08:00
Syrus Akbary
f8176e3bb6
Make js conversion uniform
2023-02-11 17:25:50 -08:00
Syrus Akbary
b9d21187ed
Make instance more uniform
2023-02-10 18:53:18 -08:00
Syrus Akbary
4eaddb5ce4
Unify Imports in wasmer js/sys
2023-02-10 18:16:05 -08:00
Syrus Akbary
9f83b84e86
Moved js-specific functions to as_js module
2023-02-10 18:05:56 -08:00
Syrus Akbary
6c6f070c8d
Remove unnecessary compiler flags in wasmer crate
2023-02-10 17:19:31 -08:00
Syrus Akbary
7d9ed6b67a
Unified typed_function in js/sys
2023-02-10 17:11:23 -08:00
Syrus Akbary
6ede6a1999
Unified api for native in js/sys
2023-02-10 16:50:09 -08:00
Syrus Akbary
1e405d3e22
Unified exports in js/sys
2023-02-10 16:29:28 -08:00
Syrus Akbary
a5e631c176
Unified Value into js/sys
2023-02-10 16:20:47 -08:00
Syrus Akbary
c9e18e8d57
Fixed Context references
2023-02-10 16:06:47 -08:00
Syrus Akbary
c3576e1b3f
Unified ptr::WasmPtr into js/sys
2023-02-10 16:03:43 -08:00
Syrus Akbary
a1d3891c1f
Unify native_type::NativeWasmTypeInto in js/sys
2023-02-10 15:55:09 -08:00
Syrus Akbary
0dda3c1e65
Unified extern_ref in js/sys
2023-02-10 15:26:57 -08:00
Syrus Akbary
312aaf1e16
Use RawValue for wasmer js
2023-02-10 15:11:56 -08:00
Syrus Akbary
59a6b197fc
Fix linting
2023-02-10 08:26:14 -08:00
Syrus Akbary
293834c793
Fix pending test
2023-02-10 08:21:55 -08:00
Syrus Akbary
543e7cb945
Make CI happy. Fix linting and imports
2023-02-10 08:05:07 -08:00
Christoph Herzog
7f78799110
chore: Fix some clippy lints
2023-02-10 10:47:24 +01:00
Syrus Akbary
5a829bc363
Unify mem_access api for js/sys
2023-02-09 17:59:30 -08:00
Syrus Akbary
039098ce2c
Prepare mem_access commons
2023-02-09 16:52:48 -08:00
Syrus Akbary
bb3492900e
Make function_env common for js/sys
2023-02-09 16:46:01 -08:00
Syrus Akbary
24253b86a7
Remove import_shared_memory
2023-02-09 21:12:03 +01:00
Syrus Akbary
4c9a154e77
Use general store
2023-02-09 20:29:24 +01:00
Syrus Akbary
2a067fdb8c
Made store compiler flags clearer
2023-02-09 19:29:57 +01:00
Syrus Akbary
30f4589f23
Move StoreId to common wasmer_types
2023-02-09 19:22:33 +01:00
Syrus Akbary
83313eb098
Improved sys store
2023-02-09 19:08:38 +01:00
Syrus Akbary
8c456334cb
Remove deprecated/unused TrapHandler
...
Note: wasmer_vm::TrapHandler was never exposed via the `wasmer` crate, so it’s safe to remove
2023-02-09 18:58:43 +01:00
Syrus Akbary
cd730e09c6
Moved the gross of default store to default_engine
2023-02-09 18:19:58 +01:00
ptitSeb
e7d0cc8be2
Make memoryView lifetime tight to StoreRef instead of memory on sys (for #3516 and #3567 )
2023-02-09 11:09:14 +01:00
Johnathan Sharratt
26d4a6a0de
Many performance and memory optimizations
...
- Avoiding a memory copy on all socket reads and writes using a new `copy_from_slice` instead
- File openers no longer box the implementation avoiding a memory allocation on all file access
- Polling sockets rather than using an async function which significantly reduces locking contention and removes an box operation
- Futex now uses wakers rather than broadcasts which makes them more efficient and durable
- Converted many async functions into sync functions in vnet
- Sleeping no longer allocates memory
- Avoiding a number of WasiEnv clones which was impacting performance and memory efficiency
2023-02-07 11:40:49 +01:00
Christoph Herzog
7f8c0858b3
Merge remote-tracking branch 'origin/master' into wasix
2023-02-07 11:38:04 +01:00
Johnathan Sharratt
21237eb3d3
Merge remote-tracking branch 'origin' into wasix-john
2023-02-07 16:28:19 +11:00