summaryrefslogtreecommitdiff
path: root/src/vm/method.cpp
diff options
context:
space:
mode:
authorAustin Wise <AustinWise@gmail.com>2018-10-07 18:58:10 -0700
committerJan Kotas <jkotas@microsoft.com>2018-10-07 18:58:10 -0700
commiteeef1c1379b9f49261f66093b355ac8c12e47485 (patch)
tree353e440ccdf0c4c3f3571fc4c096d4f1c95ebe4e /src/vm/method.cpp
parent645faa5b24c32741944cad55f58fd66d6c8abfa4 (diff)
downloadcoreclr-eeef1c1379b9f49261f66093b355ac8c12e47485.tar.gz
coreclr-eeef1c1379b9f49261f66093b355ac8c12e47485.tar.bz2
coreclr-eeef1c1379b9f49261f66093b355ac8c12e47485.zip
Remove some dead remoting and context static things (#20277)
* Remove IsRemotingIntercepted methods that always return false. * Remove GetOptionalMembersAllocationSize parameters that are always false. * Remove references to context static. Remove references in comments and methodnames. * Remove RemotingVtsInfo.
Diffstat (limited to 'src/vm/method.cpp')
-rw-r--r--src/vm/method.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/vm/method.cpp b/src/vm/method.cpp
index 2890c34fb7..a2440ff92a 100644
--- a/src/vm/method.cpp
+++ b/src/vm/method.cpp
@@ -2157,8 +2157,7 @@ PCODE MethodDesc::TryGetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags
if (IsFCall())
{
// Call FCalls directly when possible
- if (((accessFlags & CORINFO_ACCESS_THIS) || !IsRemotingInterceptedViaPrestub())
- && !IsInterface() && !GetMethodTable()->ContainsGenericVariables())
+ if (!IsInterface() && !GetMethodTable()->ContainsGenericVariables())
{
BOOL fSharedOrDynamicFCallImpl;
PCODE pFCallImpl = ECall::GetFCallImpl(this, &fSharedOrDynamicFCallImpl);
@@ -2804,13 +2803,6 @@ bool MethodDesc::CanSkipDoPrestub (
// @todo generics: Until we fix the RVA map in zapper.cpp to be instantiation-aware, this must remain
CheckRestore();
- // The remoting interception is not necessary if we are calling on the same thisptr
- if (!(accessFlags & CORINFO_ACCESS_THIS) && IsRemotingInterceptedViaPrestub())
- {
- *pReason = CORINFO_INDIRECT_CALL_REMOTING;
- return false;
- }
-
// The wrapper stubs cannot be called directly (like any other stubs)
if (IsWrapperStub())
{
@@ -5488,7 +5480,7 @@ PrecodeType MethodDesc::GetPrecodeType()
PrecodeType precodeType = PRECODE_INVALID;
#ifdef HAS_REMOTING_PRECODE
- if (IsRemotingInterceptedViaPrestub() || (IsComPlusCall() && !IsStatic()))
+ if (IsComPlusCall() && !IsStatic())
{
precodeType = PRECODE_REMOTING;
}