summaryrefslogtreecommitdiff
path: root/src/vm/virtualcallstub.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-11-10 01:49:12 (GMT)
committerGitHub <noreply@github.com>2018-11-10 01:49:12 (GMT)
commitff5723233e6b4df6fe441b2ba453506f860aebe9 (patch)
tree3c2eea0456a47012ef7488fdd3a82e349d098b94 /src/vm/virtualcallstub.cpp
parent3464b60b85c8e10d69d8da86d2eb3f9e7aaa7c4b (diff)
downloadcoreclr-ff5723233e6b4df6fe441b2ba453506f860aebe9.zip
coreclr-ff5723233e6b4df6fe441b2ba453506f860aebe9.tar.gz
coreclr-ff5723233e6b4df6fe441b2ba453506f860aebe9.tar.bz2
Delete dead/unreachable code related to remoting (#20880)
Diffstat (limited to 'src/vm/virtualcallstub.cpp')
-rw-r--r--src/vm/virtualcallstub.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/vm/virtualcallstub.cpp b/src/vm/virtualcallstub.cpp
index 5dc59b1..657200b 100644
--- a/src/vm/virtualcallstub.cpp
+++ b/src/vm/virtualcallstub.cpp
@@ -1574,7 +1574,7 @@ PCODE VSD_ResolveWorker(TransitionBlock * pTransitionBlock,
pSDFrame->SetCallSite(NULL, (TADDR)callSite.GetIndirectCell());
DispatchToken representativeToken(token);
- MethodTable * pRepresentativeMT = pObj->GetTrueMethodTable();
+ MethodTable * pRepresentativeMT = pObj->GetMethodTable();
if (representativeToken.IsTypedToken())
{
pRepresentativeMT = CURRENT_THREAD->GetDomain()->LookupType(representativeToken.GetTypeID());
@@ -1802,8 +1802,7 @@ PCODE VirtualCallStubManager::ResolveWorker(StubCallSite* pCallSite,
patch = Resolver(objectType, token, protectedObj, &target);
#if defined(_DEBUG)
- if ( !objectType->IsTransparentProxy() &&
- !objectType->IsComObjectType() &&
+ if ( !objectType->IsComObjectType() &&
!objectType->IsICastable())
{
CONSISTENCY_CHECK(!MethodTable::GetMethodDescForSlotAddress(target)->IsGenericMethodDefinition());
@@ -2430,11 +2429,6 @@ VirtualCallStubManager::GetTarget(
PRECONDITION(CheckPointer(pMT));
} CONTRACTL_END
- // ToDo: add this after checking that reflection
- // doesn't send us a TransparentProxy
- //
- // CONSISTENCY_CHECK(!pMT->IsTransparentProxy());
-
g_external_call++;
if (token.IsThisToken())
@@ -4035,8 +4029,6 @@ MethodDesc *VirtualCallStubManagerManager::Entry2MethodDesc(
// Do the full resolve
size_t token = VirtualCallStubManager::GetTokenFromStubQuick(pMgr, stubStartAddress, sk);
- CONSISTENCY_CHECK(!pMT->IsTransparentProxy());
-
PCODE target = NULL;
// TODO: passing NULL as protectedObj here can lead to incorrect behavior for ICastable objects
// We need to review if this is the case and refactor this code if we want ICastable to become officially supported