Store import function pointer in module instance (#1130)
Fix the issue reported by #1118 , use this approach since it avoids copying unnecessary static information into instance and reduces the footprint.
This commit is contained in:
@ -165,6 +165,9 @@ struct WASMModuleInstance {
|
||||
uint32 export_tab_count;
|
||||
#endif
|
||||
|
||||
/* Array of function pointers to import functions */
|
||||
void **import_func_ptrs;
|
||||
|
||||
WASMMemoryInstance **memories;
|
||||
WASMTableInstance **tables;
|
||||
WASMGlobalInstance *globals;
|
||||
|
||||
Reference in New Issue
Block a user