1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 10:18:21 +09:00

Delete FEATURE_READYTORUN_COMPILER ifdef (#104727)

#103361 resurrected this long-deleted ifdef (crossgen1-specific code).
This commit is contained in:
Michal Strehovský 2024-07-12 09:37:33 +02:00 committed by GitHub
parent 27e9b9db7a
commit c09ec6552f
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -1904,22 +1904,11 @@ CEEInfo::getHeapClassSize(
TypeHandle VMClsHnd(clsHnd);
MethodTable* pMT = VMClsHnd.GetMethodTable();
_ASSERTE(pMT);
_ASSERTE(!pMT->IsValueType());
_ASSERTE(!pMT->HasComponentSize());
#ifdef FEATURE_READYTORUN_COMPILER
_ASSERTE(!IsReadyToRunCompilation() || pMT->IsInheritanceChainLayoutFixedInCurrentVersionBubble());
#endif
// Add OBJECT_SIZE to account for method table pointer.
//
if (pMT->IsValueType())
{
result = VMClsHnd.GetSize() + OBJECT_SIZE;
}
else
{
result = pMT->GetNumInstanceFieldBytes() + OBJECT_SIZE;
}
result = pMT->GetNumInstanceFieldBytes() + OBJECT_SIZE;
EE_TO_JIT_TRANSITION_LEAF();
return result;