Enable quick aot entry when hw bound check is disabled (#3044)
- Enable quick aot entry when hw bound check is disabled - Remove unnecessary ret_type argument in the quick aot entries - Declare detailed prototype of aot function to call in each quick aot entry
This commit is contained in:
@ -4207,14 +4207,11 @@ llvm_jit_call_func_bytecode(WASMModuleInstance *module_inst,
|
||||
#if WASM_ENABLE_QUICK_AOT_ENTRY != 0
|
||||
/* Quick call if the quick jit entry is registered */
|
||||
if (func_type->quick_aot_entry) {
|
||||
void (*invoke_native)(
|
||||
void *func_ptr, uint8 ret_type, void *exec_env, uint32 *argv,
|
||||
uint32 *argv_ret) = func_type->quick_aot_entry;
|
||||
invoke_native(module_inst->func_ptrs[func_idx],
|
||||
func_type->result_count > 0
|
||||
? func_type->types[func_type->param_count]
|
||||
: VALUE_TYPE_VOID,
|
||||
exec_env, argv, argv);
|
||||
void (*invoke_native)(void *func_ptr, void *exec_env, uint32 *argv,
|
||||
uint32 *argv_ret) =
|
||||
func_type->quick_aot_entry;
|
||||
invoke_native(module_inst->func_ptrs[func_idx], exec_env, argv,
|
||||
argv);
|
||||
ret = !wasm_copy_exception(module_inst, NULL);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user