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