mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 13:17:31 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									edee2eb956
								
							
						
					
					
						commit
						7bb78dc260
					
				|  | @ -2235,9 +2235,7 @@ static const char *exception_msgs[] = { | |||
|     "wasm auxiliary stack underflow", /* EXCE_AUX_STACK_UNDERFLOW */ | ||||
|     "out of bounds table access",     /* EXCE_OUT_OF_BOUNDS_TABLE_ACCESS */ | ||||
|     "wasm operand stack overflow",    /* EXCE_OPERAND_STACK_OVERFLOW */ | ||||
| #if WASM_ENABLE_FAST_JIT != 0 | ||||
|     "failed to compile fast jit function", /* EXCE_FAILED_TO_COMPILE_FAST_JIT_FUNC */ | ||||
| #endif | ||||
|     "",                               /* EXCE_ALREADY_THROWN */ | ||||
| }; | ||||
| /* clang-format on */ | ||||
|  |  | |||
|  | @ -63,9 +63,7 @@ typedef enum WASMExceptionID { | |||
|     EXCE_AUX_STACK_UNDERFLOW, | ||||
|     EXCE_OUT_OF_BOUNDS_TABLE_ACCESS, | ||||
|     EXCE_OPERAND_STACK_OVERFLOW, | ||||
| #if WASM_ENABLE_FAST_JIT != 0 | ||||
|     EXCE_FAILED_TO_COMPILE_FAST_JIT_FUNC, | ||||
| #endif | ||||
|     EXCE_ALREADY_THROWN, | ||||
|     EXCE_NUM, | ||||
| } WASMExceptionID; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Wenyong Huang
						Wenyong Huang