Fix fast-jit accessing shared memory's fields issue (#2841)
For shared memory, runtime should get the memories pointer from module_inst first, then get memory instance from memories array, and then get the fields of the memory instance.
This commit is contained in:
@ -192,6 +192,12 @@ get_aux_stack_bound_reg(JitFrame *frame);
|
||||
JitReg
|
||||
get_aux_stack_bottom_reg(JitFrame *frame);
|
||||
|
||||
JitReg
|
||||
get_memory_inst_reg(JitFrame *frame, uint32 mem_idx);
|
||||
|
||||
JitReg
|
||||
get_cur_page_count_reg(JitFrame *frame, uint32 mem_idx);
|
||||
|
||||
JitReg
|
||||
get_memory_data_reg(JitFrame *frame, uint32 mem_idx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user