mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-07 02:11:06 +00:00
formatting
This commit is contained in:
parent
fc3077b74d
commit
bda012e990
|
@ -4107,7 +4107,8 @@ aot_frame_update_profile_info(WASMExecEnv *exec_env, bool alloc_frame)
|
||||||
#if WAMR_ENABLE_COPY_CALLSTACK != 0
|
#if WAMR_ENABLE_COPY_CALLSTACK != 0
|
||||||
uint32
|
uint32
|
||||||
aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
||||||
const uint32 length, const uint32 skip_n, char *error_buf, uint32 error_buf_size)
|
const uint32 length, const uint32 skip_n,
|
||||||
|
char *error_buf, uint32 error_buf_size)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Note for devs: please refrain from such modifications inside of
|
* Note for devs: please refrain from such modifications inside of
|
||||||
|
@ -4127,7 +4128,8 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t* buffer,
|
||||||
bool is_top_index_in_range =
|
bool is_top_index_in_range =
|
||||||
top_boundary >= top && top >= (bottom + sizeof(AOTTinyFrame));
|
top_boundary >= top && top >= (bottom + sizeof(AOTTinyFrame));
|
||||||
if (!is_top_index_in_range) {
|
if (!is_top_index_in_range) {
|
||||||
char* err_msg = "Top of the stack pointer is outside of the stack boundaries";
|
char *err_msg =
|
||||||
|
"Top of the stack pointer is outside of the stack boundaries";
|
||||||
strncpy(error_buf, err_msg, error_buf_size);
|
strncpy(error_buf, err_msg, error_buf_size);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -4159,9 +4161,9 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t* buffer,
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32
|
uint32
|
||||||
aot_copy_callstack_standard_frame(WASMExecEnv *exec_env,
|
aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
||||||
wasm_frame_t* buffer, const uint32 length,
|
const uint32 length, const uint32 skip_n,
|
||||||
const uint32 skip_n, char *error_buf, uint32_t error_buf_size)
|
char *error_buf, uint32_t error_buf_size)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Note for devs: please refrain from such modifications inside of
|
* Note for devs: please refrain from such modifications inside of
|
||||||
|
@ -4209,7 +4211,8 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env,
|
||||||
|
|
||||||
uint32
|
uint32
|
||||||
aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
||||||
const uint32 length, const uint32 skip_n, char *error_buf, uint32_t error_buf_size)
|
const uint32 length, const uint32 skip_n, char *error_buf,
|
||||||
|
uint32_t error_buf_size)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Note for devs: please refrain from such modifications inside of
|
* Note for devs: please refrain from such modifications inside of
|
||||||
|
@ -4221,11 +4224,12 @@ aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_t* buffer,
|
||||||
* wasm_export.h
|
* wasm_export.h
|
||||||
*/
|
*/
|
||||||
if (!is_tiny_frame(exec_env)) {
|
if (!is_tiny_frame(exec_env)) {
|
||||||
return aot_copy_callstack_standard_frame(exec_env, buffer, length,
|
return aot_copy_callstack_standard_frame(
|
||||||
skip_n, error_buf, error_buf_size);
|
exec_env, buffer, length, skip_n, error_buf, error_buf_size);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return aot_copy_callstack_tiny_frame(exec_env, buffer, length, skip_n, error_buf, error_buf_size);
|
return aot_copy_callstack_tiny_frame(exec_env, buffer, length, skip_n,
|
||||||
|
error_buf, error_buf_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // WAMR_ENABLE_COPY_CALLSTACK
|
#endif // WAMR_ENABLE_COPY_CALLSTACK
|
||||||
|
|
Loading…
Reference in New Issue
Block a user