@@ -4106,8 +4106,7 @@ aot_frame_update_profile_info(WASMExecEnv *exec_env, bool alloc_frame)
41064106#if WAMR_ENABLE_COPY_CALLSTACK != 0
41074107uint32
41084108aot_copy_callstack_tiny_frame (WASMExecEnv * exec_env , wasm_frame_ptr_t buffer ,
4109- const uint32 length ,
4110- const uint32 skip_n )
4109+ const uint32 length , const uint32 skip_n )
41114110{
41124111 /*
41134112 * Note for devs: please refrain from such modifications inside of
@@ -4137,8 +4136,7 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
41374136
41384137 AOTTinyFrame * frame = (AOTTinyFrame * )(top - sizeof (AOTTinyFrame ));
41394138 WASMCApiFrame record_frame ;
4140- while (frame && (uint8_t * )frame >= bottom
4141- && count < (skip_n + length )) {
4139+ while (frame && (uint8_t * )frame >= bottom && count < (skip_n + length )) {
41424140 if (count < skip_n ) {
41434141 ++ count ;
41444142 frame -= 1 ;
@@ -4156,9 +4154,9 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
41564154}
41574155
41584156uint32
4159- aot_copy_callstack_standard_frame (WASMExecEnv * exec_env , wasm_frame_ptr_t buffer ,
4160- const uint32 length ,
4161- const uint32 skip_n )
4157+ aot_copy_callstack_standard_frame (WASMExecEnv * exec_env ,
4158+ wasm_frame_ptr_t buffer , const uint32 length ,
4159+ const uint32 skip_n )
41624160{
41634161 /*
41644162 * Note for devs: please refrain from such modifications inside of
@@ -4204,11 +4202,9 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer
42044202#endif
42054203}
42064204
4207-
42084205uint32
42094206aot_copy_callstack (WASMExecEnv * exec_env , wasm_frame_ptr_t buffer ,
4210- const uint32 length ,
4211- const uint32 skip_n )
4207+ const uint32 length , const uint32 skip_n )
42124208{
42134209 /*
42144210 * Note for devs: please refrain from such modifications inside of
@@ -4220,7 +4216,8 @@ aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
42204216 * wasm_export.h
42214217 */
42224218 if (!is_tiny_frame (exec_env )) {
4223- return aot_copy_callstack_standard_frame (exec_env , buffer , length , skip_n );
4219+ return aot_copy_callstack_standard_frame (exec_env , buffer , length ,
4220+ skip_n );
42244221 }
42254222 else {
42264223 return aot_copy_callstack_tiny_frame (exec_env , buffer , length , skip_n );
0 commit comments