Commit Graph

369 Commits

Author SHA1 Message Date
Nuno Cruces
a0fbb18544 experimental: configure custom memory allocator (#2177)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2024-04-10 20:13:57 +09:00
Nuno Cruces
c6a907bb9d experimental: cleanup context keys (#2175)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2024-04-06 21:04:55 +09:00
Takeshi Yoneda
775330a1e5 Reverts the public Memory.Pages API (#2174)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-04-04 21:57:48 +09:00
Takeshi Yoneda
5fe44456ad Renames PageSize -> Pages (#2173)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-04-04 20:37:11 +09:00
Nuno Cruces
864a958c46 fix: workaround Memory.Size() overflow with 4GB memory (#2172)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2024-04-04 12:08:20 +01:00
Nuno Cruces
a030b61c62 fix: allow ReadByte/WriteByte to get last byte of 4GB memory (#2171)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2024-04-04 11:28:03 +01:00
Takeshi Yoneda
144d59f8d5 threads: stop explicit use of mmap for shared memory (#2170)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-04-04 13:30:15 +09:00
Gram
199c858f74 refactor reflect.SliceHeader uses to allow tinygo cross-compilation (#2161)
Signed-off-by: gram <git@orsinium.dev>
2024-03-28 12:16:35 +01:00
Takeshi Yoneda
5760022787 validation: handles edge case of unexpected else (#2148)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-12 12:46:44 +09:00
Takeshi Yoneda
c4532da719 testing: pass N, P into Run of hammer (#2146)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-12 10:34:42 +09:00
Takeshi Yoneda
9da95bd4b1 Fixes element instance for imported global func ref (#2141)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-08 13:19:15 +09:00
Takeshi Yoneda
ac052ab84a table: ensures references alive regardless of closures (#2139)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-08 13:05:05 +09:00
Takeshi Yoneda
1e22783607 validation: allows imported extern ref (#2137)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-08 10:03:32 +09:00
Takeshi Yoneda
81d1f20428 wazevo: implements MutableGlobal.Set, fixes emscripten test (#2129)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-07 12:33:59 +09:00
Takeshi Yoneda
dea07e2093 Handle negative grow pages to avoid shrinking memory (#2120)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-05 20:32:30 +09:00
Takeshi Yoneda
cb0c399445 wazevo(frontend): fast pass for static local searches (#2116)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-05 10:02:34 +09:00
Takeshi Yoneda
f51dce428e validation: return error on unknown opcode after misc prefix (#2112)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-04 12:55:04 +09:00
Takeshi Yoneda
712f9370a4 api: reverts the uint32->uint64 breaking change for 2.0 release (#2106)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-03-02 13:05:10 +09:00
Nuno Cruces
8a61b01faf Changes Read to receive uint64 byte count. (#2085)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2024-02-29 08:58:53 +09:00
Takeshi Yoneda
18f51fc044 validation: returns error on unexpected end of function (#2097)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-02-27 12:35:04 +09:00
Takeshi Yoneda
1458ccc8b0 Changes the type of Size() to uint64 (#2074)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-02-20 07:47:57 +09:00
Takeshi Yoneda
0a03e179df Deletes experimental GOOS=js support (#2027) 2024-02-07 18:44:00 -08:00
Anuraag (Rag) Agrawal
1dd36e91bc threads: don't use mmap for zero memory (#1946)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2024-01-23 15:31:57 -08:00
Anuraag (Rag) Agrawal
33ed8c488c threads: close shared memory with store, not child modules (#1939)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2024-01-23 07:26:42 -08:00
Anuraag Agrawal
4fe86b283d threads: add feature flag for threads (#1932)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2024-01-21 21:12:18 -08:00
Anuraag Agrawal
6166dae741 threads: for arm64, when shared memory ignore memory length cache (#1927) 2024-01-18 17:04:57 -08:00
Anuraag Agrawal
66de2f2788 threads: use mmap to allocate shared memory (#1923) 2024-01-17 00:39:50 -08:00
Anuraag Agrawal
6b21510c11 threads: implement threads proposal in interpreter (#1915)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2024-01-15 08:20:40 -08:00
Anuraag Agrawal
5c70d8bbcc threads: add decoding of shared memory (#1914)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2024-01-11 19:32:08 -08:00
Anuraag Agrawal
6c9303ee10 threads: add function validation of atomics (#1898)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2024-01-04 20:31:38 -08:00
Anuraag Agrawal
11b17ade26 threads: add opcodes for atomic instructions (#1897) 2024-01-04 19:29:59 -08:00
Takeshi Yoneda
27624049dc wazevo(frontend): faster non-imported global access (#1889)
Some checks failed
Release CLI / Pre-release build (push) Has been cancelled
Release CLI / Pre-release test (macos-12) (push) Has been cancelled
Release CLI / Pre-release test (ubuntu-22.04) (push) Has been cancelled
Release CLI / Pre-release test (windows-2022) (push) Has been cancelled
Release CLI / Release (push) Has been cancelled
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-12-22 08:04:48 -08:00
Takeshi Yoneda
4aa3c39da2 Removes unnecessary mutex on Table/Memory Instance (#1755)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-10-05 08:57:09 +09:00
Takeshi Yoneda
756ecc58e2 Simplifies wasm.ElementInstance struct (#1754)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-10-05 08:11:21 +09:00
Takeshi Yoneda
a6ef3c7524 Changes ModuleID for listener existence per function (#1742)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-10-02 10:12:59 +09:00
Takeshi Yoneda
c10914ed03 wazevo: passes start spectest (#1666)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-08-28 13:30:54 +09:00
Takeshi Yoneda
4709f04be3 Adds LookupFunction in experimental/table package (#1637) 2023-08-20 08:10:10 +09:00
Takeshi Yoneda
b8262fe4fb Lifts LookupFunction into ModuleInstance from ModuleEngine (#1636)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-08-18 10:46:50 +09:00
Takeshi Yoneda
112c0d445d wazevo: adds support for local.tee, selects (#1634)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-08-17 11:30:27 +09:00
Takeshi Yoneda
a9c5a44690 wazevo: adds support for imported memory (#1628)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-08-14 15:47:18 +09:00
Takeshi Yoneda
7c88d2a9d4 wazevo: adds support for load instructions (#1624)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-08-11 11:22:24 +09:00
Nuno Cruces
1bd9a3c17b Use atomic.Uint64. (#1620)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-08-09 14:09:54 +01:00
Crypt Keeper
2f2b6a9d2c sysfs: Makes ReadFS and AdaptFS embeddable (#1607)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-08-02 08:27:50 +08:00
Crypt Keeper
1f8c908f1c Exposes writeable filesystem as experimentalsys.FS (#1605)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-31 07:56:28 +08:00
Crypt Keeper
b842d6cbfd fsapi: adds Oflag to decouple from syscall package (#1586)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-19 16:01:44 +08:00
Crypt Keeper
2f8dd23097 adds experimental sys.Errno to begin decoupling from the syscall package (#1582)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-17 08:13:29 +08:00
Crypt Keeper
0300f4b3c1 experimental: adds close notification hook (#1574)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-11 09:27:43 +08:00
Crypt Keeper
326c267726 Exposes Module.IsClosed to prevent calling functions when closed (#1573)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Takeshi Yoneda <takeshi@tetrate.io>
2023-07-10 15:32:51 +08:00
Crypt Keeper
2c21f3aa8f wasi: adds Go readdir integration tests for GOOS=wasip1 and TinyGo (#1562)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-06 16:19:24 +08:00
Takeshi Yoneda
4aca6fbd0e Updates Spectest to the latest (May 23, 2023) (#1490)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-05-23 15:09:36 +10:00