Skip to content

Commit 7bb78dc

Browse files
authored
Remove fast jit macro in enum WASMExceptionID (#1933)
The definitions `enum WASMExceptionID` in the compilation of wamrc and the compilation of Fast JIT are different, since the latter enables the Fast JIT macro while the former doesn't. This causes that the exception ID in AOT file generated by wamrc may be different from iwasm binary compiled with Fast JIT enabled, and may result in unexpected behavior. Remove the macro control to resolve it.
1 parent edee2eb commit 7bb78dc

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

core/iwasm/common/wasm_runtime_common.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,9 +2235,7 @@ static const char *exception_msgs[] = {
22352235
"wasm auxiliary stack underflow", /* EXCE_AUX_STACK_UNDERFLOW */
22362236
"out of bounds table access", /* EXCE_OUT_OF_BOUNDS_TABLE_ACCESS */
22372237
"wasm operand stack overflow", /* EXCE_OPERAND_STACK_OVERFLOW */
2238-
#if WASM_ENABLE_FAST_JIT != 0
22392238
"failed to compile fast jit function", /* EXCE_FAILED_TO_COMPILE_FAST_JIT_FUNC */
2240-
#endif
22412239
"", /* EXCE_ALREADY_THROWN */
22422240
};
22432241
/* clang-format on */

core/iwasm/interpreter/wasm_runtime.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ typedef enum WASMExceptionID {
6363
EXCE_AUX_STACK_UNDERFLOW,
6464
EXCE_OUT_OF_BOUNDS_TABLE_ACCESS,
6565
EXCE_OPERAND_STACK_OVERFLOW,
66-
#if WASM_ENABLE_FAST_JIT != 0
6766
EXCE_FAILED_TO_COMPILE_FAST_JIT_FUNC,
68-
#endif
6967
EXCE_ALREADY_THROWN,
7068
EXCE_NUM,
7169
} WASMExceptionID;

0 commit comments

Comments
 (0)