Commit Graph

2425 Commits

Author SHA1 Message Date
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
9027b2dce2 Restore the doc heading. 2025-03-05 10:41:32 -05:00
e488345607 fix bug for return value when skip_n is passed 2025-03-05 11:47:56 +00:00
811f35bf7d identation 2025-03-05 10:23:57 +00:00
56bb7e715b last fixes 2025-03-05 09:11:21 +00:00
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
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
3f268e5150 build(deps): Bump ossf/scorecard-action from 2.4.0 to 2.4.1
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](62b2cac7ed...f49aabe0b5)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 00:37:10 +00:00
8b4ef085fc Apply suggestions from code review
remove confusing comments.
2025-02-25 00:37:05 +00:00
e158f6620e build(deps): Bump github/codeql-action from 3.28.9 to 3.28.10
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.9 to 3.28.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.28.9...v3.28.10)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 00:37:05 +00:00
8288190d57 build(deps): Bump actions/upload-artifact from 4.6.0 to 4.6.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.6.0...v4.6.1)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 00:37:01 +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
f2ef9ee62e Cmake improvements (#4076)
- Utilizes the standard CMake variable BUILD_SHARED_LIBS to simplify the CMake configuration.
- Allows the use of a single library definition for both static and
  shared library cases, improving maintainability and readability of the CMake configuration.
- Install vmlib public header files
- Installs the public header files for the vmlib target to the include/iwasm directory.
- Install cmake package
- Adds the necessary CMake configuration files (iwasmConfig.cmake and iwasmConfigVersion.cmake).
- Configures the installation of these files to the appropriate directory (lib/cmake/iwasm).
- Ensures compatibility with the same major version.
- Improve windows product-mini CMakeLists.txt
- Fix missing symbols when linking windows product-mini with shared vmlib
- Improve Darwin product-mini CMakeLists.txt

---------

Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com>
2025-02-21 15:29:49 +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
ff10b86938 fix(build_llvm_libraries.yml): Correct script path for build_llvm.py
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-02-17 09:38:56 +00:00
45db4ba2ee fix(unit-test): libc_builtin_test issues (#4073)
- uninitialized buffer pointers (crashes)
- match integer constant size with printf specifier

Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com>
2025-02-17 13:34:40 +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
48b75e0acb Merge pull request #4087 from no1wudi/fix
fix(build_llvm.py): clean up whitespace and formatting in build script
2025-02-17 12:20:38 +08:00
159f5890a6 [gc] Subtyping fix (#4075) 2025-02-17 11:55:58 +08:00
d86bd7c0bc fix(build_llvm.py): clean up whitespace and formatting in build script
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-02-15 16:25:21 +08:00
1971cac6c3 Merge pull request #4086 from no1wudi/fix
build_llvm.py: Allow to build xtensa target on non-xtensa host
2025-02-15 16:08:52 +08:00
46904dce0f build_llvm.py: Allow to build xtensa target on non-xtensa host
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-02-14 16:15:45 +08:00
71bc3c2d15 Add a conditional check for the macro __STDC_VERSION__ (#4080) 2025-02-14 16:13:15 +08:00
1465c3c0eb Unit test:type matching issue and code redundancy (#4079) 2025-02-14 16:13:00 +08:00
aa05360a20 build(deps): Bump github/codeql-action from 3.28.8 to 3.28.9 (#4074)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.8 to 3.28.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.28.8...v3.28.9)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-12 06:49:09 +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