3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1299
return new
MethodDescHandle
(methodDescPointer);
1321
return new
MethodDescHandle
(methodDescPointer);
1655
TargetPointer mtAddr = GetMethodTable(new
MethodDescHandle
(md.Address));
139 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (27)
Contracts\IRuntimeTypeSystem.cs (27)
208
MethodDescHandle
GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException();
209
TargetPointer GetMethodTable(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
212
bool IsGenericMethodDefinition(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
213
ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
215
GenericContextLoc GetGenericContextLoc(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
219
bool IsAsyncMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
222
uint GetMethodToken(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
226
bool IsArrayMethod(
MethodDescHandle
methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException();
232
bool IsNoMetadataMethod(
MethodDescHandle
methodDesc, out string methodName) => throw new NotImplementedException();
234
bool IsStoredSigMethodDesc(
MethodDescHandle
methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException();
238
bool IsDynamicMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
241
bool IsIL(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
245
bool IsILStub(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
248
bool HasMDContextArg(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
250
bool IsCollectibleMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
251
bool IsVersionable(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
253
TargetPointer GetMethodDescVersioningState(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
255
TargetCodePointer GetNativeCode(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
256
TargetCodePointer GetMethodEntryPointIfExists(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
258
ushort GetSlotNumber(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
260
bool HasNativeCodeSlot(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
262
TargetPointer GetAddressOfNativeCodeSlot(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
264
TargetPointer GetGCStressCodeCopy(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
266
OptimizationTier GetMethodDescOptimizationTier(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
267
bool IsEligibleForTieredCompilation(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
269
bool IsAsyncThunkMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
271
bool IsWrapperStub(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (53)
Contracts\CodeVersions_1.cs (11)
106
MethodDescHandle
md = rts.GetMethodDescHandle(methodDesc);
134
MethodDescHandle
md = rts.GetMethodDescHandle(methodDescAddress);
151
MethodDescHandle
md = rts.GetMethodDescHandle(methodDescAddress);
176
MethodDescHandle
md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
206
MethodDescHandle
md = rts.GetMethodDescHandle(methodDesc);
223
MethodDescHandle
md = rts.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
245
private NativeCodeVersionHandle GetSpecificNativeCodeVersion(IRuntimeTypeSystem rts,
MethodDescHandle
md, TargetCodePointer startAddress)
262
private IEnumerable<NativeCodeVersionHandle> FindNativeCodeVersionNodes(IRuntimeTypeSystem rts,
MethodDescHandle
md, Func<Data.NativeCodeVersionNode, bool> predicate)
321
MethodDescHandle
md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(nativeCodeVersion.MethodDescAddress);
343
MethodDescHandle
md = rts.GetMethodDescHandle(methodDesc);
434
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
539
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (34)
1291
public
MethodDescHandle
GetMethodDescHandle(TargetPointer methodDescPointer)
1294
private
MethodDescHandle
GetMethodDescHandle(TargetPointer methodDescPointer, bool validate)
1324
public TargetPointer GetMethodTable(
MethodDescHandle
methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable;
1346
public bool IsGenericMethodDefinition(
MethodDescHandle
methodDescHandle)
1355
public ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(
MethodDescHandle
methodDescHandle)
1380
public GenericContextLoc GetGenericContextLoc(
MethodDescHandle
methodDescHandle)
1433
public bool IsAsyncMethod(
MethodDescHandle
methodDescHandle)
1446
public uint GetMethodToken(
MethodDescHandle
methodDescHandle)
1452
public bool IsArrayMethod(
MethodDescHandle
methodDescHandle, out ArrayFunctionType functionType)
1486
public bool IsNoMetadataMethod(
MethodDescHandle
methodDescHandle, out string methodName)
1500
public bool IsStoredSigMethodDesc(
MethodDescHandle
methodDescHandle, out ReadOnlySpan<byte> signature)
1520
public bool IsDynamicMethod(
MethodDescHandle
methodDescHandle)
1532
public bool IsIL(
MethodDescHandle
methodDescHandle)
1538
public bool IsILStub(
MethodDescHandle
methodDescHandle)
1549
public bool HasMDContextArg(
MethodDescHandle
methodDescHandle)
1661
bool IRuntimeTypeSystem.IsCollectibleMethod(
MethodDescHandle
methodDesc)
1669
bool IRuntimeTypeSystem.IsVersionable(
MethodDescHandle
methodDesc)
1686
TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(
MethodDescHandle
methodDesc)
1697
uint IRuntimeTypeSystem.GetMethodToken(
MethodDescHandle
methodDescHandle)
1703
ushort IRuntimeTypeSystem.GetSlotNumber(
MethodDescHandle
methodDesc)
1708
bool IRuntimeTypeSystem.HasNativeCodeSlot(
MethodDescHandle
methodDesc)
1715
private IEnumerable<
MethodDescHandle
> GetIntroducedMethods(TypeHandle typeHandle)
1731
MethodDescHandle
methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false);
1747
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(canonMT))
1768
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(canonMT))
1802
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(lookupMT))
1850
TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(
MethodDescHandle
methodDesc)
1856
TargetCodePointer IRuntimeTypeSystem.GetNativeCode(
MethodDescHandle
methodDescHandle)
1876
TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(
MethodDescHandle
methodDescHandle)
1905
TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(
MethodDescHandle
methodDesc)
1930
OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(
MethodDescHandle
methodDescHandle)
1941
bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(
MethodDescHandle
methodDescHandle)
1947
public bool IsAsyncThunkMethod(
MethodDescHandle
methodDescHandle)
1959
public bool IsWrapperStub(
MethodDescHandle
methodDescHandle)
Contracts\Signature\SignatureTypeProvider.cs (3)
42
if (typeof(T) == typeof(
MethodDescHandle
))
44
MethodDescHandle
methodContext = (
MethodDescHandle
)(object)context!;
Contracts\StackWalk\GC\GcScanner.cs (1)
330
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDescPtr);
Contracts\StackWalk\GC\GcSignatureTypeProvider.cs (2)
32
/// is the owning method's <see cref="
MethodDescHandle
"/> (used for MVAR).
34
internal readonly record struct GcSignatureContext(TypeHandle ClassContext,
MethodDescHandle
MethodContext);
Contracts\StackWalk\StackWalk_1.cs (1)
869
MethodDescHandle
returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (59)
ClrDataFrame.cs (14)
193
GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _);
250
GetMethodInfo(out
MethodDescHandle
mdh, out _, out _, out Contracts.ModuleHandle moduleHandle, out _);
296
GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _);
360
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDesc);
405
private void GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out uint token)
456
MethodDescHandle
mdh,
517
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)
582
SignatureDecoder<(uint Flags, int Size),
MethodDescHandle
> decoder = new(provider, mdReader, mdh);
663
private sealed class FlagSignatureTypeProvider : ISignatureTypeProvider<(uint Flags, int Size),
MethodDescHandle
>
741
public (uint Flags, int Size) GetTypeFromSpecification(MetadataReader reader,
MethodDescHandle
genericContext, TypeSpecificationHandle handle, byte rawTypeKind)
746
public (uint Flags, int Size) GetGenericMethodParameter(
MethodDescHandle
mdh, int index)
757
public (uint Flags, int Size) GetGenericTypeParameter(
MethodDescHandle
mdh, int index)
ClrDataMethodDefinition.cs (8)
44
private static bool HasClassInstantiation(Target target,
MethodDescHandle
md)
53
private static bool HasMethodInstantiation(Target target,
MethodDescHandle
md)
62
private static bool HasClassOrMethodInstantiation(Target target,
MethodDescHandle
md)
130
*handle = (ulong)((IEnum<
MethodDescHandle
>)emi).GetHandle();
191
MethodDescHandle
methodDesc = emi.Enumerator.Current;
236
((IEnum<
MethodDescHandle
>)emi).Dispose();
270
MethodDescHandle
methodDescHandle = rts.GetMethodDescHandle(methodDescAddr);
463
MethodDescHandle
methodDescHandle = rts.GetMethodDescHandle(methodDescAddr);
ClrDataMethodInstance.cs (2)
21
private readonly
MethodDescHandle
_methodDesc;
26
MethodDescHandle
methodDesc,
Dbi\DacDbiImpl.cs (7)
1436
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
1588
Contracts.
MethodDescHandle
md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc));
1763
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
2474
Contracts.
MethodDescHandle
pRepMethod = rts.GetMethodDescHandle(vmMethodDesc);
2480
Contracts.
MethodDescHandle
pSpecificMethod = pRepMethod;
4255
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
4443
Contracts.
MethodDescHandle
md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
SOSDacImpl.cs (8)
2282
Contracts.
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc);
2619
Contracts.
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc);
3045
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(mdAddr);
5317
MethodDescHandle
methodDescHandle = runtimeTypeSystemContract.GetMethodDescHandle(methodDescPtr);
5587
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDescPtr);
5653
MethodDescHandle
mdh = rts.GetMethodDescHandle(md);
6901
MethodDescHandle
mdh = _rts.GetMethodDescHandle(mdAddr);
6921
MethodDescHandle
mdh = _rts.GetMethodDescHandle(mdAddr);
SOSDacImpl.IXCLRDataProcess.cs (17)
133
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDesc);
249
internal sealed class EnumMethodInstances : IEnum<
MethodDescHandle
>
257
public IEnumerator<
MethodDescHandle
> Enumerator { get; set; } = Enumerable.Empty<
MethodDescHandle
>().GetEnumerator();
281
MethodDescHandle
mainMD = _rts.GetMethodDescHandle(_mainMethodDesc);
292
private IEnumerable<
MethodDescHandle
> IterateMethodInstantiations(Contracts.ModuleHandle moduleHandle)
325
private IEnumerable<
MethodDescHandle
> IterateMethodInstances()
335
MethodDescHandle
mainMD = _rts.GetMethodDescHandle(_mainMethodDesc);
361
foreach (
MethodDescHandle
methodDesc in IterateMethodInstantiations(moduleHandle))
404
MethodDescHandle
methodDesc = _rts.GetMethodDescHandle(methodDescAddr);
419
private bool HasClassOrMethodInstantiation(
MethodDescHandle
md)
424
private bool HasClassInstantiation(
MethodDescHandle
md)
433
private bool HasMethodInstantiation(
MethodDescHandle
md)
477
*handle = (ulong)((IEnum<
MethodDescHandle
>)emi).GetHandle();
533
MethodDescHandle
methodDesc = emi.Enumerator.Current;
664
MethodDescHandle
methodDesc = rts.GetMethodDescHandle(jit.MethodDescAddress);
725
MethodDescHandle
methodDesc = rts.GetMethodDescHandle(exceptionCatcherEnter.MethodDescAddress);
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<TypeHandle> typeInstantiation, TypeNameFormat format)
165
public static TypeHandle GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem, TypeHandle possiblyDerivedType,
MethodDescHandle
method)