@@ -4106,8 +4106,7 @@ aot_frame_update_profile_info(WASMExecEnv *exec_env, bool alloc_frame)
4106
4106
#if WAMR_ENABLE_COPY_CALLSTACK != 0
4107
4107
uint32
4108
4108
aot_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 )
4111
4110
{
4112
4111
/*
4113
4112
* 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,
4137
4136
4138
4137
AOTTinyFrame * frame = (AOTTinyFrame * )(top - sizeof (AOTTinyFrame ));
4139
4138
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 )) {
4142
4140
if (count < skip_n ) {
4143
4141
++ count ;
4144
4142
frame -= 1 ;
@@ -4156,9 +4154,9 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
4156
4154
}
4157
4155
4158
4156
uint32
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 )
4162
4160
{
4163
4161
/*
4164
4162
* 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
4204
4202
#endif
4205
4203
}
4206
4204
4207
-
4208
4205
uint32
4209
4206
aot_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 )
4212
4208
{
4213
4209
/*
4214
4210
* 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,
4220
4216
* wasm_export.h
4221
4217
*/
4222
4218
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 );
4224
4221
}
4225
4222
else {
4226
4223
return aot_copy_callstack_tiny_frame (exec_env , buffer , length , skip_n );
0 commit comments