3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1622return new MethodDescHandle(methodDescPointer); 1644return new MethodDescHandle(methodDescPointer); 2054TargetPointer mtAddr = GetMethodTable(new MethodDescHandle(md.Address));
187 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (33)
Contracts\ICallingConvention.cs (1)
12bool TryComputeArgGCRefMapBlob(MethodDescHandle methodDesc, out byte[] blob)
Contracts\IRuntimeTypeSystem.cs (32)
275MethodDescHandle GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException(); 276TargetPointer GetMethodTable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 279bool IsGenericMethodDefinition(MethodDescHandle methodDesc) => throw new NotImplementedException(); 280ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 282GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 286bool IsAsyncMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 289uint GetMethodToken(MethodDescHandle methodDesc) => throw new NotImplementedException(); 293bool IsArrayMethod(MethodDescHandle methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException(); 299bool IsNoMetadataMethod(MethodDescHandle methodDesc, out string methodName) => throw new NotImplementedException(); 303bool TryGetMethodSignature(MethodDescHandle methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException(); 307bool IsDynamicMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 310bool IsIL(MethodDescHandle methodDesc) => throw new NotImplementedException(); 314bool IsILStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 317bool IsDiagnosticsHidden(MethodDescHandle methodDesc) => throw new NotImplementedException(); 320bool IsDiagnosticsHiddenLCGMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 323bool HasMDContextArg(MethodDescHandle methodDesc) => throw new NotImplementedException(); 325bool IsCollectibleMethod(MethodDescHandle methodDesc) => throw new NotImplementedException(); 326bool IsVersionable(MethodDescHandle methodDesc) => throw new NotImplementedException(); 328TargetPointer GetMethodDescVersioningState(MethodDescHandle methodDesc) => throw new NotImplementedException(); 330TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 331TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException(); 333ushort GetSlotNumber(MethodDescHandle methodDesc) => throw new NotImplementedException(); 335bool HasNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 337TargetPointer GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) => throw new NotImplementedException(); 339TargetPointer GetGCStressCodeCopy(MethodDescHandle methodDesc) => throw new NotImplementedException(); 341OptimizationTier GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 342bool IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) => throw new NotImplementedException(); 343AsyncMethodFlags GetAsyncMethodFlags(MethodDescHandle methodDesc) => throw new NotImplementedException(); 344TargetPointer GetAsyncVariant(MethodDescHandle methodDesc) => throw new NotImplementedException(); 346bool IsWrapperStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 347bool IsUnboxingStub(MethodDescHandle methodDesc) => throw new NotImplementedException(); 349bool IsVarArg(MethodDescHandle methodDesc) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (79)
Contracts\CallingConvention\CallingConvention_1.cs (5)
35public bool TryComputeArgGCRefMapBlob(MethodDescHandle methodDesc, out byte[] blob) 57private MethodSignature<SignatureTypeInfo> DecodeMethodSignature(MethodDescHandle methodDesc) 137private ArgumentLayout GetArgumentLayout(MethodDescHandle methodDesc) 361private byte[]? ComputeArgGCRefMapBlobCore(MethodDescHandle methodDesc) 589private static GenericContextLoc SafeGetGenericContextLoc(IRuntimeTypeSystem rts, MethodDescHandle md)
Contracts\CallingConvention\SignatureTypeInfoProvider.cs (2)
15MethodDescHandle? Method, 69if (context.Method is not MethodDescHandle method)
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) 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); 470MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
824MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (41)
1614public MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer) 1617private MethodDescHandle GetMethodDescHandle(TargetPointer methodDescPointer, bool validate) 1647public TargetPointer GetMethodTable(MethodDescHandle methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable; 1669public bool IsGenericMethodDefinition(MethodDescHandle methodDescHandle) 1678public ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1703public GenericContextLoc GetGenericContextLoc(MethodDescHandle methodDescHandle) 1756public bool IsAsyncMethod(MethodDescHandle methodDescHandle) 1769public uint GetMethodToken(MethodDescHandle methodDescHandle) 1775public bool IsArrayMethod(MethodDescHandle methodDescHandle, out ArrayFunctionType functionType) 1809public bool IsNoMetadataMethod(MethodDescHandle methodDescHandle, out string methodName) 1823private bool IsStoredSigMethodDesc(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1843public bool TryGetMethodSignature(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1886public bool IsDynamicMethod(MethodDescHandle methodDescHandle) 1898public bool IsIL(MethodDescHandle methodDescHandle) 1904public bool IsILStub(MethodDescHandle methodDescHandle) 1915public bool IsDiagnosticsHidden(MethodDescHandle methodDescHandle) 1936public bool IsDiagnosticsHiddenLCGMethod(MethodDescHandle methodDescHandle) 1949public bool HasMDContextArg(MethodDescHandle methodDescHandle) 2060bool IRuntimeTypeSystem.IsCollectibleMethod(MethodDescHandle methodDesc) 2068bool IRuntimeTypeSystem.IsVersionable(MethodDescHandle methodDesc) 2086TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(MethodDescHandle methodDesc) 2097uint IRuntimeTypeSystem.GetMethodToken(MethodDescHandle methodDescHandle) 2103ushort IRuntimeTypeSystem.GetSlotNumber(MethodDescHandle methodDesc) 2108bool IRuntimeTypeSystem.HasNativeCodeSlot(MethodDescHandle methodDesc) 2115private IEnumerable<MethodDescHandle> GetIntroducedMethods(ITypeHandle typeHandle) 2131MethodDescHandle methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false); 2141TargetPointer IRuntimeTypeSystem.GetAsyncVariant(MethodDescHandle methodDescHandle) 2152foreach (MethodDescHandle candidateHandle in GetIntroducedMethods(canonicalMethodTable)) 2174foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 2195foreach (MethodDescHandle mdh in GetIntroducedMethods(canonMT)) 2229foreach (MethodDescHandle mdh in GetIntroducedMethods(lookupMT)) 2260TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(MethodDescHandle methodDesc) 2266TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 2286TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 2315TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(MethodDescHandle methodDesc) 2339OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(MethodDescHandle methodDescHandle) 2350bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(MethodDescHandle methodDescHandle) 2356public AsyncMethodFlags GetAsyncMethodFlags(MethodDescHandle methodDescHandle) 2379public bool IsWrapperStub(MethodDescHandle methodDescHandle) 2385public bool IsUnboxingStub(MethodDescHandle methodDescHandle) 2391public bool IsVarArg(MethodDescHandle methodDescHandle)
Contracts\Signature\SignatureTypeProvider.cs (6)
42if (typeof(T) == typeof(MethodDescHandle)) 44MethodDescHandle methodContext = (MethodDescHandle)(object)context!; 58if (typeof(T) == typeof(MethodDescHandle)) 60MethodDescHandle methodContext = (MethodDescHandle)(object)context!;
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (3)
221MethodDescHandle md = rts.GetMethodDescHandle(method); 248private bool CanReadReceiver(MethodDescHandle method, TargetPointer owner) 278MethodDescHandle md = rts.GetMethodDescHandle(GetMethodDescPtr(frameAddress));
Contracts\StackWalk\FrameHandling\MethodGCRefMapLookup.cs (6)
49internal TargetPointer Find(MethodDescHandle method, TargetPointer receiver, bool dispatch) 72MethodDescHandle implementation = method; 190private bool Matches(TargetPointer receiver, ushort source, MethodDescHandle implementation) 198MethodDescHandle method = _rts.GetMethodDescHandle(candidate); 233MethodDescHandle method = _rts.GetMethodDescHandle(candidate); 250MethodDescHandle md = _rts.GetMethodDescHandle(method);
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (1)
114MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(methodDescPtr);
Contracts\StackWalk\GC\GcScanner.cs (1)
287MethodDescHandle md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(method);
Contracts\StackWalk\StackWalk_1.cs (2)
1204MethodDescHandle md = rts.GetMethodDescHandle(mdPtr); 1327MethodDescHandle returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (75)
ClrDataFrame.cs (19)
154MethodDescHandle mdh = GetFrameMethodDesc(out _); 209MethodDescHandle mdh = GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle); 285MethodDescHandle mdh = GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle); 333MethodDescHandle mdh = GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle); 399MethodDescHandle mdh = GetFrameMethodDesc(out _); 459private MethodDescHandle GetFrameMethodDesc(out Contracts.ModuleHandle moduleHandle) 466MethodDescHandle mdh = rts.GetMethodDescHandle(methodDescPtr); 486MethodDescHandle mdh, 559private BlobReader? GetLocalSignatureReader(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle, out MetadataReader mdReader) 606private uint GetLocalVariableCount(MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 626MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 634SignatureDecoder<(uint Flags, int Size), MethodDescHandle> decoder = new(provider, mdReader, mdh); 662MethodDescHandle mdh, Contracts.ModuleHandle moduleHandle) 669SignatureTypeProvider<MethodDescHandle> provider = new(_target, moduleHandle); 670SignatureDecoder<ITypeHandle?, MethodDescHandle> decoder = new(provider, mdReader, mdh); 749private sealed class FlagSignatureTypeProvider : ISignatureTypeProvider<(uint Flags, int Size), MethodDescHandle> 827public (uint Flags, int Size) GetTypeFromSpecification(MetadataReader reader, MethodDescHandle genericContext, TypeSpecificationHandle handle, byte rawTypeKind) 832public (uint Flags, int Size) GetGenericMethodParameter(MethodDescHandle mdh, int index) 843public (uint Flags, int Size) GetGenericTypeParameter(MethodDescHandle mdh, int index)
ClrDataMethodDefinition.cs (8)
93private static bool HasClassInstantiation(Target target, MethodDescHandle md) 102private static bool HasMethodInstantiation(Target target, MethodDescHandle md) 111private static bool HasClassOrMethodInstantiation(Target target, MethodDescHandle md) 182*handle = (ulong)((IEnum<MethodDescHandle>)emi).GetHandle(); 243MethodDescHandle methodDesc = emi.Enumerator.Current; 280((IEnum<MethodDescHandle>)emi).Dispose(); 316MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDescAddr); 730MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDescAddr);
ClrDataMethodInstance.cs (2)
33private readonly MethodDescHandle _methodDesc; 38MethodDescHandle methodDesc,
Dbi\DacDbiImpl.cs (13)
2281MethodDescHandle md = rts.GetMethodDescHandle(mdPtr); 2358private static bool HasClassOrMethodInstantiation(IRuntimeTypeSystem rts, MethodDescHandle md) 2519MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 2524private TargetPointer ResolveMethodAssembly(IRuntimeTypeSystem rts, MethodDescHandle mdHandle) 2707Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc)); 2893MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 2952MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDesc); 3044MethodDescHandle methodDescHandle = rts.GetMethodDescHandle(methodDesc); 3810Contracts.MethodDescHandle pRepMethod = rts.GetMethodDescHandle(vmMethodDesc); 3816Contracts.MethodDescHandle pSpecificMethod = pRepMethod; 6257MethodDescHandle mdHandle = rts.GetMethodDescHandle(methodDescPtr); 6500Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethod)); 6583Contracts.MethodDescHandle md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
20MethodDescHandle mdh = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc));
EnumMemory\MethodCollector.cs (3)
72MethodDescHandle method = types.GetMethodDescHandle(methodDesc); 93MethodDescHandle method = types.GetMethodDescHandle(methodDesc); 117MethodDescHandle method = types.GetMethodDescHandle(methodDesc);
SOSDacImpl.cs (8)
2366Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 2713Contracts.MethodDescHandle methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc); 3147MethodDescHandle mdHandle = rts.GetMethodDescHandle(mdAddr); 5475MethodDescHandle methodDescHandle = runtimeTypeSystemContract.GetMethodDescHandle(methodDescPtr); 5756MethodDescHandle mdh = rts.GetMethodDescHandle(methodDescPtr); 5823MethodDescHandle mdh = rts.GetMethodDescHandle(md); 7102MethodDescHandle mdh = _rts.GetMethodDescHandle(mdAddr); 7122MethodDescHandle mdh = _rts.GetMethodDescHandle(mdAddr);
SOSDacImpl.IXCLRDataProcess.cs (17)
397MethodDescHandle mdh = rts.GetMethodDescHandle(methodDesc); 806internal sealed class EnumMethodInstances : IEnum<MethodDescHandle> 814public IEnumerator<MethodDescHandle> Enumerator { get; set; } = Enumerable.Empty<MethodDescHandle>().GetEnumerator(); 837MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 848private IEnumerable<MethodDescHandle> IterateMethodInstantiations(Contracts.ModuleHandle moduleHandle) 881private IEnumerable<MethodDescHandle> IterateMethodInstances() 891MethodDescHandle mainMD = _rts.GetMethodDescHandle(_mainMethodDesc); 917foreach (MethodDescHandle methodDesc in IterateMethodInstantiations(moduleHandle)) 960MethodDescHandle methodDesc = _rts.GetMethodDescHandle(methodDescAddr); 975private bool HasClassOrMethodInstantiation(MethodDescHandle md) 980private bool HasClassInstantiation(MethodDescHandle md) 989private bool HasMethodInstantiation(MethodDescHandle md) 1038*handle = (ulong)((IEnum<MethodDescHandle>)emi).GetHandle(); 1094MethodDescHandle methodDesc = emi.Enumerator.Current; 1228MethodDescHandle methodDesc = rts.GetMethodDescHandle(jit.MethodDescAddress); 1302MethodDescHandle 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)