minor changes (#195)

This commit is contained in:
Weining
2020-03-11 13:49:52 +08:00
committed by GitHub
parent 0fdd49ea31
commit aa42335a4e
7 changed files with 70 additions and 47 deletions

View File

@ -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.");