Commit Graph

58 Commits

Author SHA1 Message Date
Syrus Akbary
ec93db90dd Remove no longer necessary comment on js 2023-03-17 13:54:20 -07:00
Johnathan Sharratt
8b21135ea4 Added some extra parameters to pass to the web threading pool 2023-03-12 12:56:19 +11:00
Syrus Akbary
07eb2f6ad7 Improved mem_access 2023-03-06 19:31:58 -08:00
Syrus Akbary
8cbd9b6982 Added extra comments on what can be Send/Sync 2023-03-03 13:50:15 -08:00
Syrus Akbary
61ca01d341 Fix linting errors 2023-03-02 14:26:06 -08:00
Syrus Akbary
cbdf356c0b Merge branch 'std-api' into wasix-fixes-for-web-with-unification
# Conflicts:
#	lib/api/src/js/externals/global.rs
#	lib/api/src/js/vm.rs
#	lib/wasi/src/bin_factory/exec.rs
#	lib/wasi/src/bin_factory/module_cache.rs
#	lib/wasi/src/runtime/task_manager/mod.rs
2023-03-01 21:16:18 -08:00
Syrus Akbary
93def03796 Address most of the comments 2023-02-25 11:23:03 -08:00
Syrus Akbary
bb9ac04336 Make API compatible changes with wasmer-js 2023-02-16 22:45:28 -08:00
Syrus Akbary
b61e2a1287 Added equality to instance, Module and Exports 2023-02-16 21:56:44 -08:00
Syrus Akbary
5faa0364fc Improved module imports 2023-02-15 18:24:45 -08:00
Syrus Akbary
db6430c0b3 Unified Extern in js/sys 2023-02-11 19:32:01 -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
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
4c9a154e77 Use general store 2023-02-09 20:29:24 +01:00
Syrus Akbary
d09a76ec5f Use standard API for js and sys for Module. Added Engine in js 2023-01-27 17:10:54 +01:00
Syrus Akbary
423ca7a9f5 Remove setting memory for WASI compatibility 2023-01-26 17:00:48 +01:00
Syrus Akbary
6707e67d9e Remove deprecated Export type. Updated structure to use VMExtern 2023-01-26 13:25:08 +01:00
Syrus Akbary
d59f4c2ffd Use JS VM store instead of artificially replicate it 2023-01-25 19:41:39 +01:00
Christoph Herzog
e9edb7e8e6 chore; Add some explanatory comments on allow(unused_unsafe) annotations 2023-01-17 00:20:36 +01:00
ptitSeb
87eb05d6d6 Merge branch 'master' into wasix-core-changes 2023-01-16 09:39:08 +01:00
Michael Bryan
19b2efdc7f Remove an unneeded comment. 2023-01-12 21:36:54 +08:00
Syrus Akbary
382ed04be2 Added support for Wasm Module custom sections in js 2023-01-12 11:05:22 +00:00
ptitSeb
60d1fcf46f Fixed linter 2023-01-05 10:25:12 +01:00
ptitSeb
b126849c34 Added one more TODO, about the imported/exported memory hack on js 2023-01-05 09:57:29 +01:00
ptitSeb
a050376636 [JS] Rmoved js-serializable-module feature from wasm-types-polyfill 2023-01-04 18:02:18 +01:00
Christoph Herzog
af164229cc Remove un-needed is_ok() methods
No longer required, module sharing now works properly
2022-12-22 18:52:30 +01:00
Christoph Herzog
7ac71bc28a Remove redundant commented out function
Leftover...
2022-12-16 11:47:05 +01:00
Christoph Herzog
af313838b1 Use byte slice for constructing JS modules
Re-implement the change from IntoBytes to plain &[u8].

This was probably messed up during a rebase.
2022-12-16 11:47:05 +01:00
Christoph Herzog
5109a407c4 WASIX Preparation
This commit extracts changes to core libraries made in the WASIX branch.

It is not reasonable to extract the partial commit history, so this is
just a batch commit.

The history will make a bit more sense again if we decide to merge the
WASIX branch with full commit history.
2022-12-16 11:47:04 +01:00
ptitSeb
f4ae6cb732 Export Module::IoCompileError as it's an error returned by an exported function (for #3267) 2022-11-16 12:04:04 +01:00
Syrus Akbary
fd9113a365 Merge pull request #3129 from wasmerio/fix-sync-js-sys-api
Fix differences between -sys and -js API
2022-09-01 22:11:01 -07:00
ptitSeb
cc9fb4693d Fixed js build 2022-09-01 17:39:18 +02:00
ptitSeb
3528555869 Made Module::serialize to gives Bytes instead of Vec 2022-09-01 17:18:13 +02:00
ptitSeb
436bec735b Using IntoBytes only for Module::deserialise (both sys and js) 2022-09-01 13:52:53 +02:00
ptitSeb
553d6bb8cd Merge branch 'master' into feat_api_change_from_wasix 2022-09-01 11:17:07 +02:00
Felix Schütt
a5d0944b9f Merge branch 'master' into fix-sync-js-sys-api 2022-08-31 12:57:14 +02:00
Syrus Akbary
d023c1e7d1 Improved JS API a bit further 2022-08-29 19:33:04 +02:00
Felix Schütt
2ee66140c9 cargo fmt && fix issue with function_body_ptr 2022-08-26 18:48:48 +02:00
ptitSeb
1912373e1f The API breaking changes from future WASIX/Network/Threading addition 2022-08-26 10:46:56 +02:00
Felix Schütt
63e2046bce Return DefaultCustomSectionsIterator for custom_sections 2022-08-25 12:52:18 +02:00
Felix Schütt
bafe1a9d3c Fix some compilation errors in make test-js 2022-08-24 16:34:16 +02:00
Felix Schütt
4966ec45ba Always return true for is_from_store 2022-08-24 11:25:22 +02:00
Felix Schütt
4540e3ba8f Add Module::custom_sections and FromToNativeWasmType::is_from_store 2022-08-24 11:12:37 +02:00
Felix Schütt
59bc9a7096 Revert f64 -> RawValue 2022-08-23 17:23:49 +02:00
Felix Schütt
b1fac30b3c Fix f64 -> RawValue in JS API 2022-08-23 12:59:21 +02:00
John Sharratt's Shared Account
5aa356f222 Fixed a memory corruption issue with JS memory operations that were reusing invalid views 2022-07-31 20:31:41 +10: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