summaryrefslogtreecommitdiff
path: root/src/vm/method.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-11-09 17:49:12 -0800
committerGitHub <noreply@github.com>2018-11-09 17:49:12 -0800
commitff5723233e6b4df6fe441b2ba453506f860aebe9 (patch)
tree3c2eea0456a47012ef7488fdd3a82e349d098b94 /src/vm/method.cpp
parent3464b60b85c8e10d69d8da86d2eb3f9e7aaa7c4b (diff)
downloadcoreclr-ff5723233e6b4df6fe441b2ba453506f860aebe9.tar.gz
coreclr-ff5723233e6b4df6fe441b2ba453506f860aebe9.tar.bz2
coreclr-ff5723233e6b4df6fe441b2ba453506f860aebe9.zip
Delete dead/unreachable code related to remoting (#20880)
Diffstat (limited to 'src/vm/method.cpp')
-rw-r--r--src/vm/method.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/vm/method.cpp b/src/vm/method.cpp
index 963dce491a..939cf7790c 100644
--- a/src/vm/method.cpp
+++ b/src/vm/method.cpp
@@ -1943,23 +1943,12 @@ MethodDesc* MethodDesc::ResolveGenericVirtualMethod(OBJECTREF *orThis)
CONTRACT_END;
// Method table of target (might be instantiated)
- // Deliberately use GetMethodTable -- not GetTrueMethodTable
MethodTable *pObjMT = (*orThis)->GetMethodTable();
// This is the static method descriptor describing the call.
// It is not the destination of the call, which we must compute.
MethodDesc* pStaticMD = this;
- if (pObjMT->IsTransparentProxy())
- {
- // For transparent proxies get the client's view of the server type
- // unless we're calling through an interface (in which case we let the
- // server handle the resolution).
- if (pStaticMD->IsInterface())
- RETURN(pStaticMD);
- pObjMT = (*orThis)->GetTrueMethodTable();
- }
-
// Strip off the method instantiation if present
MethodDesc* pStaticMDWithoutGenericMethodArgs = pStaticMD->StripMethodInstantiation();
@@ -2005,7 +1994,6 @@ PCODE MethodDesc::GetSingleCallableAddrOfVirtualizedCode(OBJECTREF *orThis, Type
WRAPPER_NO_CONTRACT;
PRECONDITION(IsVtableMethod());
- // Deliberately use GetMethodTable -- not GetTrueMethodTable
MethodTable *pObjMT = (*orThis)->GetMethodTable();
if (HasMethodInstantiation())
@@ -2051,7 +2039,6 @@ PCODE MethodDesc::GetMultiCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeH
CONTRACT_END;
// Method table of target (might be instantiated)
- // Deliberately use GetMethodTable -- not GetTrueMethodTable
MethodTable *pObjMT = (*orThis)->GetMethodTable();
// This is the static method descriptor describing the call.
@@ -2478,55 +2465,8 @@ BOOL MethodDesc::RequiresStableEntryPoint(BOOL fEstimateForChunk /*=FALSE*/)
return FALSE;
}
-//*******************************************************************************
-BOOL MethodDesc::IsClassConstructorTriggeredViaPrestub()
-{
- CONTRACTL
- {
- NOTHROW;
- GC_NOTRIGGER;
- MODE_ANY;
- }
- CONTRACTL_END;
-
- // FCalls do not need cctor triggers
- if (IsFCall())
- return FALSE;
-
- // NGened code has explicit cctor triggers
- if (IsZapped())
- return FALSE;
-
- // Domain neutral code has explicit cctor triggers
- if (IsDomainNeutral())
- return FALSE;
-
- MethodTable * pMT = GetMethodTable();
-
- // Shared generic code has explicit cctor triggers
- if (pMT->IsSharedByGenericInstantiations())
- return FALSE;
-
- bool fRunBeforeFieldInitCctorsLazily = true;
-
- // Always run beforefieldinit cctors lazily for optimized code. Running cctors lazily should be good for perf.
- // Variability between optimized and non-optimized code should reduce chance of people taking dependencies
- // on exact beforefieldinit cctors timing.
- if (fRunBeforeFieldInitCctorsLazily && pMT->GetClass()->IsBeforeFieldInit() && !CORDisableJITOptimizations(pMT->GetModule()->GetDebuggerInfoBits()))
- return FALSE;
-
- // To preserve consistent behavior between ngen and not-ngenned states, always
- // run class constructors lazily for autongennable code.
- if (pMT->RunCCTorAsIfNGenImageExists())
- return FALSE;
-
- return TRUE;
-}
-
#endif // !DACCESS_COMPILE
-
-
//*******************************************************************************
BOOL MethodDesc::MayHaveNativeCode()
{
@@ -5525,13 +5465,6 @@ PrecodeType MethodDesc::GetPrecodeType()
PrecodeType precodeType = PRECODE_INVALID;
-#ifdef HAS_REMOTING_PRECODE
- if (IsComPlusCall() && !IsStatic())
- {
- precodeType = PRECODE_REMOTING;
- }
- else
-#endif // HAS_REMOTING_PRECODE
#ifdef HAS_FIXUP_PRECODE
if (!RequiresMethodDescCallingConvention())
{