@@ -75,11 +75,6 @@ bh_static_assert(offsetof(AOTFrame, sp) == sizeof(uintptr_t) * 5);
75
75
bh_static_assert (offsetof(AOTFrame , frame_ref ) == sizeof (uintptr_t ) * 6 );
76
76
bh_static_assert (offsetof(AOTFrame , lp ) == sizeof (uintptr_t ) * 7 );
77
77
78
- bh_static_assert (offsetof(AOTFrame , ip_offset ) == sizeof (uintptr_t ) * 4 );
79
- bh_static_assert (offsetof(AOTFrame , sp ) == sizeof (uintptr_t ) * 5 );
80
- bh_static_assert (offsetof(AOTFrame , frame_ref ) == sizeof (uintptr_t ) * 6 );
81
- bh_static_assert (offsetof(AOTFrame , lp ) == sizeof (uintptr_t ) * 7 );
82
-
83
78
static void
84
79
set_error_buf (char * error_buf , uint32 error_buf_size , const char * string )
85
80
{
@@ -1055,7 +1050,7 @@ memories_instantiate(AOTModuleInstance *module_inst, AOTModuleInstance *parent,
1055
1050
#if WASM_ENABLE_SHARED_MEMORY != 0
1056
1051
/* Currently we have only one memory instance */
1057
1052
bool is_shared_memory =
1058
- module -> memories [0 ].memory_flags & 0x02 ? true : false;
1053
+ module -> memories [0 ].memory_flags & SHARED_MEMORY_FLAG ? true : false;
1059
1054
if (is_shared_memory && parent != NULL ) {
1060
1055
/* Ignore setting memory init data if the memory has been initialized */
1061
1056
return true;
@@ -3679,7 +3674,7 @@ aot_alloc_frame(WASMExecEnv *exec_env, uint32 func_index)
3679
3674
exec_env , exec_env -> restore_call_chain , exec_env -> handle );
3680
3675
if (((AOTFrame * )exec_env -> cur_frame )-> func_index != func_index ) {
3681
3676
LOG_DEBUG ("NOT MATCH!!!\n" );
3682
- exit ( 1 );
3677
+ bh_assert ((( AOTFrame * ) exec_env -> cur_frame ) -> func_index == func_index );
3683
3678
}
3684
3679
return true;
3685
3680
}
@@ -3716,10 +3711,6 @@ aot_alloc_frame(WASMExecEnv *exec_env, uint32 func_index)
3716
3711
frame -> func_perf_prof_info = func_perf_prof ;
3717
3712
#endif
3718
3713
frame -> ip_offset = 0 ;
3719
- frame -> sp = frame -> lp + max_local_cell_num ;
3720
- #if WASM_ENABLE_GC != 0
3721
- frame -> frame_ref = frame -> sp + max_stack_cell_num ;
3722
- #endif
3723
3714
3724
3715
#if WASM_ENABLE_GC != 0
3725
3716
frame -> sp = frame -> lp + max_local_cell_num ;
0 commit comments