Add support for multi-memory proposal in classic interpreter (#3742)
Implement multi-memory for classic-interpreter. Support core spec (and bulk memory) opcodes now, and will support atomic opcodes, and add multi-memory export APIs in the future. PS: Multi-memory spec test patched a lot for linking test to adapt for multi-module implementation.
This commit is contained in:
@ -3837,6 +3837,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
addr_ret = GET_OFFSET();
|
||||
delta = (uint32)frame_lp[addr1];
|
||||
|
||||
/* TODO: multi-memory wasm_enlarge_memory_with_idx() */
|
||||
if (!wasm_enlarge_memory(module, delta)) {
|
||||
/* failed to memory.grow, return -1 */
|
||||
frame_lp[addr_ret] = -1;
|
||||
|
||||
Reference in New Issue
Block a user