3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1285return new MethodDescHandle(methodDescPointer); 1307return new MethodDescHandle(methodDescPointer); 1642TargetPointer mtAddr = GetMethodTable(new MethodDescHandle(md.Address));
134 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (27)
Contracts\IRuntimeTypeSystem.cs (27)
196MethodDescHandle GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException(); 197TargetPointer GetMethodTable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 200bool IsGenericMethodDefinition(MethodDescHandle methodDesc) => throw new NotImplementedException(); 201ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 203GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 207bool IsAsyncMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 210uint GetMethodToken(MethodDescHandle methodDesc) => throw new NotImplementedException(); 214bool IsArrayMethod(MethodDescHandle methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException(); 220bool IsNoMetadataMethod(MethodDescHandle methodDesc, out string methodName) => throw new NotImplementedException(); 222bool IsStoredSigMethodDesc(MethodDescHandle methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException(); 226bool IsDynamicMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 229bool IsIL(MethodDescHandle methodDesc) => throw new NotImplementedException(); 233bool IsILStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 236bool HasMDContextArg(MethodDescHandle methodDesc) => throw new NotImplementedException(); 238bool IsCollectibleMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 239bool IsVersionable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 241TargetPointer GetMethodDescVersioningState(MethodDescHandle methodDesc) => throw new NotImplementedException(); 243TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 244TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException(); 246ushort GetSlotNumber(MethodDescHandle methodDesc) => throw new NotImplementedException(); 248bool HasNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 250TargetPointer GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 252TargetPointer GetGCStressCodeCopy(MethodDescHandle methodDesc) => throw new NotImplementedException(); 254OptimizationTier GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 255bool IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 257bool IsAsyncThunkMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 259bool 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)
517MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (34)
1277public MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer) 1280private MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer, bool validate) 1310public TargetPointer GetMethodTable(MethodDescHandle methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable; 1332public bool IsGenericMethodDefinition(MethodDescHandle methodDescHandle) 1341public ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1369public GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) 1420public bool IsAsyncMethod(MethodDescHandle methodDescHandle) 1433public uint GetMethodToken(MethodDescHandle methodDescHandle) 1439public bool IsArrayMethod(MethodDescHandle methodDescHandle, out ArrayFunctionType functionType) 1473public bool IsNoMetadataMethod(MethodDescHandle methodDescHandle, out string methodName) 1487public bool IsStoredSigMethodDesc(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1507public bool IsDynamicMethod(MethodDescHandle methodDescHandle) 1519public bool IsIL(MethodDescHandle methodDescHandle) 1525public bool IsILStub(MethodDescHandle methodDescHandle) 1536public bool HasMDContextArg(MethodDescHandle methodDescHandle) 1648bool IRuntimeTypeSystem.IsCollectibleMethod(MethodDescHandle methodDesc) 1656bool IRuntimeTypeSystem.IsVersionable(MethodDescHandle methodDesc) 1673TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(MethodDescHandle methodDesc) 1684uint IRuntimeTypeSystem.GetMethodToken(MethodDescHandle methodDescHandle) 1690ushort IRuntimeTypeSystem.GetSlotNumber(MethodDescHandle methodDesc) 1695bool IRuntimeTypeSystem.HasNativeCodeSlot(MethodDescHandle methodDesc) 1702private IEnumerable<MethodDescHandle> GetIntroducedMethods(TypeHandle typeHandle) 1718MethodDescHandle methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false); 1734foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 1755foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 1789foreach (MethodDescHandle mdh in GetIntroducedMethods(lookupMT)) 1837TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) 1843TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 1863TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 1892TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(MethodDescHandle methodDesc) 1917OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) 1928bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) 1934public bool IsAsyncThunkMethod(MethodDescHandle methodDescHandle) 1946public 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)
868MethodDescHandle returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (54)
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 (2)
1203Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc)); 2503Contracts.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)