summaryrefslogtreecommitdiff
path: root/src/vm/eetwain.cpp
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-02-07 22:47:14 +0900
committerJan Kotas <jkotas@microsoft.com>2017-02-07 05:47:14 -0800
commit2945233dec39a07652455ffb075b0a4a5f303fa6 (patch)
treed7da55cf11fab32a72baf7d97906549ca9230dbc /src/vm/eetwain.cpp
parentcf42bd28027e62ffff3d7f8b68a50fde1f0cdccf (diff)
downloadcoreclr-2945233dec39a07652455ffb075b0a4a5f303fa6.tar.gz
coreclr-2945233dec39a07652455ffb075b0a4a5f303fa6.tar.bz2
coreclr-2945233dec39a07652455ffb075b0a4a5f303fa6.zip
Clean up methods for USE_GC_INFO_DECODER (#9394)
Diffstat (limited to 'src/vm/eetwain.cpp')
-rw-r--r--src/vm/eetwain.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/vm/eetwain.cpp b/src/vm/eetwain.cpp
index ea3a576244..9b101c6806 100644
--- a/src/vm/eetwain.cpp
+++ b/src/vm/eetwain.cpp
@@ -5562,7 +5562,6 @@ bool EECodeManager::IsInPrologOrEpilog(DWORD relPCoffset,
return ((info.prologOffs != hdrInfo::NOT_IN_PROLOG) ||
(info.epilogOffs != hdrInfo::NOT_IN_EPILOG));
}
-#endif // USE_GC_INFO_DECODER
/*****************************************************************************
*
@@ -5577,7 +5576,6 @@ bool EECodeManager::IsInSynchronizedRegion(DWORD relOffset,
GC_NOTRIGGER;
} CONTRACTL_END;
-#ifndef USE_GC_INFO_DECODER
hdrInfo info;
DecodeGCHdrInfo(gcInfoToken, relOffset, &info);
@@ -5594,11 +5592,8 @@ bool EECodeManager::IsInSynchronizedRegion(DWORD relOffset,
// Synchronized methods have at most one epilog. The epilog does not have to be at the end of the method though.
// Everything after the epilog is also in synchronized region.
(info.epilogCnt != 0 && info.syncEpilogStart + info.epilogSize <= relOffset);
-#else // USE_GC_INFO_DECODER
- _ASSERTE(!"@NYI - EECodeManager::IsInSynchronizedRegion (EETwain.cpp)");
- return false;
-#endif // USE_GC_INFO_DECODER
}
+#endif // !USE_GC_INFO_DECODER
/*****************************************************************************
*
@@ -5669,6 +5664,7 @@ ReturnKind EECodeManager::GetReturnKind(GCInfoToken gcInfoToken)
#endif
}
+#ifndef USE_GC_INFO_DECODER
/*****************************************************************************
*
* Returns the size of the frame of the given function.
@@ -5680,7 +5676,6 @@ unsigned int EECodeManager::GetFrameSize(GCInfoToken gcInfoToken)
GC_NOTRIGGER;
} CONTRACTL_END;
-#ifndef USE_GC_INFO_DECODER
hdrInfo info;
DecodeGCHdrInfo(gcInfoToken, 0, &info);
@@ -5689,11 +5684,8 @@ unsigned int EECodeManager::GetFrameSize(GCInfoToken gcInfoToken)
// in all likelyhood
_ASSERTE(!info.doubleAlign);
return info.stackSize;
-#else // USE_GC_INFO_DECODER
- PORTABILITY_ASSERT("EECodeManager::GetFrameSize is not implemented on this platform.");
- return false;
-#endif // USE_GC_INFO_DECODER
}
+#endif // USE_GC_INFO_DECODER
#ifndef DACCESS_COMPILE