3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1568return new MethodDescHandle(methodDescPointer); 1590return new MethodDescHandle(methodDescPointer); 1966TargetPointer mtAddr = GetMethodTable(new MethodDescHandle(md.Address));
165 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (31)
Contracts\ICallingConvention.cs (1)
12bool TryComputeArgGCRefMapBlob(MethodDescHandle methodDesc, out byte[] blob)
Contracts\IRuntimeTypeSystem.cs (30)
267MethodDescHandle GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException(); 268TargetPointer GetMethodTable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 271bool IsGenericMethodDefinition(MethodDescHandle methodDesc) => throw new NotImplementedException(); 272ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 274GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 278bool IsAsyncMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 281uint GetMethodToken(MethodDescHandle methodDesc) => throw new NotImplementedException(); 285bool IsArrayMethod(MethodDescHandle methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException(); 291bool IsNoMetadataMethod(MethodDescHandle methodDesc, out string methodName) => throw new NotImplementedException(); 295bool TryGetMethodSignature(MethodDescHandle methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException(); 299bool IsDynamicMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 302bool IsIL(MethodDescHandle methodDesc) => throw new NotImplementedException(); 306bool IsILStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 309bool HasMDContextArg(MethodDescHandle methodDesc) => throw new NotImplementedException(); 311bool IsCollectibleMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 312bool IsVersionable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 314TargetPointer GetMethodDescVersioningState(MethodDescHandle methodDesc) => throw new NotImplementedException(); 316TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 317TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException(); 319ushort GetSlotNumber(MethodDescHandle methodDesc) => throw new NotImplementedException(); 321bool HasNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 323TargetPointer GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 325TargetPointer GetGCStressCodeCopy(MethodDescHandle methodDesc) => throw new NotImplementedException(); 327OptimizationTier GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 328bool IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 329AsyncMethodFlags GetAsyncMethodFlags(MethodDescHandle methodDesc) => throw new NotImplementedException(); 330TargetPointer GetAsyncVariant(MethodDescHandle methodDesc) => throw new NotImplementedException(); 332bool IsWrapperStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 333bool IsUnboxingStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 335bool IsVarArg(MethodDescHandle methodDesc) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (65)
Contracts\CallingConvention\CallingConvention_1.cs (7)
28public bool TryComputeArgGCRefMapBlob(MethodDescHandle methodDesc, out byte[] blob) 82private ArgumentLayout GetArgumentLayout(MethodDescHandle methodDesc) 292IRuntimeTypeSystem rts, MethodDescHandle methodDesc) 331private ParamTypeInfo[] DecodeParamTypeInfo(IRuntimeTypeSystem rts, MethodDescHandle methodDesc, int paramCount) 543internal readonly record struct MethodSigContext(MethodDescHandle Method, ITypeHandle OwningType); 593private byte[]? ComputeArgGCRefMapBlobCore(MethodDescHandle methodDesc) 833private static GenericContextLoc SafeGetGenericContextLoc(IRuntimeTypeSystem rts, MethodDescHandle md)
Contracts\CodeVersions_1.cs (11)
109MethodDescHandle md = rts.GetMethodDescHandle(methodDesc); 137MethodDescHandle md = rts.GetMethodDescHandle(methodDescAddress); 154MethodDescHandle md = rts.GetMethodDescHandle(methodDescAddress); 171MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(codeVersionHandle.MethodDescAddress); 201MethodDescHandle md = rts.GetMethodDescHandle(methodDesc); 218MethodDescHandle md = rts.GetMethodDescHandle(codeVersionHandle.MethodDescAddress); 239private NativeCodeVersionHandle GetSpecificNativeCodeVersion(IRuntimeTypeSystem rts, MethodDescHandle md, TargetCodePointer startAddress) 256private IEnumerable<NativeCodeVersionHandle> FindNativeCodeVersionNodes(IRuntimeTypeSystem rts, MethodDescHandle md, Func<Data.NativeCodeVersionNode, bool> predicate) 315MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(nativeCodeVersion.MethodDescAddress); 337MethodDescHandle md = rts.GetMethodDescHandle(methodDesc); 461MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
597MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (39)
1560public MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer) 1563private MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer, bool validate) 1593public TargetPointer GetMethodTable(MethodDescHandle methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable; 1615public bool IsGenericMethodDefinition(MethodDescHandle methodDescHandle) 1624public ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1649public GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) 1702public bool IsAsyncMethod(MethodDescHandle methodDescHandle) 1715public uint GetMethodToken(MethodDescHandle methodDescHandle) 1721public bool IsArrayMethod(MethodDescHandle methodDescHandle, out ArrayFunctionType functionType) 1755public bool IsNoMetadataMethod(MethodDescHandle methodDescHandle, out string methodName) 1769private bool IsStoredSigMethodDesc(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1789public bool TryGetMethodSignature(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1832public bool IsDynamicMethod(MethodDescHandle methodDescHandle) 1844public bool IsIL(MethodDescHandle methodDescHandle) 1850public bool IsILStub(MethodDescHandle methodDescHandle) 1861public bool HasMDContextArg(MethodDescHandle methodDescHandle) 1972bool IRuntimeTypeSystem.IsCollectibleMethod(MethodDescHandle methodDesc) 1980bool IRuntimeTypeSystem.IsVersionable(MethodDescHandle methodDesc) 1997TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(MethodDescHandle methodDesc) 2008uint IRuntimeTypeSystem.GetMethodToken(MethodDescHandle methodDescHandle) 2014ushort IRuntimeTypeSystem.GetSlotNumber(MethodDescHandle methodDesc) 2019bool IRuntimeTypeSystem.HasNativeCodeSlot(MethodDescHandle methodDesc) 2026private IEnumerable<MethodDescHandle> GetIntroducedMethods(ITypeHandle typeHandle) 2042MethodDescHandle methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false); 2052TargetPointer IRuntimeTypeSystem.GetAsyncVariant(MethodDescHandle methodDescHandle) 2058foreach (MethodDescHandle candidateHandle in GetIntroducedMethods(canonicalMethodTable)) 2078foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 2099foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 2133foreach (MethodDescHandle mdh in GetIntroducedMethods(lookupMT)) 2181TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) 2187TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 2207TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 2236TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(MethodDescHandle methodDesc) 2260OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) 2271bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) 2277public AsyncMethodFlags GetAsyncMethodFlags(MethodDescHandle methodDescHandle) 2298public bool IsWrapperStub(MethodDescHandle methodDescHandle) 2304public bool IsUnboxingStub(MethodDescHandle methodDescHandle) 2310public bool IsVarArg(MethodDescHandle methodDescHandle)
Contracts\Signature\SignatureTypeProvider.cs (3)
42if (typeof(T) == typeof(MethodDescHandle)) 44MethodDescHandle methodContext = (MethodDescHandle)(object)context!;
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (1)
51MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(framedMethodFrame.MethodDescPtr);
Contracts\StackWalk\GC\GcScanner.cs (1)
348MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(fmf.MethodDescPtr);
Contracts\StackWalk\StackWalk_1.cs (2)
1131MethodDescHandle md = rts.GetMethodDescHandle(mdPtr); 1255MethodDescHandle returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (69)
ClrDataFrame.cs (16)
141MethodDescHandle mdh = GetFrameMethodDesc(out _); 195MethodDescHandle mdh = GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle); 270MethodDescHandle mdh = GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle); 317MethodDescHandle mdh = GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle); 378MethodDescHandle mdh = GetFrameMethodDesc(out _); 422private MethodDescHandle GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle) 429MethodDescHandle mdh = rts.GetMethodDescHandle(methodDescPtr); 449MethodDescHandle mdh, 509private BlobReader? GetLocalSignatureReader(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle, out MetadataReader mdReader) 556private uint GetLocalVariableCount(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 576MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 584SignatureDecoder<(uint Flags, int Size), MethodDescHandle> decoder = new(provider, mdReader, mdh); 665private sealed class FlagSignatureTypeProvider : ISignatureTypeProvider<(uint Flags, int Size), MethodDescHandle> 743public (uint Flags, int Size) GetTypeFromSpecification(MetadataReader reader, MethodDescHandle genericContext, TypeSpecificationHandle handle, byte rawTypeKind) 748public (uint Flags, int Size) GetGenericMethodParameter(MethodDescHandle mdh, int index) 759public (uint Flags, int Size) GetGenericTypeParameter(MethodDescHandle mdh, int index)
ClrDataMethodDefinition.cs (8)
73private static bool HasClassInstantiation(Target target, MethodDescHandle md) 82private static bool HasMethodInstantiation(Target target, MethodDescHandle md) 91private static bool HasClassOrMethodInstantiation(Target target, MethodDescHandle md) 159*handle = (ulong)((IEnum<MethodDescHandle>)emi).GetHandle(); 220MethodDescHandle methodDesc = emi.Enumerator.Current; 265((IEnum<MethodDescHandle>)emi).Dispose(); 299MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDescAddr); 693MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDescAddr);
ClrDataMethodInstance.cs (2)
31private readonly MethodDescHandle _methodDesc; 36MethodDescHandle methodDesc,
Dbi\DacDbiImpl.cs (13)
2149MethodDescHandle md = rts.GetMethodDescHandle(mdPtr); 2230private static bool HasClassOrMethodInstantiation(IRuntimeTypeSystem rts, MethodDescHandle md) 2389MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 2394private TargetPointer ResolveMethodAssembly(IRuntimeTypeSystem rts, MethodDescHandle mdHandle) 2559Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc)); 2734MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 2792MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDesc); 2883MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDesc); 3638Contracts.MethodDescHandle pRepMethod = rts.GetMethodDescHandle(vmMethodDesc); 3644Contracts.MethodDescHandle pSpecificMethod = pRepMethod; 6012MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 6249Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethod)); 6330Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
20MethodDescHandle mdh = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc));
SOSDacImpl.cs (8)
2265Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 2609Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 3035MethodDescHandle mdHandle = rts.GetMethodDescHandle(mdAddr); 5316MethodDescHandle methodDescHandle = runtimeTypeSystemContract.GetMethodDescHandle(methodDescPtr); 5590MethodDescHandle mdh = rts.GetMethodDescHandle(methodDescPtr); 5656MethodDescHandle mdh = rts.GetMethodDescHandle(md); 6906MethodDescHandle mdh = _rts.GetMethodDescHandle(mdAddr); 6926MethodDescHandle mdh = _rts.GetMethodDescHandle(mdAddr);
SOSDacImpl.IXCLRDataProcess.cs (17)
265MethodDescHandle mdh = rts.GetMethodDescHandle(methodDesc); 715internal sealed class EnumMethodInstances : IEnum<MethodDescHandle> 723public IEnumerator<MethodDescHandle> Enumerator { get; set; } = Enumerable.Empty<MethodDescHandle>().GetEnumerator(); 746MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 757private IEnumerable<MethodDescHandle> IterateMethodInstantiations(Contracts.ModuleHandle moduleHandle) 790private IEnumerable<MethodDescHandle> IterateMethodInstances() 800MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 826foreach (MethodDescHandle methodDesc in IterateMethodInstantiations(moduleHandle)) 869MethodDescHandle methodDesc = _rts.GetMethodDescHandle(methodDescAddr); 884private bool HasClassOrMethodInstantiation(MethodDescHandle md) 889private bool HasClassInstantiation(MethodDescHandle md) 898private bool HasMethodInstantiation(MethodDescHandle md) 942*handle = (ulong)((IEnum<MethodDescHandle>)emi).GetHandle(); 998MethodDescHandle methodDesc = emi.Enumerator.Current; 1140MethodDescHandle methodDesc = rts.GetMethodDescHandle(jit.MethodDescAddress); 1201MethodDescHandle methodDesc = rts.GetMethodDescHandle(exceptionCatcherEnter.MethodDescAddress);
StressTestApi\CdacStressApi.cs (1)
74MethodDescHandle mdh = rts.GetMethodDescHandle(
TypeNameBuilder.cs (3)
60public static void AppendMethodInternal(Target target, StringBuilder stringBuilder, Contracts.MethodDescHandle method, TypeNameFormat format) 65public static void AppendMethodImpl(Target target, StringBuilder stringBuilder, Contracts.MethodDescHandle method, ReadOnlySpan<ITypeHandle> typeInstantiation, TypeNameFormat format) 162public static ITypeHandle GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem, ITypeHandle possiblyDerivedType, MethodDescHandle method)