mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
formatting commit
This commit is contained in:
parent
bd97970828
commit
253d741f77
|
@ -47,7 +47,7 @@ typedef float64 CellType_F64;
|
||||||
&& (app_addr) <= shared_heap_end_off - bytes + 1)
|
&& (app_addr) <= shared_heap_end_off - bytes + 1)
|
||||||
|
|
||||||
#define shared_heap_addr_app_to_native(app_addr, native_addr) \
|
#define shared_heap_addr_app_to_native(app_addr, native_addr) \
|
||||||
native_addr = shared_heap_base_addr + ((app_addr) - shared_heap_start_off)
|
native_addr = shared_heap_base_addr + ((app_addr)-shared_heap_start_off)
|
||||||
|
|
||||||
#define CHECK_SHARED_HEAP_OVERFLOW(app_addr, bytes, native_addr) \
|
#define CHECK_SHARED_HEAP_OVERFLOW(app_addr, bytes, native_addr) \
|
||||||
if (app_addr_in_shared_heap(app_addr, bytes)) \
|
if (app_addr_in_shared_heap(app_addr, bytes)) \
|
||||||
|
@ -1793,7 +1793,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
else
|
else
|
||||||
cur_func_type = cur_func->u.func->func_type;
|
cur_func_type = cur_func->u.func->func_type;
|
||||||
|
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
#if WASM_ENABLE_GC == 0
|
#if WASM_ENABLE_GC == 0
|
||||||
if (cur_type != cur_func_type) {
|
if (cur_type != cur_func_type) {
|
||||||
wasm_set_exception(module, "indirect call type mismatch");
|
wasm_set_exception(module, "indirect call type mismatch");
|
||||||
|
@ -5897,7 +5897,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
addr = GET_OPERAND(uint32, I32, 0); \
|
addr = GET_OPERAND(uint32, I32, 0); \
|
||||||
frame_ip += 2; \
|
frame_ip += 2; \
|
||||||
addr_ret = GET_OFFSET(); \
|
addr_ret = GET_OFFSET(); \
|
||||||
CHECK_MEMORY_OVERFLOW(4); \
|
CHECK_MEMORY_OVERFLOW(4); \
|
||||||
\
|
\
|
||||||
simde_v128_t simde_result = simde_func(maddr); \
|
simde_v128_t simde_result = simde_func(maddr); \
|
||||||
\
|
\
|
||||||
|
|
|
@ -13217,7 +13217,7 @@ re_scan:
|
||||||
#endif
|
#endif
|
||||||
*p_org = WASM_OP_GET_GLOBAL_64;
|
*p_org = WASM_OP_GET_GLOBAL_64;
|
||||||
}
|
}
|
||||||
#else /* else of WASM_ENABLE_FAST_INTERP */
|
#else /* else of WASM_ENABLE_FAST_INTERP */
|
||||||
if (global_type == VALUE_TYPE_I64
|
if (global_type == VALUE_TYPE_I64
|
||||||
|| global_type == VALUE_TYPE_F64) {
|
|| global_type == VALUE_TYPE_F64) {
|
||||||
skip_label();
|
skip_label();
|
||||||
|
|
|
@ -807,7 +807,7 @@ typedef enum WASMAtomicEXTOpcode {
|
||||||
SET_GOTO_TABLE_ELEM(EXT_OP_TEE_LOCAL_FAST_V128), \
|
SET_GOTO_TABLE_ELEM(EXT_OP_TEE_LOCAL_FAST_V128), \
|
||||||
SET_GOTO_TABLE_ELEM(EXT_OP_COPY_STACK_TOP_V128), \
|
SET_GOTO_TABLE_ELEM(EXT_OP_COPY_STACK_TOP_V128), \
|
||||||
SET_GOTO_TABLE_ELEM(WASM_OP_GET_GLOBAL_128), \
|
SET_GOTO_TABLE_ELEM(WASM_OP_GET_GLOBAL_128), \
|
||||||
SET_GOTO_TABLE_ELEM(WASM_OP_SET_GLOBAL_128), \
|
SET_GOTO_TABLE_ELEM(WASM_OP_SET_GLOBAL_128),
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define DEF_EXT_V128_HANDLE()
|
#define DEF_EXT_V128_HANDLE()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user