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