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
f1ffbb5b37
cr suggestions
2025-02-24 21:20:07 +00:00
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
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
813831de0e
keep devs notes out of public API
2025-01-27 11:39:53 +00:00
1b82cccff3
meaning of the return bool type in the callback
2025-01-27 11:35:56 +00:00
1f4d3dd4d4
clang-format
2025-01-27 11:31:02 +00:00
d0c6da10ff
wamr bool type
2025-01-27 11:28:30 +00:00
b6dea221a6
Fix wasm loader check data segment count ( #4039 )
...
correctly report error when datacount section has non-zero data segment count while the data section is not present
2025-01-21 13:08:09 +08:00
e3ddbd58f7
Synchronize the GC spec tests to the commit from December 9. 2024. ( #4022 )
...
- Synchronize the GC spec tests to the commit from December 9. 2024.
- Revise the error messages to be consistent with the spec test cases.
- bypass gc spec test on the nuttx platform as a workaround
2025-01-20 09:41:47 +08:00
831e4bbfd5
Refine getting const offsets in wasm loader of fast-interp ( #4012 )
...
- Refine const offsets in loader for fast-interp
- handle const cell num overflow
- Use const array, remove list
2025-01-20 09:39:32 +08:00
68e4534822
Iterate callstack API
2025-01-17 16:16:45 +00:00
9c3807e124
Refine read leb int wasm loader of fast interpreter ( #4017 )
2025-01-14 17:43:29 +08:00
53da420c41
Enable shrunk memory by default and add related configurations ( #4008 )
...
- Enable shrunk memory by default and add related configurations
- Improve error messages for memory access alignment checks
- Add documentation for WAMR shrunk memory build option
- Update NuttX workflow to disable shrunk memory build option
2025-01-13 07:09:04 +08:00
02683d2eed
Improve stack consistency by ensuring sufficient space for dummy offsets ( #4011 )
...
One more corner case: if the `frame_offset` increases and becomes equal to
the `frame_offset_boundary` after the last assignment within the for loop.
2025-01-09 13:11:25 +08:00
a653746b7b
Check whether related table has funcref elem in opcode call_indirect ( #3999 )
...
* check whether table has funcref elem in call_indirect
* check whether table has funcref elem in call_indirect when gc is enabled
2025-01-06 13:55:43 +08:00
9989b1cc1b
[fuzzing] Use software bound-check during fuzzing ( #4003 )
...
* Update CMakeLists.txt of fuzzing
- enable software bound-check
- enable wasi
- disable libc builtin and multiple modules
* Fix off-by-one error in result offset calculation for function calls
2025-01-06 11:36:11 +08:00
1958808a24
Fix table index calculations in wasm_loader and wasm_mini_loader ( #4004 )
2025-01-05 15:27:40 +08:00
099056b076
Ensure __heap_base and __data_end global indices are validated against import count ( #3996 )
2025-01-03 14:37:09 +08:00
31ff576edf
Error message improvement ( #4000 )
...
Improve error message in the scenario where the runtime was built
with ref types disabled but the module uses reference types feature.
2025-01-03 10:44:25 +08:00