mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
last fixes
This commit is contained in:
parent
6166788c33
commit
56bb7e715b
|
@ -4172,6 +4172,7 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
||||||
* top_boundary For more details check wasm_iterate_callstack in
|
* top_boundary For more details check wasm_iterate_callstack in
|
||||||
* wasm_export.h
|
* wasm_export.h
|
||||||
*/
|
*/
|
||||||
|
uint32 count = 0;
|
||||||
#if WASM_ENABLE_GC == 0
|
#if WASM_ENABLE_GC == 0
|
||||||
WASMModuleInstance *module_inst =
|
WASMModuleInstance *module_inst =
|
||||||
(WASMModuleInstance *)wasm_exec_env_get_module_inst(exec_env);
|
(WASMModuleInstance *)wasm_exec_env_get_module_inst(exec_env);
|
||||||
|
@ -4179,7 +4180,6 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
||||||
uint8 *top_boundary = exec_env->wasm_stack.top_boundary;
|
uint8 *top_boundary = exec_env->wasm_stack.top_boundary;
|
||||||
uint8 *bottom = exec_env->wasm_stack.bottom;
|
uint8 *bottom = exec_env->wasm_stack.bottom;
|
||||||
uint32 frame_size = (uint32)offsetof(AOTFrame, lp);
|
uint32 frame_size = (uint32)offsetof(AOTFrame, lp);
|
||||||
uint32 count = 0;
|
|
||||||
|
|
||||||
WASMCApiFrame record_frame;
|
WASMCApiFrame record_frame;
|
||||||
while (cur_frame && (uint8_t *)cur_frame >= bottom
|
while (cur_frame && (uint8_t *)cur_frame >= bottom
|
||||||
|
@ -4198,13 +4198,13 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
||||||
cur_frame = cur_frame->prev_frame;
|
cur_frame = cur_frame->prev_frame;
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
return count;
|
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* TODO: add support for standard frames when GC is enabled
|
* TODO: add support for standard frames when GC is enabled
|
||||||
* now it poses a risk due to variable size of the frame
|
* now it poses a risk due to variable size of the frame
|
||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32
|
uint32
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
#include "wasm_runtime.h"
|
#include "wasm_runtime.h"
|
||||||
#include "wasm.h"
|
#include "wasm.h"
|
||||||
#include "wasm_c_api.h"
|
|
||||||
#include "wasm_exec_env.h"
|
|
||||||
#include "wasm_loader.h"
|
#include "wasm_loader.h"
|
||||||
#include "wasm_interp.h"
|
#include "wasm_interp.h"
|
||||||
#include "bh_common.h"
|
#include "bh_common.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user