3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1299return new MethodDescHandle(methodDescPointer); 1321return new MethodDescHandle(methodDescPointer); 1655TargetPointer mtAddr = GetMethodTable(new MethodDescHandle(md.Address));
139 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (27)
Contracts\IRuntimeTypeSystem.cs (27)
208MethodDescHandle GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException(); 209TargetPointer GetMethodTable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 212bool IsGenericMethodDefinition(MethodDescHandle methodDesc) => throw new NotImplementedException(); 213ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 215GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 219bool IsAsyncMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 222uint GetMethodToken(MethodDescHandle methodDesc) => throw new NotImplementedException(); 226bool IsArrayMethod(MethodDescHandle methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException(); 232bool IsNoMetadataMethod(MethodDescHandle methodDesc, out string methodName) => throw new NotImplementedException(); 234bool IsStoredSigMethodDesc(MethodDescHandle methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException(); 238bool IsDynamicMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 241bool IsIL(MethodDescHandle methodDesc) => throw new NotImplementedException(); 245bool IsILStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 248bool HasMDContextArg(MethodDescHandle methodDesc) => throw new NotImplementedException(); 250bool IsCollectibleMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 251bool IsVersionable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 253TargetPointer GetMethodDescVersioningState(MethodDescHandle methodDesc) => throw new NotImplementedException(); 255TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 256TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException(); 258ushort GetSlotNumber(MethodDescHandle methodDesc) => throw new NotImplementedException(); 260bool HasNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 262TargetPointer GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 264TargetPointer GetGCStressCodeCopy(MethodDescHandle methodDesc) => throw new NotImplementedException(); 266OptimizationTier GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 267bool IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 269bool IsAsyncThunkMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 271bool IsWrapperStub(MethodDescHandle methodDesc) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (53)
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); 434MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
539MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (34)
1291public MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer) 1294private MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer, bool validate) 1324public TargetPointer GetMethodTable(MethodDescHandle methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable; 1346public bool IsGenericMethodDefinition(MethodDescHandle methodDescHandle) 1355public ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1380public GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) 1433public bool IsAsyncMethod(MethodDescHandle methodDescHandle) 1446public uint GetMethodToken(MethodDescHandle methodDescHandle) 1452public bool IsArrayMethod(MethodDescHandle methodDescHandle, out ArrayFunctionType functionType) 1486public bool IsNoMetadataMethod(MethodDescHandle methodDescHandle, out string methodName) 1500public bool IsStoredSigMethodDesc(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1520public bool IsDynamicMethod(MethodDescHandle methodDescHandle) 1532public bool IsIL(MethodDescHandle methodDescHandle) 1538public bool IsILStub(MethodDescHandle methodDescHandle) 1549public bool HasMDContextArg(MethodDescHandle methodDescHandle) 1661bool IRuntimeTypeSystem.IsCollectibleMethod(MethodDescHandle methodDesc) 1669bool IRuntimeTypeSystem.IsVersionable(MethodDescHandle methodDesc) 1686TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(MethodDescHandle methodDesc) 1697uint IRuntimeTypeSystem.GetMethodToken(MethodDescHandle methodDescHandle) 1703ushort IRuntimeTypeSystem.GetSlotNumber(MethodDescHandle methodDesc) 1708bool IRuntimeTypeSystem.HasNativeCodeSlot(MethodDescHandle methodDesc) 1715private IEnumerable<MethodDescHandle> GetIntroducedMethods(TypeHandle typeHandle) 1731MethodDescHandle methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false); 1747foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 1768foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 1802foreach (MethodDescHandle mdh in GetIntroducedMethods(lookupMT)) 1850TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) 1856TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 1876TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 1905TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(MethodDescHandle methodDesc) 1930OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) 1941bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) 1947public bool IsAsyncThunkMethod(MethodDescHandle methodDescHandle) 1959public bool IsWrapperStub(MethodDescHandle methodDescHandle)
Contracts\Signature\SignatureTypeProvider.cs (3)
42if (typeof(T) == typeof(MethodDescHandle)) 44MethodDescHandle methodContext = (MethodDescHandle)(object)context!;
Contracts\StackWalk\GC\GcScanner.cs (1)
330MethodDescHandle mdh = rts.GetMethodDescHandle(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)
869MethodDescHandle returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (59)
ClrDataFrame.cs (14)
193GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _); 250GetMethodInfo(out MethodDescHandle mdh, out _, out _, out Contracts.ModuleHandle moduleHandle, out _); 296GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _); 360MethodDescHandle mdh = rts.GetMethodDescHandle(methodDesc); 405private void GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out uint token) 456MethodDescHandle mdh, 517private BlobReader? GetLocalSignatureReader(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle, out MetadataReader mdReader) 556private uint GetLocalVariableCount(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 576MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 582SignatureDecoder<(uint Flags, int Size), MethodDescHandle> decoder = new(provider, mdReader, mdh); 663private sealed class FlagSignatureTypeProvider : ISignatureTypeProvider<(uint Flags, int Size), MethodDescHandle> 741public (uint Flags, int Size) GetTypeFromSpecification(MetadataReader reader, MethodDescHandle genericContext, TypeSpecificationHandle handle, byte rawTypeKind) 746public (uint Flags, int Size) GetGenericMethodParameter(MethodDescHandle mdh, int index) 757public (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 (7)
1436MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 1588Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc)); 1763MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 2474Contracts.MethodDescHandle pRepMethod = rts.GetMethodDescHandle(vmMethodDesc); 2480Contracts.MethodDescHandle pSpecificMethod = pRepMethod; 4255MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 4443Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
SOSDacImpl.cs (8)
2282Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 2619Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 3045MethodDescHandle mdHandle = rts.GetMethodDescHandle(mdAddr); 5317MethodDescHandle methodDescHandle = runtimeTypeSystemContract.GetMethodDescHandle(methodDescPtr); 5587MethodDescHandle mdh = rts.GetMethodDescHandle(methodDescPtr); 5653MethodDescHandle mdh = rts.GetMethodDescHandle(md); 6901MethodDescHandle mdh = _rts.GetMethodDescHandle(mdAddr); 6921MethodDescHandle 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(); 281MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 292private IEnumerable<MethodDescHandle> IterateMethodInstantiations(Contracts.ModuleHandle moduleHandle) 325private IEnumerable<MethodDescHandle> IterateMethodInstances() 335MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 361foreach (MethodDescHandle methodDesc in IterateMethodInstantiations(moduleHandle)) 404MethodDescHandle methodDesc = _rts.GetMethodDescHandle(methodDescAddr); 419private bool HasClassOrMethodInstantiation(MethodDescHandle md) 424private bool HasClassInstantiation(MethodDescHandle md) 433private bool HasMethodInstantiation(MethodDescHandle md) 477*handle = (ulong)((IEnum<MethodDescHandle>)emi).GetHandle(); 533MethodDescHandle methodDesc = emi.Enumerator.Current; 664MethodDescHandle methodDesc = rts.GetMethodDescHandle(jit.MethodDescAddress); 725MethodDescHandle methodDesc = rts.GetMethodDescHandle(exceptionCatcherEnter.MethodDescAddress);
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)