wasm-micro-runtime/core/iwasm/common
Su Yihan 2f45f12cd7
Support stringref proposal (#2651)
This PR implements the WebAssembly stringref proposal:
  https://github.com/WebAssembly/stringref

It adds cmake variable `WAMR_BUILD_STRINGREF` to build the feature,
which will enable GC automatically.

The stringref contains two parts:
- `part 1`: add new ref types in WasmGC, add opcode processing in loader and interpreter
- `part 2`: add a library for string representation/encoding/decoding and so on

To reduce the code size introduced to WAMR, this PR only includes `part 1`,
`part 2` can be provided by embedder, they may use their own implementation,
e.g., Wasmnizer-ts uses JSString from QuickJS to implement stringref:
https://github.com/intel/Wasmnizer-ts/blob/main/runtime-library/stringref/stringref_qjs.c

We will submit another PR of `part 2` and make it as a sample rather than WAMR core part.

Signed-off-by: Su Yihan <yihan.su@intel.com>
Co-authored-by: Xu Jun <jun1.xu@intel.com>
2023-10-23 12:45:37 +08:00
..
arch Merge branch main into dev/gc_refactor (#2114) 2023-04-07 12:01:45 +08:00
gc Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
iwasm_common.cmake Merge branch main into dev/gc_refactor (#2114) 2023-04-07 12:01:45 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
wasm_application.c Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
wasm_blocking_op.c Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasm_c_api_internal.h wasm-c-api: Fix init/destroy thread env multiple times issue (#1766) 2022-12-05 11:16:14 +08:00
wasm_c_api.c Merge branch main into dev/gc_refactor 2023-08-23 16:40:13 +08:00
wasm_exec_env.c Implement AOT file emitting and loading for GC (#2366) 2023-09-19 15:51:32 +08:00
wasm_exec_env.h Merge branch dev/aot_stack_frame into dev/gc_refactor 2023-10-09 14:21:39 +08:00
wasm_memory.c Add user to enlarge memory error callback (#2546) 2023-09-13 18:03:49 +08:00
wasm_memory.h Add user to enlarge memory error callback (#2546) 2023-09-13 18:03:49 +08:00
wasm_native.c Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
wasm_native.h Merge branch main into dev/gc_refactor 2023-10-08 10:53:13 +08:00
wasm_runtime_common.c Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
wasm_runtime_common.h Merge branch dev/aot_stack_frame into dev/gc_refactor 2023-10-09 14:21:39 +08:00
wasm_shared_memory.c Fix memory sharing (#2415) 2023-08-04 10:18:13 +08:00
wasm_shared_memory.h Fix memory sharing (#2415) 2023-08-04 10:18:13 +08:00
wasm_suspend_flags.h Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00