mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 08:55:28 +00:00
formatting
This commit is contained in:
parent
a5d8c0b477
commit
99cb6ec27e
|
@ -4106,8 +4106,7 @@ aot_frame_update_profile_info(WASMExecEnv *exec_env, bool alloc_frame)
|
|||
#if WAMR_ENABLE_COPY_CALLSTACK != 0
|
||||
uint32
|
||||
aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
|
||||
const uint32 length,
|
||||
const uint32 skip_n)
|
||||
const uint32 length, const uint32 skip_n)
|
||||
{
|
||||
/*
|
||||
* 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,
|
|||
|
||||
AOTTinyFrame *frame = (AOTTinyFrame *)(top - sizeof(AOTTinyFrame));
|
||||
WASMCApiFrame record_frame;
|
||||
while (frame && (uint8_t *)frame >= bottom
|
||||
&& count < (skip_n + length)) {
|
||||
while (frame && (uint8_t *)frame >= bottom && count < (skip_n + length)) {
|
||||
if (count < skip_n) {
|
||||
++count;
|
||||
frame -= 1;
|
||||
|
@ -4156,9 +4154,9 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
|
|||
}
|
||||
|
||||
uint32
|
||||
aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
|
||||
const uint32 length,
|
||||
const uint32 skip_n)
|
||||
aot_copy_callstack_standard_frame(WASMExecEnv *exec_env,
|
||||
wasm_frame_ptr_t buffer, const uint32 length,
|
||||
const uint32 skip_n)
|
||||
{
|
||||
/*
|
||||
* 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
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
uint32
|
||||
aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
|
||||
const uint32 length,
|
||||
const uint32 skip_n)
|
||||
const uint32 length, const uint32 skip_n)
|
||||
{
|
||||
/*
|
||||
* 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,
|
|||
* wasm_export.h
|
||||
*/
|
||||
if (!is_tiny_frame(exec_env)) {
|
||||
return aot_copy_callstack_standard_frame(exec_env, buffer, length, skip_n);
|
||||
return aot_copy_callstack_standard_frame(exec_env, buffer, length,
|
||||
skip_n);
|
||||
}
|
||||
else {
|
||||
return aot_copy_callstack_tiny_frame(exec_env, buffer, length, skip_n);
|
||||
|
|
Loading…
Reference in New Issue
Block a user