Commit Graph
1323 Commits
Author SHA1 Message Date
liang.heandGitHub e27e5380c6 Fix iwasm build error when WAMR_BUILD_WASI_NN enabled (#4138) 2025-03-14 13:38:17 +08:00
Zhen Kong dde6477fa5 Fix iwasm build error when WAMR_BUILD_WASI_NN enabled
A recent change on ./product-mini/platforms/linux/CMakeLists.txt renamed
libiwasm to vmlib, but wasi-nn.cmake still wants to link libiwasm.so.
Replace libiwasm with vmlib in wasi-nn.cmake to resolve iwasm build error
when WAMR_BUILD_WASI_NN enabled.
2025-03-13 17:08:22 +00:00
liang.heandGitHub c6f934434b Merge pull request #4124 from swankjesse/WAMR_BUILD_GC_HEAP_SIZE_DEFAULT
Expose WAMR_BUILD_GC_HEAP_SIZE_DEFAULT as a CMake option
2025-03-12 14:55:27 +08:00
liang.heandGitHub 766f378590 Merge pull request #4033 from g0djan/godjan/iterate_callstack
Copy callstack API
2025-03-11 10:31:56 +08:00
Huang QiandGitHub 412631ac13 fix: correct typos and improve comments across multiple files by codespell (#4116)
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-03-07 08:21:54 +08:00
Georgii Rylov e488345607 fix bug for return value when skip_n is passed 2025-03-05 11:47:56 +00:00
Georgii Rylov 811f35bf7d identation 2025-03-05 10:23:57 +00:00
Georgii Rylov 56bb7e715b last fixes 2025-03-05 09:11:21 +00:00
Jesse Wilson d609acf1ee Move the default heap size initialization 2025-03-04 18:43:30 -05:00
73998e4c85 fix: fix load aarch64 aot failed (#4114)
Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
2025-03-04 16:45:47 +08:00
Jesse Wilson de82d1946f Address code review feedback 2025-03-03 20:45:59 -05:00
Georgii Rylov 6166788c33 spare lines 2025-03-03 15:17:57 +00:00
Georgii Rylov 32d0f5503e spare line 2025-03-03 14:06:45 +00:00
Georgii Rylov ffcc1579ea clang format 2025-03-03 13:41:35 +00:00
Georgii Rylov bc00b3e492 address comments 2025-03-03 13:36:05 +00:00
Jesse Wilson beb34c3675 Expose WAMR_BUILD_GC_HEAP_SIZE_DEFAULT as a CMake option
This is wired through to the GC_HEAP_SIZE_DEFAULT constant.

Also honor this value when configuring the engine with the
wasm_c_api.
2025-03-02 23:32:04 -05:00
TianlongLiangandGitHub e693608476 log warning instaed of assertion (#4119) 2025-03-01 16:46:41 +08:00
Georgii Rylov 0b5084cb63 remove spare diff line 2025-02-27 15:06:31 +00:00
Georgii Rylov bda012e990 formatting 2025-02-27 14:35:53 +00:00
Georgii Rylov fc3077b74d address comments 2025-02-27 14:32:17 +00:00
Georgii Rylov 99cb6ec27e formatting 2025-02-26 11:22:31 +00:00
Georgii Rylov a5d8c0b477 define if not defined 2025-02-26 11:11:17 +00:00
Georgii Rylov 857e6b73c8 formatting 2025-02-26 10:57:50 +00:00
liang.heandGitHub f2e3348305 wasm_loader allocates more spaces for elements (#4099)
- allocate memory for array initialization based on length
- update reference type mapping for struct initialization
2025-02-26 12:58:45 +08:00
968b7d4ea0 fix: add dispose of the debug information builder when destroying compilation context (#4105)
Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
2025-02-26 12:57:46 +08:00
Georgii Rylov 188eb1c941 remove unnecessary includes 2025-02-25 17:42:06 +00:00
1252f723c2 feat: use C linkage in aot_comp_option.h for C++ embeding (#4106)
Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
2025-02-25 07:01:16 +08:00
TLandMarcin Kolny f1ffbb5b37 cr suggestions 2025-02-24 21:20:07 +00:00
TLandMarcin Kolny dfcadc6202 prevent data overflow on 32 bit platform for memory.grow 2025-02-24 21:20:07 +00:00
Georgii Rylov :slightly_smiling_face cc3f0a096b Cleaning up 2025-02-24 17:33:14 +00:00
Georgii Rylov :slightly_smiling_face 32338bb7d6 Copy read only API behind a flag instead of using user defined callback 2025-02-24 17:22:05 +00:00
ericandGitHub d9c01b39d1 fix: when load aot init expr,no type_idx set. (#4094)
Fix an assertion from *gc_object.c line 91*  `bh_assert(rtt_type->type_flag == WASM_TYPE_STRUCT;`
2025-02-21 15:33:36 +08:00
liang.heandGitHub d0e2a7271c fix(aot_emit_aot_file): prevent buffer emission for zero byte_count (#4095)
if using a debug building of wamrc to run spec test. there will be:
core/iwasm/compilation/aot_emit_aot_file.c:1794:13: runtime error: null pointer passed as argument 2, which is declared to never be null
2025-02-21 07:46:20 +08:00
liang.heandGitHub 964037c9b5 feat: add support for EXTERNREF value type and enable AOT validator in fuzz tests (#4083) 2025-02-17 13:34:18 +08:00
Jérôme VouillonandGitHub 159f5890a6 [gc] Subtyping fix (#4075) 2025-02-17 11:55:58 +08:00
yangkun27andGitHub 71bc3c2d15 Add a conditional check for the macro __STDC_VERSION__ (#4080) 2025-02-14 16:13:15 +08:00
liang.heandGitHub 7b724e2382 fix(aot): ensure value_cmp does not exceed br_count in branch table compilation (#4065) 2025-02-06 20:05:33 +08:00
TianlongLiangandGitHub e6a47d5cee In wasm32, fix potential conversion overflow when enlarging 65536 pages (#4064)
fix enlarge 65536 pages conversion overflow in wasm32
2025-02-06 14:48:53 +08:00
liang.heandGitHub 376385c608 Update memory allocation functions to use allocator user data (#4043) 2025-02-06 13:15:00 +08:00
Georgii Rylov 267379c2e8 Merge branch 'main' into godjan/iterate_callstack 2025-02-05 10:59:19 +00:00
Viacheslav PalchikovandMarcin Kolny 67cd5043d3 initial 2025-02-05 09:48:21 +00:00
liang.heandGitHub c6712b4033 add a validator for aot module (#3995)
- Add AOT module validation to ensure memory constraints are met
- Enable AOT validator in build configuration and update related source files
2025-02-05 15:21:49 +08:00
Marcin KolnyandGitHub b2c7cb2375 Use wasm32-wasip1 instead of wasm32-wasi target for rust code (#4057)
Rust compiler previously deprecated, and now removed the wasm32-wasi target and replaced it with wasm32-wasip1. This
change updates all the occurrences of wasm32-wasi in the context of Rust compilation.

covers the wasi-nn/test.
2025-02-05 11:31:49 +08:00
Georgii Rylov f7204bddfb standard frame is not supported when GC is enabled 2025-01-28 16:33:52 +00:00
Georgii Rylov fb6c05e349 add correct frame size for aot standard frames 2025-01-28 16:14:01 +00:00
Georgii Rylov b9039f986e Merge branch 'main' into godjan/iterate_callstack 2025-01-28 13:35:47 +00:00
Georgii Rylov 478b373cda update signature 2025-01-28 13:27:01 +00:00
Georgii Rylov 5bfbfd5f58 update typo in the comment 2025-01-28 11:36:59 +00:00
Georgii Rylov b6daacb836 ignore frames with no function 2025-01-28 11:25:45 +00:00
Georgii Rylov 6bfc08849a Calculate func_index instead of adding an extra field to wasm frame 2025-01-28 11:09:32 +00:00