minor changes (#195)
This commit is contained in:
@ -10,7 +10,7 @@ include_directories(${IWASM_INTERP_DIR})
|
||||
if (WAMR_BUILD_FAST_INTERP EQUAL 1)
|
||||
set (INTERPRETER "wasm_interp_fast.c")
|
||||
else ()
|
||||
set (INTERPRETER "wasm_interp.c")
|
||||
set (INTERPRETER "wasm_interp_classic.c")
|
||||
endif ()
|
||||
|
||||
file (GLOB_RECURSE source_all
|
||||
|
||||
@ -874,12 +874,6 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
}
|
||||
goto return_func;
|
||||
|
||||
HANDLE_OP (WASM_OP_CALL):
|
||||
fidx = frame_lp[GET_OFFSET()];
|
||||
bh_assert(fidx < module->function_count);
|
||||
cur_func = module->functions + fidx;
|
||||
goto call_func_from_interp;
|
||||
|
||||
HANDLE_OP (WASM_OP_CALL_INDIRECT):
|
||||
{
|
||||
WASMType *cur_type, *cur_func_type;
|
||||
@ -2056,6 +2050,12 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
frame_ip = frame->ip;
|
||||
goto call_func_from_entry;
|
||||
|
||||
HANDLE_OP (WASM_OP_CALL):
|
||||
fidx = frame_lp[GET_OFFSET()];
|
||||
bh_assert(fidx < module->function_count);
|
||||
cur_func = module->functions + fidx;
|
||||
goto call_func_from_interp;
|
||||
|
||||
#if WASM_ENABLE_LABELS_AS_VALUES == 0
|
||||
default:
|
||||
wasm_set_exception(module, "WASM interp failed: unsupported opcode.");
|
||||
|
||||
Reference in New Issue
Block a user