|
|
|
@ -166,17 +166,17 @@ set_global_i64(uint32_t offset, int64_t v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Table handling functionality
|
|
|
|
|
INLINE char *
|
|
|
|
|
get_function_from_table(uint32_t idx, uint32_t type_id)
|
|
|
|
|
{
|
|
|
|
|
assert(idx < INDIRECT_TABLE_SIZE);
|
|
|
|
|
// INLINE char *
|
|
|
|
|
// get_function_from_table(uint32_t idx, uint32_t type_id)
|
|
|
|
|
// {
|
|
|
|
|
// assert(idx < INDIRECT_TABLE_SIZE);
|
|
|
|
|
|
|
|
|
|
struct indirect_table_entry f = local_sandbox_context_cache.module_indirect_table[idx];
|
|
|
|
|
// struct indirect_table_entry f = local_sandbox_context_cache.module_indirect_table[idx];
|
|
|
|
|
|
|
|
|
|
// FIXME: Commented out function type check because of gocr
|
|
|
|
|
// assert(f.type_id == type_id);
|
|
|
|
|
// // FIXME: Commented out function type check because of gocr
|
|
|
|
|
// // assert(f.type_id == type_id);
|
|
|
|
|
|
|
|
|
|
assert(f.func_pointer);
|
|
|
|
|
// assert(f.func_pointer);
|
|
|
|
|
|
|
|
|
|
return f.func_pointer;
|
|
|
|
|
}
|
|
|
|
|
// return f.func_pointer;
|
|
|
|
|
// }
|
|
|
|
|