mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-17 01:38:15 +00:00
![]() 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> |
||
---|---|---|
.. | ||
iwasm_interp.cmake | ||
SConscript | ||
wasm_interp_classic.c | ||
wasm_interp_fast.c | ||
wasm_interp.h | ||
wasm_loader.c | ||
wasm_loader.h | ||
wasm_mini_loader.c | ||
wasm_opcode.h | ||
wasm_runtime.c | ||
wasm_runtime.h | ||
wasm.h |