Import reference-types feature (#612)

Implement spec reference-types proposal for interpreter, AOT and JIT, update documents and add sample. And upgrade AOT_CURRENT_VERSION to 3 as AOT file format and AOT module instance layout are changed.

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
Wenyong Huang
2021-04-15 11:29:20 +08:00
committed by GitHub
parent 7706e4b151
commit 03d45f1d62
48 changed files with 5557 additions and 856 deletions

View File

@ -307,7 +307,8 @@ bh_hash_map_get_elem_struct_size()
}
bool
bh_hash_map_traverse(HashMap *map, TraverseCallbackFunc callback)
bh_hash_map_traverse(HashMap *map, TraverseCallbackFunc callback,
void *user_data)
{
uint32 index;
HashMapElem *elem, *next;
@ -325,7 +326,7 @@ bh_hash_map_traverse(HashMap *map, TraverseCallbackFunc callback)
elem = map->elements[index];
while (elem) {
next = elem->next;
callback(elem->key, elem->value);
callback(elem->key, elem->value, user_data);
elem = next;
}
}