3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1475return new MethodDescHandle(methodDescPointer); 1497return new MethodDescHandle(methodDescPointer); 1831TargetPointer mtAddr = GetMethodTable(new MethodDescHandle(md.Address));
152 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (29)
Contracts\ICallingConvention.cs (1)
12bool TryComputeArgGCRefMapBlob(MethodDescHandle methodDesc, out byte[] blob)
Contracts\IRuntimeTypeSystem.cs (28)
236MethodDescHandle GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException(); 237TargetPointer GetMethodTable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 240bool IsGenericMethodDefinition(MethodDescHandle methodDesc) => throw new NotImplementedException(); 241ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 243GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 247bool IsAsyncMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 250uint GetMethodToken(MethodDescHandle methodDesc) => throw new NotImplementedException(); 254bool IsArrayMethod(MethodDescHandle methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException(); 260bool IsNoMetadataMethod(MethodDescHandle methodDesc, out string methodName) => throw new NotImplementedException(); 262bool IsStoredSigMethodDesc(MethodDescHandle methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException(); 266bool IsDynamicMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 269bool IsIL(MethodDescHandle methodDesc) => throw new NotImplementedException(); 273bool IsILStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 276bool HasMDContextArg(MethodDescHandle methodDesc) => throw new NotImplementedException(); 278bool IsCollectibleMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 279bool IsVersionable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 281TargetPointer GetMethodDescVersioningState(MethodDescHandle methodDesc) => throw new NotImplementedException(); 283TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 284TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException(); 286ushort GetSlotNumber(MethodDescHandle methodDesc) => throw new NotImplementedException(); 288bool HasNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 290TargetPointer GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 292TargetPointer GetGCStressCodeCopy(MethodDescHandle methodDesc) => throw new NotImplementedException(); 294OptimizationTier GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 295bool IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 297bool IsAsyncThunkMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 299bool IsWrapperStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 300bool IsUnboxingStub(MethodDescHandle methodDesc) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (62)
Contracts\CallingConvention\CallingConvention_1.cs (7)
28public bool TryComputeArgGCRefMapBlob(MethodDescHandle methodDesc, out byte[] blob) 82private ArgumentLayout GetArgumentLayout(MethodDescHandle methodDesc) 273IRuntimeTypeSystem rts, MethodDescHandle methodDesc) 322private ParamTypeInfo[] DecodeParamTypeInfo(IRuntimeTypeSystem rts, MethodDescHandle methodDesc, int paramCount) 546internal readonly record struct MethodSigContext(MethodDescHandle Method, TypeHandle OwningType); 596private byte[]? ComputeArgGCRefMapBlobCore(MethodDescHandle methodDesc) 810private static GenericContextLoc SafeGetGenericContextLoc(IRuntimeTypeSystem rts, MethodDescHandle md)
Contracts\CodeVersions_1.cs (11)
106MethodDescHandle md = rts.GetMethodDescHandle(methodDesc); 134MethodDescHandle md = rts.GetMethodDescHandle(methodDescAddress); 151MethodDescHandle md = rts.GetMethodDescHandle(methodDescAddress); 176MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(codeVersionHandle.MethodDescAddress); 206MethodDescHandle md = rts.GetMethodDescHandle(methodDesc); 223MethodDescHandle md = rts.GetMethodDescHandle(codeVersionHandle.MethodDescAddress); 245private NativeCodeVersionHandle GetSpecificNativeCodeVersion(IRuntimeTypeSystem rts, MethodDescHandle md, TargetCodePointer startAddress) 262private IEnumerable<NativeCodeVersionHandle> FindNativeCodeVersionNodes(IRuntimeTypeSystem rts, MethodDescHandle md, Func<Data.NativeCodeVersionNode, bool> predicate) 321MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(nativeCodeVersion.MethodDescAddress); 343MethodDescHandle md = rts.GetMethodDescHandle(methodDesc); 451MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
539MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (35)
1467public MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer) 1470private MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer, bool validate) 1500public TargetPointer GetMethodTable(MethodDescHandle methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable; 1522public bool IsGenericMethodDefinition(MethodDescHandle methodDescHandle) 1531public ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1556public GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) 1609public bool IsAsyncMethod(MethodDescHandle methodDescHandle) 1622public uint GetMethodToken(MethodDescHandle methodDescHandle) 1628public bool IsArrayMethod(MethodDescHandle methodDescHandle, out ArrayFunctionType functionType) 1662public bool IsNoMetadataMethod(MethodDescHandle methodDescHandle, out string methodName) 1676public bool IsStoredSigMethodDesc(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1696public bool IsDynamicMethod(MethodDescHandle methodDescHandle) 1708public bool IsIL(MethodDescHandle methodDescHandle) 1714public bool IsILStub(MethodDescHandle methodDescHandle) 1725public bool HasMDContextArg(MethodDescHandle methodDescHandle) 1837bool IRuntimeTypeSystem.IsCollectibleMethod(MethodDescHandle methodDesc) 1845bool IRuntimeTypeSystem.IsVersionable(MethodDescHandle methodDesc) 1862TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(MethodDescHandle methodDesc) 1873uint IRuntimeTypeSystem.GetMethodToken(MethodDescHandle methodDescHandle) 1879ushort IRuntimeTypeSystem.GetSlotNumber(MethodDescHandle methodDesc) 1884bool IRuntimeTypeSystem.HasNativeCodeSlot(MethodDescHandle methodDesc) 1891private IEnumerable<MethodDescHandle> GetIntroducedMethods(TypeHandle typeHandle) 1907MethodDescHandle methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false); 1923foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 1944foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 1978foreach (MethodDescHandle mdh in GetIntroducedMethods(lookupMT)) 2026TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) 2032TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 2052TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 2081TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(MethodDescHandle methodDesc) 2106OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) 2117bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) 2123public bool IsAsyncThunkMethod(MethodDescHandle methodDescHandle) 2135public bool IsWrapperStub(MethodDescHandle methodDescHandle) 2141public bool IsUnboxingStub(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)
368MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(fmf.MethodDescPtr);
Contracts\StackWalk\GC\GcSignatureTypeProvider.cs (2)
32/// is the owning method's <see cref="MethodDescHandle"/> (used for MVAR). 34internal readonly record struct GcSignatureContext(TypeHandle ClassContext, MethodDescHandle MethodContext);
Contracts\StackWalk\StackWalk_1.cs (1)
1103MethodDescHandle returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (61)
ClrDataFrame.cs (14)
192GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _); 249GetMethodInfo(out MethodDescHandle mdh, out _, out _, out Contracts.ModuleHandle moduleHandle, out _); 295GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _); 359MethodDescHandle mdh = rts.GetMethodDescHandle(methodDesc); 403private void GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out uint token) 454MethodDescHandle mdh, 514private BlobReader? GetLocalSignatureReader(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle, out MetadataReader mdReader) 553private uint GetLocalVariableCount(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 573MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 579SignatureDecoder<(uint Flags, int Size), MethodDescHandle> decoder = new(provider, mdReader, mdh); 660private sealed class FlagSignatureTypeProvider : ISignatureTypeProvider<(uint Flags, int Size), MethodDescHandle> 738public (uint Flags, int Size) GetTypeFromSpecification(MetadataReader reader, MethodDescHandle genericContext, TypeSpecificationHandle handle, byte rawTypeKind) 743public (uint Flags, int Size) GetGenericMethodParameter(MethodDescHandle mdh, int index) 754public (uint Flags, int Size) GetGenericTypeParameter(MethodDescHandle mdh, int index)
ClrDataMethodDefinition.cs (8)
44private static bool HasClassInstantiation(Target target, MethodDescHandle md) 53private static bool HasMethodInstantiation(Target target, MethodDescHandle md) 62private static bool HasClassOrMethodInstantiation(Target target, MethodDescHandle md) 130*handle = (ulong)((IEnum<MethodDescHandle>)emi).GetHandle(); 191MethodDescHandle methodDesc = emi.Enumerator.Current; 236((IEnum<MethodDescHandle>)emi).Dispose(); 270MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDescAddr); 463MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDescAddr);
ClrDataMethodInstance.cs (2)
21private readonly MethodDescHandle _methodDesc; 26MethodDescHandle methodDesc,
Dbi\DacDbiImpl.cs (8)
1819MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 1989Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc)); 2164MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 2889Contracts.MethodDescHandle pRepMethod = rts.GetMethodDescHandle(vmMethodDesc); 2895Contracts.MethodDescHandle pSpecificMethod = pRepMethod; 5234MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 5471Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethod)); 5552Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
SOSDacImpl.cs (8)
2266Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 2603Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 3029MethodDescHandle mdHandle = rts.GetMethodDescHandle(mdAddr); 5305MethodDescHandle methodDescHandle = runtimeTypeSystemContract.GetMethodDescHandle(methodDescPtr); 5575MethodDescHandle mdh = rts.GetMethodDescHandle(methodDescPtr); 5641MethodDescHandle mdh = rts.GetMethodDescHandle(md); 6889MethodDescHandle mdh = _rts.GetMethodDescHandle(mdAddr); 6909MethodDescHandle mdh = _rts.GetMethodDescHandle(mdAddr);
SOSDacImpl.IXCLRDataProcess.cs (17)
133MethodDescHandle mdh = rts.GetMethodDescHandle(methodDesc); 249internal sealed class EnumMethodInstances : IEnum<MethodDescHandle> 257public IEnumerator<MethodDescHandle> Enumerator { get; set; } = Enumerable.Empty<MethodDescHandle>().GetEnumerator(); 280MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 291private IEnumerable<MethodDescHandle> IterateMethodInstantiations(Contracts.ModuleHandle moduleHandle) 324private IEnumerable<MethodDescHandle> IterateMethodInstances() 334MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 360foreach (MethodDescHandle methodDesc in IterateMethodInstantiations(moduleHandle)) 403MethodDescHandle methodDesc = _rts.GetMethodDescHandle(methodDescAddr); 418private bool HasClassOrMethodInstantiation(MethodDescHandle md) 423private bool HasClassInstantiation(MethodDescHandle md) 432private bool HasMethodInstantiation(MethodDescHandle md) 476*handle = (ulong)((IEnum<MethodDescHandle>)emi).GetHandle(); 532MethodDescHandle methodDesc = emi.Enumerator.Current; 662MethodDescHandle methodDesc = rts.GetMethodDescHandle(jit.MethodDescAddress); 722MethodDescHandle methodDesc = rts.GetMethodDescHandle(exceptionCatcherEnter.MethodDescAddress);
StressTestApi\CdacStressApi.cs (1)
77MethodDescHandle 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<TypeHandle> typeInstantiation, TypeNameFormat format) 165public static TypeHandle GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem, TypeHandle possiblyDerivedType, MethodDescHandle method)