@@ -5895,14 +5895,9 @@ BOOL IsIPinVirtualStub(PCODE f_IP)
58955895#endif // FEATURE_VIRTUAL_STUB_DISPATCH
58965896}
58975897
5898- #if defined(TARGET_ARM64) || defined(TARGET_ARM)
5899- EXTERN_C void RhpWriteBarriers ();
5900- EXTERN_C void RhpWriteBarriers_End ();
5901- #endif
5902-
59035898typedef uint8_t CODE_LOCATION;
59045899EXTERN_C CODE_LOCATION RhpAssignRefAVLocation;
5905- #if defined(TARGET_X86 )
5900+ #if defined(HOST_X86 )
59065901EXTERN_C CODE_LOCATION RhpAssignRefEAXAVLocation;
59075902EXTERN_C CODE_LOCATION RhpAssignRefECXAVLocation;
59085903EXTERN_C CODE_LOCATION RhpAssignRefEBXAVLocation;
@@ -5911,7 +5906,7 @@ EXTERN_C CODE_LOCATION RhpAssignRefEDIAVLocation;
59115906EXTERN_C CODE_LOCATION RhpAssignRefEBPAVLocation;
59125907#endif
59135908EXTERN_C CODE_LOCATION RhpCheckedAssignRefAVLocation;
5914- #if defined(TARGET_X86 )
5909+ #if defined(HOST_X86 )
59155910EXTERN_C CODE_LOCATION RhpCheckedAssignRefEAXAVLocation;
59165911EXTERN_C CODE_LOCATION RhpCheckedAssignRefECXAVLocation;
59175912EXTERN_C CODE_LOCATION RhpCheckedAssignRefEBXAVLocation;
@@ -5921,14 +5916,14 @@ EXTERN_C CODE_LOCATION RhpCheckedAssignRefEBPAVLocation;
59215916#endif
59225917EXTERN_C CODE_LOCATION RhpByRefAssignRefAVLocation1;
59235918
5924- #if !defined(TARGET_ARM64 ) && !defined(TARGET_LOONGARCH64 ) && !defined(TARGET_RISCV64 )
5919+ #if !defined(HOST_ARM64 ) && !defined(HOST_LOONGARCH64 ) && !defined(HOST_RISCV64 )
59255920EXTERN_C CODE_LOCATION RhpByRefAssignRefAVLocation2;
59265921#endif
59275922
59285923static uintptr_t writeBarrierAVLocations[] =
59295924{
59305925 (uintptr_t )&RhpAssignRefAVLocation,
5931- #if defined(TARGET_X86 )
5926+ #if defined(HOST_X86 )
59325927 (uintptr_t )&RhpAssignRefEAXAVLocation,
59335928 (uintptr_t )&RhpAssignRefECXAVLocation,
59345929 (uintptr_t )&RhpAssignRefEBXAVLocation,
@@ -5946,7 +5941,7 @@ static uintptr_t writeBarrierAVLocations[] =
59465941 (uintptr_t )&RhpCheckedAssignRefEBPAVLocation,
59475942#endif
59485943 (uintptr_t )&RhpByRefAssignRefAVLocation1,
5949- #if !defined(TARGET_ARM64 ) && !defined(TARGET_LOONGARCH64 ) && !defined(TARGET_RISCV64 )
5944+ #if !defined(HOST_ARM64 ) && !defined(HOST_LOONGARCH64 ) && !defined(HOST_RISCV64 )
59505945 (uintptr_t )&RhpByRefAssignRefAVLocation2,
59515946#endif
59525947};
@@ -5966,17 +5961,17 @@ bool IsIPInMarkedJitHelper(UINT_PTR uControlPc)
59665961 ASSERT (*(uint8_t *)writeBarrierAVLocations[i] != 0xE9 ); // jmp XXXXXXXX
59675962#endif
59685963
5964+ #ifdef TARGET_ARM
5965+ if ((writeBarrierAVLocations[i] | THUMB_CODE) == (uControlPc | THUMB_CODE))
5966+ #else
59695967 if (writeBarrierAVLocations[i] == uControlPc)
5968+ #endif
59705969 return true ;
59715970 }
59725971
59735972#define CHECK_RANGE (name ) \
59745973 if (GetEEFuncEntryPoint (name) <= uControlPc && uControlPc < GetEEFuncEntryPoint (name##_End)) return true ;
59755974
5976- #if defined(TARGET_ARM64) || defined(TARGET_ARM)
5977- CHECK_RANGE (RhpWriteBarriers)
5978- #endif
5979-
59805975#ifndef TARGET_X86
59815976 CHECK_RANGE (JIT_WriteBarrier)
59825977 CHECK_RANGE (JIT_CheckedWriteBarrier)
0 commit comments