@@ -61,28 +61,17 @@ _Static_assert(LOWERCASE_EXIT_ATOM_INDEX == 16, "LOWERCASE_EXIT_ATOM_INDEX is 16
6161_Static_assert (BADRECORD_ATOM_INDEX == 17 , "BADRECORD_ATOM_INDEX is 17 in libs/jit/src/default_atoms.hrl " );
6262
6363// Verify offsets in jit_x86_64.erl
64- #if JIT_ARCH_TARGET == JIT_ARCH_X86_64
65- _Static_assert (offsetof(Context , e ) == 0x28 , "ctx->e is 0x28 in jit/src/jit_x86_64.erl" );
66- _Static_assert (offsetof(Context , x ) == 0x30 , "ctx->x is 0x30 in jit/src/jit_x86_64.erl" );
67- _Static_assert (offsetof(Context , cp ) == 0xB8 , "ctx->cp is 0xB8 in jit/src/jit_x86_64.erl" );
68- _Static_assert (offsetof(Context , fr ) == 0xC0 , "ctx->fr is 0xC0 in jit/src/jit_x86_64.erl" );
69- _Static_assert (offsetof(Context , bs ) == 0xC8 , "ctx->bs is 0xC8 in jit/src/jit_x86_64.erl" );
70- _Static_assert (offsetof(Context , bs_offset ) == 0xD0 , "ctx->bs_offset is 0xD0 in jit/src/jit_x86_64.erl" );
71-
72- _Static_assert (offsetof(JITState , module ) == 0x0 , "jit_state->module is 0x0 in jit/src/jit_x86_64.erl" );
73- _Static_assert (offsetof(JITState , continuation ) == 0x8 , "jit_state->continuation is 0x8 in jit/src/jit_x86_64.erl" );
74- _Static_assert (offsetof(JITState , remaining_reductions ) == 0x10 , "jit_state->remaining_reductions is 0x10 in jit/src/jit_x86_64.erl" );
75- #elif JIT_ARCH_TARGET == JIT_ARCH_AARCH64
76- _Static_assert (offsetof(Context , e ) == 0x28 , "ctx->e is 0x28 in jit/src/jit_aarch64.erl" );
77- _Static_assert (offsetof(Context , x ) == 0x30 , "ctx->x is 0x30 in jit/src/jit_aarch64.erl" );
78- _Static_assert (offsetof(Context , cp ) == 0xB8 , "ctx->cp is 0xB8 in jit/src/jit_aarch64.erl" );
79- _Static_assert (offsetof(Context , fr ) == 0xC0 , "ctx->fr is 0xC0 in jit/src/jit_aarch64.erl" );
80- _Static_assert (offsetof(Context , bs ) == 0xC8 , "ctx->bs is 0xC8 in jit/src/jit_aarch64.erl" );
81- _Static_assert (offsetof(Context , bs_offset ) == 0xD0 , "ctx->bs_offset is 0xD0 in jit/src/jit_aarch64.erl" );
82-
83- _Static_assert (offsetof(JITState , module ) == 0x0 , "jit_state->module is 0x0 in jit/src/jit_aarch64.erl" );
84- _Static_assert (offsetof(JITState , continuation ) == 0x8 , "jit_state->continuation is 0x8 in jit/src/jit_aarch64.erl" );
85- _Static_assert (offsetof(JITState , remaining_reductions ) == 0x10 , "jit_state->remaining_reductions is 0x10 in jit/src/jit_aarch64.erl" );
64+ #if JIT_ARCH_TARGET == JIT_ARCH_X86_64 || JIT_ARCH_TARGET == JIT_ARCH_AARCH64
65+ _Static_assert (offsetof(Context , e ) == 0x28 , "ctx->e is 0x28 in jit/src/jit_{aarch64,x86_64}.erl" );
66+ _Static_assert (offsetof(Context , x ) == 0x30 , "ctx->x is 0x30 in jit/src/jit_{aarch64,x86_64}.erl" );
67+ _Static_assert (offsetof(Context , cp ) == 0xB8 , "ctx->cp is 0xB8 in jit/src/jit_{aarch64,x86_64}.erl" );
68+ _Static_assert (offsetof(Context , fr ) == 0xC0 , "ctx->fr is 0xC0 in jit/src/jit_{aarch64,x86_64}.erl" );
69+ _Static_assert (offsetof(Context , bs ) == 0xC8 , "ctx->bs is 0xC8 in jit/src/jit_{aarch64,x86_64}.erl" );
70+ _Static_assert (offsetof(Context , bs_offset ) == 0xD0 , "ctx->bs_offset is 0xD0 in jit/src/jit_{aarch64,x86_64}.erl" );
71+
72+ _Static_assert (offsetof(JITState , module ) == 0x0 , "jit_state->module is 0x0 in jit/src/jit_{aarch64,x86_64}.erl" );
73+ _Static_assert (offsetof(JITState , continuation ) == 0x8 , "jit_state->continuation is 0x8 in jit/src/jit_{aarch64,x86_64}.erl" );
74+ _Static_assert (offsetof(JITState , remaining_reductions ) == 0x10 , "jit_state->remaining_reductions is 0x10 in jit/src/jit_{aarch64,x86_64}.erl" );
8675#elif JIT_ARCH_TARGET == JIT_ARCH_ARMV6M
8776_Static_assert (offsetof(Context , e ) == 0x14 , "ctx->e is 0x14 in jit/src/jit_armv6m.erl" );
8877_Static_assert (offsetof(Context , x ) == 0x18 , "ctx->x is 0x18 in jit/src/jit_armv6m.erl" );
0 commit comments