wasm-micro-runtime/core/iwasm
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
..
aot Add memory instance support apis (#3786) 2024-09-14 10:31:13 +08:00
common Add memory instance support apis (#3786) 2024-09-14 10:31:13 +08:00
compilation Implement option for skipping function index in the callstack (#3785) 2024-09-11 16:08:37 +08:00
doc Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
fast-jit Add support for multi-memory proposal in classic interpreter (#3742) 2024-08-21 12:22:23 +08:00
include Add memory instance support apis (#3786) 2024-09-14 10:31:13 +08:00
interpreter Add memory instance support apis (#3786) 2024-09-14 10:31:13 +08:00
libraries Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00