mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-23 01:51:13 +00:00
fix: formatting
This commit is contained in:
parent
ca78c6644e
commit
8c262ba005
|
@ -2286,7 +2286,8 @@ wasm_runtime_access_exce_check_guard_page()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WASM_INSTRUCTION_METERING
|
#ifdef WASM_INSTRUCTION_METERING
|
||||||
void wasm_runtime_set_instructions_to_execute(WASMExecEnv *exec_env,
|
void
|
||||||
|
wasm_runtime_set_instructions_to_execute(WASMExecEnv *exec_env,
|
||||||
int instructions_to_execute)
|
int instructions_to_execute)
|
||||||
{
|
{
|
||||||
exec_env->instructions_to_execute = instructions_to_execute;
|
exec_env->instructions_to_execute = instructions_to_execute;
|
||||||
|
|
|
@ -1835,7 +1835,6 @@ WASM_RUNTIME_API_EXTERN void
|
||||||
wasm_runtime_set_instruction_count_limit(wasm_exec_env_t exec_env,
|
wasm_runtime_set_instruction_count_limit(wasm_exec_env_t exec_env,
|
||||||
int instruction_count);
|
int instruction_count);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dump runtime memory consumption, including:
|
* Dump runtime memory consumption, including:
|
||||||
* Exec env memory consumption
|
* Exec env memory consumption
|
||||||
|
|
|
@ -1516,8 +1516,8 @@ wasm_interp_call_func_import(WASMModuleInstance *module_inst,
|
||||||
} \
|
} \
|
||||||
os_mutex_unlock(&exec_env->wait_lock); \
|
os_mutex_unlock(&exec_env->wait_lock); \
|
||||||
} \
|
} \
|
||||||
CHECK_INSTRUCTION_LIMIT(); \ \
|
CHECK_INSTRUCTION_LIMIT(); \
|
||||||
goto *handle_table[*frame_ip++]; \
|
\ goto *handle_table[*frame_ip++]; \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
#define HANDLE_OP_END() \
|
#define HANDLE_OP_END() \
|
||||||
|
@ -1549,7 +1549,7 @@ wasm_interp_call_func_import(WASMModuleInstance *module_inst,
|
||||||
continue;
|
continue;
|
||||||
#else
|
#else
|
||||||
#define HANDLE_OP_END()
|
#define HANDLE_OP_END()
|
||||||
CHECK_INSTRUCTION_LIMIT(); \
|
CHECK_INSTRUCTION_LIMIT();
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1718,7 +1718,10 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
goto got_exception;
|
goto got_exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
HANDLE_OP(WASM_OP_NOP) { HANDLE_OP_END(); }
|
HANDLE_OP(WASM_OP_NOP)
|
||||||
|
{
|
||||||
|
HANDLE_OP_END();
|
||||||
|
}
|
||||||
|
|
||||||
#if WASM_ENABLE_EXCE_HANDLING != 0
|
#if WASM_ENABLE_EXCE_HANDLING != 0
|
||||||
HANDLE_OP(WASM_OP_RETHROW)
|
HANDLE_OP(WASM_OP_RETHROW)
|
||||||
|
@ -5655,7 +5658,10 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
HANDLE_OP(WASM_OP_I32_REINTERPRET_F32)
|
HANDLE_OP(WASM_OP_I32_REINTERPRET_F32)
|
||||||
HANDLE_OP(WASM_OP_I64_REINTERPRET_F64)
|
HANDLE_OP(WASM_OP_I64_REINTERPRET_F64)
|
||||||
HANDLE_OP(WASM_OP_F32_REINTERPRET_I32)
|
HANDLE_OP(WASM_OP_F32_REINTERPRET_I32)
|
||||||
HANDLE_OP(WASM_OP_F64_REINTERPRET_I64) { HANDLE_OP_END(); }
|
HANDLE_OP(WASM_OP_F64_REINTERPRET_I64)
|
||||||
|
{
|
||||||
|
HANDLE_OP_END();
|
||||||
|
}
|
||||||
|
|
||||||
HANDLE_OP(WASM_OP_I32_EXTEND8_S)
|
HANDLE_OP(WASM_OP_I32_EXTEND8_S)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user