Commit Graph

1634 Commits

Author SHA1 Message Date
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
de82d1946f Address code review feedback 2025-03-03 20:45:59 -05:00
6166788c33 spare lines 2025-03-03 15:17:57 +00:00
32d0f5503e spare line 2025-03-03 14:06:45 +00:00
ffcc1579ea clang format 2025-03-03 13:41:35 +00:00
bc00b3e492 address comments 2025-03-03 13:36:05 +00:00
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
e693608476 log warning instaed of assertion (#4119) 2025-03-01 16:46:41 +08:00
0b5084cb63 remove spare diff line 2025-02-27 15:06:31 +00:00
bda012e990 formatting 2025-02-27 14:35:53 +00:00
fc3077b74d address comments 2025-02-27 14:32:17 +00:00
99cb6ec27e formatting 2025-02-26 11:22:31 +00:00
a5d8c0b477 define if not defined 2025-02-26 11:11:17 +00:00
857e6b73c8 formatting 2025-02-26 10:57:50 +00:00
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
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
TL
851a26dbba cr suggestions 2025-02-24 21:20:07 +00:00
TL
e72338b54d format 2025-02-24 21:20:07 +00:00
TL
f1ffbb5b37 cr suggestions 2025-02-24 21:20:07 +00:00
TL
2e4ebfb20a cr suggestions 2025-02-24 21:20:07 +00:00
TL
dfcadc6202 prevent data overflow on 32 bit platform for memory.grow 2025-02-24 21:20:07 +00:00
cc3f0a096b Cleaning up 2025-02-24 17:33:14 +00:00
32338bb7d6 Copy read only API behind a flag instead of using user defined callback 2025-02-24 17:22:05 +00:00
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
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
964037c9b5 feat: add support for EXTERNREF value type and enable AOT validator in fuzz tests (#4083) 2025-02-17 13:34:18 +08:00
159f5890a6 [gc] Subtyping fix (#4075) 2025-02-17 11:55:58 +08:00
71bc3c2d15 Add a conditional check for the macro __STDC_VERSION__ (#4080) 2025-02-14 16:13:15 +08:00
7b724e2382 fix(aot): ensure value_cmp does not exceed br_count in branch table compilation (#4065) 2025-02-06 20:05:33 +08:00
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
376385c608 Update memory allocation functions to use allocator user data (#4043) 2025-02-06 13:15:00 +08:00
267379c2e8 Merge branch 'main' into godjan/iterate_callstack 2025-02-05 10:59:19 +00:00
10f12c030f Add version.h and update versioning documentation for embedded platforms 2025-02-05 10:31:20 +00:00
4f7c5af046 Remove deprecated version.h file and update versioning documentation 2025-02-05 10:31:20 +00:00
e64685f43c Add versioning support and update CMake configuration 2025-02-05 10:31:20 +00:00
67cd5043d3 initial 2025-02-05 09:48:21 +00:00
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
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
f7204bddfb standard frame is not supported when GC is enabled 2025-01-28 16:33:52 +00:00
fb6c05e349 add correct frame size for aot standard frames 2025-01-28 16:14:01 +00:00
b9039f986e Merge branch 'main' into godjan/iterate_callstack 2025-01-28 13:35:47 +00:00
478b373cda update signature 2025-01-28 13:27:01 +00:00
5bfbfd5f58 update typo in the comment 2025-01-28 11:36:59 +00:00
b6daacb836 ignore frames with no function 2025-01-28 11:25:45 +00:00
6bfc08849a Calculate func_index instead of adding an extra field to wasm frame 2025-01-28 11:09:32 +00:00
9ff8052329 format 2025-01-27 15:08:58 +00:00
c8b8731831 support standard frames as well 2025-01-27 15:08:03 +00:00
bf6b15521a format 2025-01-27 11:42:12 +00:00