feat: add support for EXTERNREF value type and enable AOT validator in fuzz tests (#4083)
This commit is contained in:
@ -4458,8 +4458,9 @@ wasm_func_type_get_param_valkind(WASMFuncType *const func_type,
|
|||||||
return WASM_V128;
|
return WASM_V128;
|
||||||
case VALUE_TYPE_FUNCREF:
|
case VALUE_TYPE_FUNCREF:
|
||||||
return WASM_FUNCREF;
|
return WASM_FUNCREF;
|
||||||
|
|
||||||
case VALUE_TYPE_EXTERNREF:
|
case VALUE_TYPE_EXTERNREF:
|
||||||
|
return WASM_EXTERNREF;
|
||||||
|
|
||||||
case VALUE_TYPE_VOID:
|
case VALUE_TYPE_VOID:
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|||||||
@ -119,6 +119,8 @@ endif ()
|
|||||||
# sanitizer may use kHandleSignalExclusive to handle SIGSEGV
|
# sanitizer may use kHandleSignalExclusive to handle SIGSEGV
|
||||||
# like `UBSAN_OPTIONS=handle_segv=2:...`
|
# like `UBSAN_OPTIONS=handle_segv=2:...`
|
||||||
set (WAMR_DISABLE_HW_BOUND_CHECK 1)
|
set (WAMR_DISABLE_HW_BOUND_CHECK 1)
|
||||||
|
# Enable aot validator
|
||||||
|
set (WAMR_BUILD_AOT_VALIDATOR 1)
|
||||||
|
|
||||||
set (REPO_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../..)
|
set (REPO_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../..)
|
||||||
message([ceith]:REPO_ROOT_DIR, ${REPO_ROOT_DIR})
|
message([ceith]:REPO_ROOT_DIR, ${REPO_ROOT_DIR})
|
||||||
|
|||||||
@ -136,8 +136,9 @@ execute_export_functions(wasm_module_t module, wasm_module_inst_t inst)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ret = wasm_runtime_call_wasm_a(exec_env, func, result_count,
|
bool ret =
|
||||||
results.data(), param_count, args.data());
|
wasm_runtime_call_wasm_a(exec_env, func, result_count,
|
||||||
|
results.data(), param_count, args.data());
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
const char *exception = wasm_runtime_get_exception(inst);
|
const char *exception = wasm_runtime_get_exception(inst);
|
||||||
if (!exception) {
|
if (!exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user