Skip to content

Commit cc3f0a0

Browse files
author
Georgii Rylov :slightly_smiling_face
committed
Cleaning up
1 parent 32338bb commit cc3f0a0

File tree

6 files changed

+5
-12
lines changed

6 files changed

+5
-12
lines changed

build-scripts/config_common.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ endif()
321321

322322
if (WAMR_ENABLE_COPY_CALLSTACK EQUAL 1)
323323
add_definitions (-DWAMR_ENABLE_COPY_CALLSTACK=1)
324-
message(" Copy callstack enabled")
324+
message(" Copy callstack enabled")
325325
else ()
326326
add_definitions (-DWAMR_ENABLE_COPY_CALLSTACK=0)
327-
message(" Copy callstack disabled")
327+
message(" Copy callstack disabled")
328328
endif()
329329

330330
if (WAMR_BUILD_MEMORY64 EQUAL 1)

core/iwasm/aot/aot_runtime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,11 +4111,11 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
41114111
{
41124112
/*
41134113
* Note for devs: please refrain from such modifications inside of
4114-
* aot_iterate_callstack_tiny_frame
4114+
* aot_copy_callstack_tiny_frame
41154115
* - any allocations/freeing memory
41164116
* - dereferencing any pointers other than: exec_env, exec_env->module_inst,
41174117
* exec_env->module_inst->module, pointers between stack's bottom and
4118-
* top_boundary For more details check wasm_iterate_callstack in
4118+
* top_boundary For more details check wasm_copy_callstack in
41194119
* wasm_export.h
41204120
*/
41214121
uint8 *top_boundary = exec_env->wasm_stack.top_boundary;
@@ -4409,7 +4409,7 @@ aot_dump_call_stack(WASMExecEnv *exec_env, bool print, char *buf, uint32 len)
44094409

44104410
return total_len + 1;
44114411
}
4412-
#endif /* end of WASM_ENABLE_DUMP_CALL_STACK != 0 && WASM_ENABLE_AOT_STACK_FRAME != 0 */
4412+
#endif /* end of WASM_ENABLE_DUMP_CALL_STACK != 0 */
44134413

44144414
#if WASM_ENABLE_PERF_PROFILING != 0
44154415
void

core/iwasm/aot/aot_runtime.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "../common/wasm_runtime_common.h"
1111
#include "../interpreter/wasm_runtime.h"
1212
#include "../compilation/aot.h"
13-
#include "platform_common.h"
1413
#if WASM_ENABLE_GC != 0
1514
#include "gc_export.h"
1615
#endif

core/iwasm/common/wasm_runtime_common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "bh_common.h"
88
#include "bh_assert.h"
99
#include "bh_log.h"
10-
#include "platform_common.h"
1110
#include "wasm_export.h"
1211
#include "wasm_native.h"
1312
#include "wasm_runtime_common.h"

core/iwasm/common/wasm_runtime_common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "bh_platform.h"
1010
#include "bh_common.h"
11-
#include "platform_common.h"
1211
#include "wasm_exec_env.h"
1312
#include "wasm_native.h"
1413
#include "../include/wasm_export.h"

core/iwasm/include/wasm_export.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ typedef struct wasm_frame_t {
140140
uint32_t *lp;
141141
} WASMCApiFrame;
142142

143-
// #if WAMR_ENABLE_COPY_CALLSTACK != 0
144143
typedef struct wasm_frame_t *wasm_frame_ptr_t;
145-
// #endif // WAMR_ENABLE_COPY_CALLSTACK
146144

147145
/* WASM section */
148146
typedef struct wasm_section_t {
@@ -883,7 +881,6 @@ WASM_RUNTIME_API_EXTERN void
883881
wasm_runtime_destroy_exec_env(wasm_exec_env_t exec_env);
884882

885883

886-
// #if WAMR_ENABLE_COPY_CALLSTACK != 0
887884
/**
888885
* @brief Copy callstack frames.
889886
*
@@ -910,7 +907,6 @@ wasm_runtime_destroy_exec_env(wasm_exec_env_t exec_env);
910907
WASM_RUNTIME_API_EXTERN uint32_t
911908
wasm_copy_callstack(const wasm_exec_env_t exec_env, wasm_frame_ptr_t buffer,
912909
const uint32_t length, const uint32_t skip_n);
913-
// #endif
914910

915911
/**
916912
* Get the singleton execution environment for the instance.

0 commit comments

Comments
 (0)