wasm_create_exec_env_and_call_function: Remove "enable_debug" argument (#1398)
No one uses the `enable_debug` argument after the removal of wasm_runtime_create_exec_env_and_call_wasm.
This commit is contained in:
@ -977,7 +977,7 @@ execute_post_inst_function(WASMModuleInstance *module_inst)
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
return wasm_create_exec_env_and_call_function(module_inst, post_inst_func,
|
return wasm_create_exec_env_and_call_function(module_inst, post_inst_func,
|
||||||
0, NULL, false);
|
0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WASM_ENABLE_BULK_MEMORY != 0
|
#if WASM_ENABLE_BULK_MEMORY != 0
|
||||||
@ -1006,7 +1006,7 @@ execute_memory_init_function(WASMModuleInstance *module_inst)
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
return wasm_create_exec_env_and_call_function(module_inst, memory_init_func,
|
return wasm_create_exec_env_and_call_function(module_inst, memory_init_func,
|
||||||
0, NULL, false);
|
0, NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1021,8 +1021,7 @@ execute_start_function(WASMModuleInstance *module_inst)
|
|||||||
bh_assert(!func->is_import_func && func->param_cell_num == 0
|
bh_assert(!func->is_import_func && func->param_cell_num == 0
|
||||||
&& func->ret_cell_num == 0);
|
&& func->ret_cell_num == 0);
|
||||||
|
|
||||||
return wasm_create_exec_env_and_call_function(module_inst, func, 0, NULL,
|
return wasm_create_exec_env_and_call_function(module_inst, func, 0, NULL);
|
||||||
false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
@ -1066,11 +1065,11 @@ execute_malloc_function(WASMModuleInstance *module_inst,
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ret = wasm_create_exec_env_and_call_function(module_inst, malloc_func,
|
ret = wasm_create_exec_env_and_call_function(module_inst, malloc_func,
|
||||||
argc, argv, false);
|
argc, argv);
|
||||||
|
|
||||||
if (retain_func && ret) {
|
if (retain_func && ret) {
|
||||||
ret = wasm_create_exec_env_and_call_function(
|
ret = wasm_create_exec_env_and_call_function(module_inst,
|
||||||
module_inst, retain_func, 1, argv, false);
|
retain_func, 1, argv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1099,7 +1098,7 @@ execute_free_function(WASMModuleInstance *module_inst,
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
return wasm_create_exec_env_and_call_function(module_inst, free_func, 1,
|
return wasm_create_exec_env_and_call_function(module_inst, free_func, 1,
|
||||||
argv, false);
|
argv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1159,7 +1158,7 @@ sub_module_instantiate(WASMModule *module, WASMModuleInstance *module_inst,
|
|||||||
wasm_lookup_function(sub_module_inst, "_initialize", NULL);
|
wasm_lookup_function(sub_module_inst, "_initialize", NULL);
|
||||||
if (initialize
|
if (initialize
|
||||||
&& !wasm_create_exec_env_and_call_function(
|
&& !wasm_create_exec_env_and_call_function(
|
||||||
sub_module_inst, initialize, 0, NULL, false)) {
|
sub_module_inst, initialize, 0, NULL)) {
|
||||||
set_error_buf(error_buf, error_buf_size,
|
set_error_buf(error_buf, error_buf_size,
|
||||||
"Call _initialize failed ");
|
"Call _initialize failed ");
|
||||||
goto failed;
|
goto failed;
|
||||||
@ -2032,8 +2031,7 @@ wasm_call_function(WASMExecEnv *exec_env, WASMFunctionInstance *function,
|
|||||||
bool
|
bool
|
||||||
wasm_create_exec_env_and_call_function(WASMModuleInstance *module_inst,
|
wasm_create_exec_env_and_call_function(WASMModuleInstance *module_inst,
|
||||||
WASMFunctionInstance *func,
|
WASMFunctionInstance *func,
|
||||||
unsigned argc, uint32 argv[],
|
unsigned argc, uint32 argv[])
|
||||||
bool enable_debug)
|
|
||||||
{
|
{
|
||||||
WASMExecEnv *exec_env = NULL, *existing_exec_env = NULL;
|
WASMExecEnv *exec_env = NULL, *existing_exec_env = NULL;
|
||||||
bool ret;
|
bool ret;
|
||||||
@ -2052,14 +2050,6 @@ wasm_create_exec_env_and_call_function(WASMModuleInstance *module_inst,
|
|||||||
wasm_set_exception(module_inst, "allocate memory failed");
|
wasm_set_exception(module_inst, "allocate memory failed");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WASM_ENABLE_THREAD_MGR != 0
|
|
||||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
|
||||||
if (enable_debug) {
|
|
||||||
wasm_runtime_start_debug_instance(exec_env);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = wasm_call_function(exec_env, func, argc, argv);
|
ret = wasm_call_function(exec_env, func, argc, argv);
|
||||||
|
|||||||
@ -334,8 +334,7 @@ wasm_call_function(WASMExecEnv *exec_env, WASMFunctionInstance *function,
|
|||||||
bool
|
bool
|
||||||
wasm_create_exec_env_and_call_function(WASMModuleInstance *module_inst,
|
wasm_create_exec_env_and_call_function(WASMModuleInstance *module_inst,
|
||||||
WASMFunctionInstance *function,
|
WASMFunctionInstance *function,
|
||||||
unsigned argc, uint32 argv[],
|
unsigned argc, uint32 argv[]);
|
||||||
bool enable_debug);
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
wasm_create_exec_env_singleton(WASMModuleInstance *module_inst);
|
wasm_create_exec_env_singleton(WASMModuleInstance *module_inst);
|
||||||
|
|||||||
Reference in New Issue
Block a user