wasm-micro-runtime/core/iwasm/interpreter
Benbuck Nason 926f662231
Add memory instance support apis (#3786)
Now that WAMR supports multiple memory instances, this PR adds some APIs
to access them in a standard way.

This involves moving some existing utility functions out from the
`WASM_ENABLE_MULTI_MODULE` blocks they were nested in, but multi-memory
and multi-module seem independent as far as I can tell so I assume that's okay.

APIs added:
```C
wasm_runtime_lookup_memory
wasm_runtime_get_default_memory
wasm_runtime_get_memory
wasm_memory_get_cur_page_count
wasm_memory_get_max_page_count
wasm_memory_get_bytes_per_page
wasm_memory_get_shared
wasm_memory_get_base_address
wasm_memory_enlarge
```
2024-09-14 10:31:13 +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 aot compiler: Allow to control stack boundary check when boundary check is enabled (#3754) 2024-08-29 11:08:39 +08:00
wasm_interp_fast.c Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_interp.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
wasm_loader.c Fix compile error when multi-module and tags are enabled (#3781) 2024-09-10 09:55:15 +08:00
wasm_loader.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
wasm_mini_loader.c Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_opcode.h Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
wasm_runtime.c Add memory instance support apis (#3786) 2024-09-14 10:31:13 +08:00
wasm_runtime.h Add memory instance support apis (#3786) 2024-09-14 10:31:13 +08:00
wasm.h Add support for multi-memory proposal in classic interpreter (#3742) 2024-08-21 12:22:23 +08:00