Commit Graph

216 Commits

Author SHA1 Message Date
d3f02cb3da Merge pull request #4435 from wasmerio/github-m1
Use M1 runner for building & testing m1
2024-02-19 16:10:23 -08:00
1ba59244d8 Disable artifact deserialization in non x86-64 for now 2024-02-15 13:18:16 -08:00
3ac237a02d Fixed linting 2024-02-07 14:06:26 +01:00
83bb209a81 Increased artifact version 2024-02-07 14:06:26 +01:00
053aee866c migrate deprecated usage 2024-02-01 02:12:32 +03:30
bab924aaef Make sure vmoffset are aligned to pointer size (for #4059) (#4167)
* Make sure vmoffset are aligned to pointer size (for #4059)

* Fix linter

* Be more conservative on alignment

* Bumped MAGIC Header version as vmoffset changed

* Update linux wasmu files for CI deserialize test

* Updated windows wasmu files for deserialize CI test
2023-08-29 14:24:10 +02:00
63987fa362 Revive "0-copy module deserialization"
This reverts commit afa67ffa5d.
2023-08-22 09:35:59 +04:00
afa67ffa5d Revert "0-copy module deserialization" 2023-08-17 12:01:59 -07:00
f3ff26f52d Fix deserialization roundtrip test on windows 2023-08-14 10:25:37 +04:00
1d351b54e6 Add roundtrip artifact deserialization tests 2023-08-11 17:13:54 +04:00
ea908d6eb8 Add roundtrip artifact serialization tests 2023-08-11 17:04:38 +04:00
78b807fd4c Fixed some compile issue on the compiler tests 2023-07-16 01:43:57 +10:00
83970e31a8 Fixed the merge conflicts after merging from master 2023-05-11 22:55:28 +10:00
44a7e8419b Fixed errors 2023-04-22 01:48:56 -07:00
096f33b4d0 Trying to improve the errors 2023-04-22 01:20:39 -07:00
13b4d720b7 Removed the error enhancements so that the API is backwards compatible 2023-04-16 01:00:21 +10:00
85ad071952 Refactored async threading so that it works with the browser 2023-04-14 20:50:36 +10:00
c4d500ae4a Lint fixes on some of the tests 2023-04-08 08:41:43 +10:00
f8c0910c33 Update wasmparser to v0.95 (#3682)
* Update wasmparser to v0.95

* Update lib/compiler/src/translator/module.rs

Co-authored-by: Syrus Akbary <me@syrusakbary.com>

---------

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2023-03-15 11:15:58 +01:00
ee58d7c2b2 Revert "Update wasmparser to v0.91"
This reverts commit 87232623de.
2023-03-15 01:46:26 +01:00
87232623de Update wasmparser to v0.91 2023-03-14 20:39:38 +01:00
f342ebe821 Fix serialization 2023-02-27 23:49:08 -08:00
7f8c0858b3 Merge remote-tracking branch 'origin/master' into wasix 2023-02-07 11:38:04 +01:00
1387363a7b Fix/compile not in memory (#3573)
* Example of allocated artifact
* Better error when Instancing fail because of OS/Arch issue
* Add missing brnach for new error
---------

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2023-02-06 10:28:39 +01:00
a6fa558e8a Merge branch 'wasix-core-changes' into wasix 2022-12-27 15:08:37 +01:00
cfa3bf4200 Merge remote-tracking branch 'origin/master' into wasix-core-changes 2022-12-22 13:51:14 +01:00
b24025ad01 cargo clippy --fix --all 2022-12-21 00:49:45 +01:00
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
173e48601c Merge remote-tracking branch 'origin/master' into wasix 2022-12-13 01:40:22 +01:00
de03d35205 Added test for singlepass arm64 'sub xsp, xsp, reg' emitter fix 2022-12-09 14:32:13 +01:00
976c7f7958 Fix compile errors after merge 2022-12-06 14:57:50 +01:00
eb60a96bcf Merge branch 'master' into wasix-merge 2022-12-06 13:22:09 +01:00
3144ef2b3d Enable threads/imports test, but disabling multiple table individual tests as it's not yet supported 2022-11-22 16:01:25 +01:00
3a092cf6f9 Make "make lint" pass for Rust 1.63 2022-11-18 00:43:54 +08:00
572ea3e9cd Changes required to bring in full WASIX support
- Implemented multi-threading for both JS and SYS, plus other WASIX implementations
- Added a longjmp capability required for bash and other WASIX implementations
- Added real signals to WASIX
- Added a stack unwinding and winding functionality
- Implemented memory forking which will be used for process forking
- Added the ability to fork the current process
- Added the vfork functionality
- Moved over to the WasiPipe implementation
- Added more syscalls needed for bash on WASIX
- Ported wasmer-os into wasmer
- Added a union file system and the character devices
- Moved the cursors to the file handles rather than the file so that they are multithread safe and can handle concurrent IO
- Reimplemented the poll_oneoff functionality to support full ASYNC
- Added support for mapping directories in the host file system into WASIX sandbox file systems
- Implemented fully ASYNC sockets and emulated ASYNC files
- Made the file locks more granular to allow for concurrent poll and accept operations
- Fixed a race condition on the event notifications
2022-11-07 15:11:29 +01:00
25d6a49f1c fmt 2022-10-05 18:42:38 +03:00
7b49e4d6d6 fix popcnt for m1 and add test 2022-09-30 17:02:30 +03:00
2752f7d390 More rollback fixes 2022-09-01 18:02:14 +02:00
436bec735b Using IntoBytes only for Module::deserialise (both sys and js) 2022-09-01 13:52:53 +02:00
1912373e1f The API breaking changes from future WASIX/Network/Threading addition 2022-08-26 10:46:56 +02:00
18abab157c Add sanity test for Artifact::deserialize 2022-08-23 16:56:16 +02:00
89bba319a9 No longer require FunctionEnvMut for new_typed(…) callback function 2022-08-05 14:27:44 +02:00
566c897e57 Remove FunctionEnvMut for Function::new(…) 2022-08-05 14:27:44 +02:00
7df3e3ca23 Rename {native,typed} functions, reintroduce *_with_env variants 2022-08-05 14:27:44 +02:00
5aa356f222 Fixed a memory corruption issue with JS memory operations that were reusing invalid views 2022-07-31 20:31:41 +10:00
4384ddf9cd Improved EngineBuilder and Store API
- Store::new() now takes an impl Into<Engine>.
- Added Into<Engine> impls in each of the compilers
- Updated docs/migration_to_3.0.0.md on API usage
2022-07-28 15:20:26 +03:00
214346af3b Merge Backend into EngineBuilder and refactor feature flags 2022-07-27 21:03:24 +03:00
4a06b1d3f6 Rename engine's Universal type to Backend
The Universal type was essentially a builder of engines that's given a
compiler backend and creates an Engine with .engine() method. The name
was not clear.
2022-07-25 13:23:13 +03:00
51be5d0860 Rename UniversalEngine to Engine 2022-07-25 13:21:41 +03:00
987a90c0dc Remove Engine trait 2022-07-25 13:19:32 +03:00