*/
virtual OBJECTREF* GetAddrOfSecurityObject(CrawlFrame *pCF) = 0;
+#ifndef CROSSGEN_COMPILE
/*
For a non-static method, "this" pointer is passed in as argument 0.
However, if there is a "ldarga 0" or "starg 0" in the IL,
*/
virtual OBJECTREF GetInstance(PREGDISPLAY pContext,
EECodeInfo* pCodeInfo) = 0;
+#endif // !CROSSGEN_COMPILE
#ifndef CROSSGEN_COMPILE
/*
virtual
OBJECTREF* GetAddrOfSecurityObject(CrawlFrame *pCF) DAC_UNEXPECTED();
+#ifndef CROSSGEN_COMPILE
virtual
OBJECTREF GetInstance(
PREGDISPLAY pContext,
EECodeInfo * pCodeInfo);
+#endif // !CROSSGEN_COMPILE
#ifndef CROSSGEN_COMPILE
/*
}
#endif
+#ifndef CROSSGEN_COMPILE
/*****************************************************************************
*
* Returns "this" pointer if it is a non-static method
SUPPORTS_DAC;
} CONTRACTL_END;
-#ifdef _TARGET_X86_
+#ifndef USE_GC_INFO_DECODER
GCInfoToken gcInfoToken = pCodeInfo->GetGCInfoToken();
unsigned relOffset = pCodeInfo->GetRelOffset();
#endif
return NULL;
-#elif defined(USE_GC_INFO_DECODER) && !defined(CROSSGEN_COMPILE)
+#else // !USE_GC_INFO_DECODER
PTR_VOID token = EECodeManager::GetExactGenericsToken(pContext, pCodeInfo);
OBJECTREF oRef = ObjectToOBJECTREF(PTR_Object(dac_cast<TADDR>(token)));
VALIDATEOBJECTREF(oRef);
return oRef;
-#else // !_TARGET_X86_ && !(USE_GC_INFO_DECODER && !CROSSGEN_COMPILE)
- PORTABILITY_ASSERT("Port: EECodeManager::GetInstance is not implemented on this platform.");
- return NULL;
-#endif // _TARGET_X86_
+#endif // USE_GC_INFO_DECODER
}
-
+#endif // !CROSSGEN_COMPILE
GenericParamContextType EECodeManager::GetParamContextType(PREGDISPLAY pContext,
EECodeInfo * pCodeInfo)