diff options
Diffstat (limited to 'src/vm/method.cpp')
-rw-r--r-- | src/vm/method.cpp | 67 |
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()) { |