@@ -111,7 +111,7 @@ struct InterfaceInfo_t
111
111
#endif
112
112
113
113
// Method table of the interface
114
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_ )
114
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS )
115
115
RelativeFixupPointer<PTR_MethodTable> m_pMethodTable;
116
116
#else
117
117
FixupPointer<PTR_MethodTable> m_pMethodTable;
@@ -1667,7 +1667,7 @@ class MethodTable
1667
1667
#define VTABLE_SLOTS_PER_CHUNK 8
1668
1668
#define VTABLE_SLOTS_PER_CHUNK_LOG2 3
1669
1669
1670
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_) && defined( FEATURE_NGEN_RELOCS_OPTIMIZATIONS)
1670
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS)
1671
1671
typedef RelativePointer<PCODE> VTableIndir2_t;
1672
1672
typedef RelativePointer<DPTR(VTableIndir2_t)> VTableIndir_t;
1673
1673
#else
@@ -2182,7 +2182,7 @@ class MethodTable
2182
2182
// THE METHOD TABLE PARENT (SUPERCLASS/BASE CLASS)
2183
2183
//
2184
2184
2185
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_ )
2185
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS )
2186
2186
#define PARENT_MT_FIXUP_OFFSET (-FIXUP_POINTER_INDIRECTION)
2187
2187
typedef RelativeFixupPointer<PTR_MethodTable> ParentMT_t;
2188
2188
#else
@@ -2214,7 +2214,7 @@ class MethodTable
2214
2214
inline static PTR_VOID GetParentMethodTableOrIndirection (PTR_VOID pMT)
2215
2215
{
2216
2216
WRAPPER_NO_CONTRACT;
2217
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_ )
2217
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS )
2218
2218
PTR_MethodTable pMethodTable = dac_cast<PTR_MethodTable>(pMT);
2219
2219
PTR_MethodTable pParentMT = ReadPointerMaybeNull ((MethodTable*) pMethodTable, &MethodTable::m_pParentMethodTable);
2220
2220
return dac_cast<PTR_VOID>(pParentMT);
@@ -3120,7 +3120,7 @@ class MethodTable
3120
3120
// must have a dictionary entry. On the other hand, for instantiations shared with Dict<string,double> the opposite holds.
3121
3121
//
3122
3122
3123
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_ )
3123
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS )
3124
3124
typedef RelativePointer<PTR_Dictionary> PerInstInfoElem_t;
3125
3125
typedef RelativePointer<DPTR(PerInstInfoElem_t)> PerInstInfo_t;
3126
3126
#else
@@ -4191,7 +4191,7 @@ public :
4191
4191
4192
4192
RelativePointer<PTR_Module> m_pLoaderModule; // LoaderModule. It is equal to the ZapModule in ngened images
4193
4193
4194
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_ )
4194
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS )
4195
4195
RelativePointer<PTR_MethodTableWriteableData> m_pWriteableData;
4196
4196
#else
4197
4197
PlainPointer<PTR_MethodTableWriteableData> m_pWriteableData;
@@ -4207,7 +4207,7 @@ public :
4207
4207
static const TADDR UNION_MASK = 3 ;
4208
4208
4209
4209
union {
4210
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_ )
4210
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS )
4211
4211
RelativePointer<DPTR (EEClass)> m_pEEClass;
4212
4212
RelativePointer<TADDR> m_pCanonMT;
4213
4213
#else
@@ -4242,7 +4242,7 @@ public :
4242
4242
public:
4243
4243
union
4244
4244
{
4245
- #if defined(PLATFORM_UNIX) && defined(_TARGET_ARM_ )
4245
+ #if defined(FEATURE_NGEN_RELOCS_OPTIMIZATIONS )
4246
4246
RelativePointer<PTR_InterfaceInfo> m_pInterfaceMap;
4247
4247
#else
4248
4248
PlainPointer<PTR_InterfaceInfo> m_pInterfaceMap;
0 commit comments