wasm-micro-runtime/core/iwasm/interpreter
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
..
iwasm_interp.cmake Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
wasm_interp_classic.c Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
wasm_interp_fast.c Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
wasm_interp.h Merge branch dev/aot_stack_frame into dev/gc_refactor 2023-10-09 14:21:39 +08:00
wasm_loader.c Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
wasm_loader.h Fix build error when enable custom section without interpreter (#1229) 2022-06-15 18:14:39 +08:00
wasm_mini_loader.c Make max table size configurable through macro (#2632) 2023-10-12 14:13:44 +08:00
wasm_opcode.h Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00
wasm_runtime.c Merge branch dev/aot_stack_frame into dev/gc_refactor 2023-10-09 14:21:39 +08:00
wasm_runtime.h Fix GC AOT issues (#2640) 2023-10-16 13:30:56 +08:00
wasm.h Support stringref proposal (#2651) 2023-10-23 12:45:37 +08:00