@@ -168,6 +168,7 @@ bool MethodCallGraphPreparer::Run()
168
168
{
169
169
STANDARD_VM_CONTRACT;
170
170
171
+ #ifdef FEATURE_CER
171
172
// Avoid recursion while jitting methods for another preparation.
172
173
if (!m_pThread->GetCerPreparationState ()->CanPreparationProceed (m_pRootMD, m_pRootTypeContext))
173
174
return TRUE ; // Assume the worst
@@ -371,6 +372,9 @@ bool MethodCallGraphPreparer::Run()
371
372
PrepareMethods ();
372
373
373
374
return RecordResults ();
375
+ #else
376
+ return FALSE ;
377
+ #endif
374
378
}
375
379
376
380
@@ -1262,6 +1266,7 @@ void PrepareCriticalFinalizerObject(MethodTable *pMT, Module *pModule)
1262
1266
}
1263
1267
_ASSERTE (pParent != NULL );
1264
1268
1269
+ #ifdef FEATURE_CER
1265
1270
BinderMethodID rgMethods[5 ];
1266
1271
int nMethods;
1267
1272
@@ -1311,6 +1316,7 @@ void PrepareCriticalFinalizerObject(MethodTable *pMT, Module *pModule)
1311
1316
}
1312
1317
}
1313
1318
}
1319
+ #endif
1314
1320
1315
1321
// Note the fact that we've prepared this type before to prevent repetition of the work above. (Though repetition is harmless in
1316
1322
// all other respects, so there's no need to worry about the race setting this flag).
@@ -1781,7 +1787,7 @@ void PrepopulateGenericHandleCache(DictionaryLayout *pDictionaryLayout,
1781
1787
// is a no-op).
1782
1788
void CerNgenRootTable::Restore (MethodDesc *pRootMD)
1783
1789
{
1784
- #ifndef CROSSGEN_COMPILE
1790
+ #if !defined( CROSSGEN_COMPILE) && defined(FEATURE_CER)
1785
1791
STANDARD_VM_CONTRACT;
1786
1792
1787
1793
// We don't have a restoration bitmap at ngen time. No matter, we just always claim everything is restored.
@@ -1904,7 +1910,7 @@ void CerNgenRootTable::Restore(MethodDesc *pRootMD)
1904
1910
}
1905
1911
pEntry++;
1906
1912
}
1907
- #endif // CROSSGEN_COMPILE
1913
+ #endif // ! CROSSGEN_COMPILE && FEATURE_CER
1908
1914
}
1909
1915
1910
1916
#ifdef FEATURE_NATIVE_IMAGE_GENERATION
0 commit comments