1 implementation of ITypeHandle
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\RuntimeTypeSystem\TypeHandleImplementations.cs (1)
10
internal sealed class TargetTypeHandle :
ITypeHandle
506 references to ITypeHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (72)
Contracts\IManagedTypeSource.cs (2)
20
bool TryGetTypeHandle(string fullyQualifiedName, [NotNullWhen(true)] out
ITypeHandle
? typeHandle) => throw new NotImplementedException();
21
ITypeHandle
GetTypeHandle(string fullyQualifiedName) => throw new NotImplementedException();
Contracts\IRuntimeMutableTypeSystem.cs (1)
12
IEnumerable<TargetPointer> EnumerateAddedFieldDescs(
ITypeHandle
typeHandle, bool staticFields) => throw new NotImplementedException();
Contracts\IRuntimeTypeSystem.cs (67)
152
ITypeHandle
GetTypeHandle(TargetPointer address) => throw new NotImplementedException();
153
TargetPointer GetModule(
ITypeHandle
typeHandle) => throw new NotImplementedException();
154
TargetPointer GetLoaderModule(
ITypeHandle
typeHandle) => throw new NotImplementedException();
158
TargetPointer GetCanonicalMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
160
bool IsCanonicalMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
161
TargetPointer GetParentMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
163
TargetPointer GetMethodDescForSlot(
ITypeHandle
methodTable, ushort slot) => throw new NotImplementedException();
164
IEnumerable<TargetPointer> GetIntroducedMethodDescs(
ITypeHandle
methodTable) => throw new NotImplementedException();
165
TargetCodePointer GetSlot(
ITypeHandle
typeHandle, uint slot) => throw new NotImplementedException();
167
uint GetBaseSize(
ITypeHandle
typeHandle) => throw new NotImplementedException();
168
uint GetNumInstanceFieldBytes(
ITypeHandle
typeHandle) => throw new NotImplementedException();
170
uint GetComponentSize(
ITypeHandle
typeHandle) => throw new NotImplementedException();
173
bool IsFreeObjectMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
175
bool IsObject(
ITypeHandle
typeHandle) => throw new NotImplementedException();
176
bool IsString(
ITypeHandle
typeHandle) => throw new NotImplementedException();
183
bool ContainsGCPointers(
ITypeHandle
typeHandle) => throw new NotImplementedException();
185
bool IsByRefLike(
ITypeHandle
typeHandle) => throw new NotImplementedException();
189
bool IsInlineArray(
ITypeHandle
typeHandle) => throw new NotImplementedException();
194
bool TryGetHFAElementSize(
ITypeHandle
typeHandle, out int elementSize) => throw new NotImplementedException();
196
bool RequiresAlign8(
ITypeHandle
typeHandle) => throw new NotImplementedException();
199
int GetClassAlignmentRequirement(
ITypeHandle
typeHandle) => throw new NotImplementedException();
204
bool TryGetSystemVAmd64EightByteClassification(
ITypeHandle
typeHandle, out SystemVAmd64EightByteClassification classification) => throw new NotImplementedException();
206
bool IsContinuationWithoutMetadata(
ITypeHandle
typeHandle) => throw new NotImplementedException();
212
IEnumerable<(uint Offset, uint Size)> GetGCDescSeries(
ITypeHandle
typeHandle, uint numComponents = 0) => throw new NotImplementedException();
213
bool IsDynamicStatics(
ITypeHandle
typeHandle) => throw new NotImplementedException();
214
ushort GetNumInterfaces(
ITypeHandle
typeHandle) => throw new NotImplementedException();
217
uint GetTypeDefToken(
ITypeHandle
typeHandle) => throw new NotImplementedException();
218
ushort GetNumVtableSlots(
ITypeHandle
typeHandle) => throw new NotImplementedException();
219
ushort GetNumMethods(
ITypeHandle
typeHandle) => throw new NotImplementedException();
222
uint GetTypeDefTypeAttributes(
ITypeHandle
typeHandle) => throw new NotImplementedException();
223
ushort GetNumInstanceFields(
ITypeHandle
typeHandle) => throw new NotImplementedException();
224
ushort GetNumStaticFields(
ITypeHandle
typeHandle) => throw new NotImplementedException();
225
ushort GetNumThreadStaticFields(
ITypeHandle
typeHandle) => throw new NotImplementedException();
226
IEnumerable<TargetPointer> GetFieldDescList(
ITypeHandle
typeHandle) => throw new NotImplementedException();
228
bool IsTrackedReferenceWithFinalizer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
229
TargetPointer GetGCStaticsBasePointer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
230
TargetPointer GetNonGCStaticsBasePointer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
231
TargetPointer GetGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr) => throw new NotImplementedException();
232
TargetPointer GetNonGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr) => throw new NotImplementedException();
235
ReadOnlySpan<
ITypeHandle
> GetInstantiation(
ITypeHandle
typeHandle) => throw new NotImplementedException();
236
public bool IsClassInited(
ITypeHandle
typeHandle) => throw new NotImplementedException();
237
public bool IsInitError(
ITypeHandle
typeHandle) => throw new NotImplementedException();
238
bool IsGenericTypeDefinition(
ITypeHandle
typeHandle) => throw new NotImplementedException();
239
bool ContainsGenericVariables(
ITypeHandle
typeHandle) => throw new NotImplementedException();
240
bool IsCollectible(
ITypeHandle
typeHandle) => throw new NotImplementedException();
242
bool HasTypeParam(
ITypeHandle
typeHandle) => throw new NotImplementedException();
247
CorElementType GetSignatureCorElementType(
ITypeHandle
typeHandle) => throw new NotImplementedException();
248
bool IsValueType(
ITypeHandle
typeHandle) => throw new NotImplementedException();
253
CorElementType GetInternalCorElementType(
ITypeHandle
typeHandle) => throw new NotImplementedException();
256
bool IsEnum(
ITypeHandle
typeHandle) => throw new NotImplementedException();
259
bool IsDelegate(
ITypeHandle
typeHandle) => throw new NotImplementedException();
262
bool IsArray(
ITypeHandle
typeHandle, out uint rank) => throw new NotImplementedException();
263
ITypeHandle
GetTypeParam(
ITypeHandle
typeHandle) => throw new NotImplementedException();
264
ITypeHandle
? GetConstructedType(
ITypeHandle
? typeHandle, CorElementType corElementType, int rank, ImmutableArray<
ITypeHandle
?> typeArguments, SignatureCallingConvention callConv = SignatureCallingConvention.Default) => throw new NotImplementedException();
265
ITypeHandle
GetPrimitiveType(CorElementType typeCode) => throw new NotImplementedException();
266
bool IsGenericVariable(
ITypeHandle
typeHandle, out TargetPointer module, out uint token, out uint index) => throw new NotImplementedException();
267
bool IsFunctionPointer(
ITypeHandle
typeHandle, out ReadOnlySpan<
ITypeHandle
> retAndArgTypes, out SignatureCallingConvention callConv) => throw new NotImplementedException();
268
bool IsPointer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
269
bool IsTypeDesc(
ITypeHandle
typeHandle) => throw new NotImplementedException();
279
ReadOnlySpan<
ITypeHandle
> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException();
352
ITypeHandle
? GetFieldDescApproxTypeHandle(TargetPointer fieldDescPointer) => throw new NotImplementedException();
354
TargetPointer GetFieldDescByName(
ITypeHandle
typeHandle, string fieldName) => throw new NotImplementedException();
Contracts\ISignature.cs (2)
12
ITypeHandle
? DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle,
ITypeHandle
? ctx) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (224)
Contracts\ByRefPointerOffsetsReporter.cs (4)
22
public IEnumerable<ulong> Find(
ITypeHandle
typeHandle)
55
ITypeHandle
? fieldTypeHandle = _rts.GetFieldDescApproxTypeHandle(fieldDesc);
68
private IEnumerable<ulong> FindCore(
ITypeHandle
typeHandle, ulong baseOffset, int depth)
82
ITypeHandle
? fieldTypeHandle = fieldType == CorElementType.ValueType
Contracts\CallingConvention\CallingConvention_1.cs (7)
60
ITypeHandle
owningTypeHandle = rts.GetTypeHandle(rts.GetMethodTable(methodDesc));
87
ITypeHandle
enclosingType = rts.GetTypeHandle(rts.GetMTOfEnclosingClass(fieldDesc));
114
private ModuleHandle GetModuleHandle(
ITypeHandle
typeHandle)
197
ITypeHandle
owningType = rts.GetTypeHandle(methodTablePtr);
287
ITypeHandle
? probe = typeInfo.ExactTypeHandle ?? typeInfo.GenericTypeDefinition;
458
ITypeHandle
? layoutType =
472
if (arg.TypeInfo.ExactTypeHandle is
ITypeHandle
typeHandle && rts.ContainsGCPointers(typeHandle))
Contracts\CallingConvention\CdacTypeHandle.cs (3)
10
using CdacITypeHandle = Microsoft.Diagnostics.DataContractReader.Contracts.
ITypeHandle
;
26
public CdacTypeHandle(
CdacITypeHandle
? typeHandle, Target target, CallingConvention_1 callingConvention)
45
private
CdacITypeHandle
? ExactTypeHandle => _typeInfo.ExactTypeHandle;
Contracts\CallingConvention\SignatureTypeInfo.cs (4)
13
ITypeHandle
? exactTypeHandle,
14
ITypeHandle
? genericTypeDefinition = null,
24
public
ITypeHandle
? ExactTypeHandle { get; }
25
public
ITypeHandle
? GenericTypeDefinition { get; }
Contracts\CallingConvention\SignatureTypeInfoProvider.cs (9)
47
ITypeHandle
? exactType = null;
50
ImmutableArray<
ITypeHandle
?> exactArguments = typeArguments
74
ITypeHandle
exactType = _rts.GetGenericMethodInstantiation(method)[index];
85
if (context.OwningType.ExactTypeHandle is
ITypeHandle
exactOwningType)
87
ITypeHandle
exactType = _rts.GetInstantiation(exactOwningType)[index];
156
internal SignatureTypeInfo FromExactType(
ITypeHandle
exactType)
158
ReadOnlySpan<
ITypeHandle
> exactArguments = _rts.GetInstantiation(exactType);
178
ITypeHandle
? exactType = elementType.ExactTypeHandle is null
191
ITypeHandle
? exactType = typeHandlePointer == TargetPointer.Null
Contracts\CodeVersions_1.cs (1)
339
ITypeHandle
typeHandle = rts.GetTypeHandle(mtAddr);
Contracts\ConditionalWeakTable_1.cs (1)
37
ITypeHandle
entriesTypeHandle = _target.Contracts.RuntimeTypeSystem.GetTypeHandle(entriesMT);
Contracts\Exception_1.cs (1)
67
ITypeHandle
stackTraceHandle = rtsContract.GetTypeHandle(mt);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
810
ITypeHandle
th = rts.GetTypeHandle(mtPtr);
Contracts\ExternalMemoryHandles_1.cs (2)
38
ITypeHandle
typeHandle = _rts.GetTypeHandle(handle.MethodTable);
61
ITypeHandle
typeHandle,
Contracts\ManagedTypeSource_1.cs (10)
17
private readonly Dictionary<string,
ITypeHandle
?> _typeHandleCache = new();
88
public
ITypeHandle
GetTypeHandle(string fullyQualifiedName)
90
if (!TryGetTypeHandle(fullyQualifiedName, out
ITypeHandle
? typeHandle))
96
public bool TryGetTypeHandle(string fullyQualifiedName, [NotNullWhen(true)] out
ITypeHandle
? typeHandle)
98
if (_typeHandleCache.TryGetValue(fullyQualifiedName, out
ITypeHandle
? cached))
139
ITypeHandle
ctx = rts.GetTypeHandle(enclosingMT);
174
ITypeHandle
ctx = rts.GetTypeHandle(enclosingMT);
193
if (!TryResolveType(fullyQualifiedName, out
ITypeHandle
? th, out _, out _))
209
if (!TryResolveType(managedFqName, out
ITypeHandle
? th, out MetadataReader? mdReader, out TypeDefinition typeDef))
254
private bool TryResolveType(string managedFqName, [NotNullWhen(true)] out
ITypeHandle
? th, [NotNullWhen(true)] out MetadataReader? mdReader, out TypeDefinition typeDef)
Contracts\Object_1.cs (2)
83
ITypeHandle
typeHandle = typeSystemContract.GetTypeHandle(mt);
240
ITypeHandle
typeHandle = typeSystemContract.GetTypeHandle(mt);
Contracts\RuntimeMutableTypeSystem_1.cs (1)
29
IEnumerable<TargetPointer> IRuntimeMutableTypeSystem.EnumerateAddedFieldDescs(
ITypeHandle
typeHandle, bool staticFields)
Contracts\RuntimeTypeSystem_1.cs (129)
35
private readonly Dictionary<TypeKey,
ITypeHandle
> _typeHandles = new();
97
public TypeKey(
ITypeHandle
? typeHandle, CorElementType elementType, int rank, ImmutableArray<
ITypeHandle
?> typeArgs, SignatureCallingConvention callConv = SignatureCallingConvention.Default)
105
public
ITypeHandle
? TypeHandle { get; }
108
public ImmutableArray<
ITypeHandle
?> TypeArgs { get; }
129
foreach (
ITypeHandle
? th in TypeArgs)
379
Instantiation = System.Array.Empty<
ITypeHandle
>();
383
Instantiation = new
ITypeHandle
[numGenericArgs];
396
public
ITypeHandle
[] Instantiation { get; }
464
public
ITypeHandle
GetTypeHandle(TargetPointer typeHandlePointer)
517
public TargetPointer GetModule(
ITypeHandle
typeHandle)
544
public TargetPointer GetCanonicalMethodTable(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : GetClassData(typeHandle).MethodTable;
545
public bool IsCanonicalMethodTable(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].IsCanonMT;
546
public TargetPointer GetParentMethodTable(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : _methodTables[typeHandle.Address].ParentMethodTable;
548
public uint GetBaseSize(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize;
550
public uint GetNumInstanceFieldBytes(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize - GetClassData(typeHandle).BaseSizePadding;
552
public uint GetComponentSize(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.ComponentSize;
554
private TargetPointer GetClassPointer(
ITypeHandle
typeHandle)
565
ITypeHandle
canonMTHandle = GetTypeHandle(canonMTPtr);
573
public bool TryGetSystemVAmd64EightByteClassification(
ITypeHandle
typeHandle, out SystemVAmd64EightByteClassification classification)
605
private Data.EEClass GetClassData(
ITypeHandle
typeHandle)
612
public bool IsFreeObjectMethodTable(
ITypeHandle
typeHandle) => FreeObjectMethodTablePointer == typeHandle.Address;
614
public bool IsObject(
ITypeHandle
typeHandle) => ObjectMethodTablePointer != TargetPointer.Null && ObjectMethodTablePointer == typeHandle.Address;
616
public bool IsString(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsString;
645
public bool ContainsGCPointers(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.ContainsGCPointers;
646
public bool IsByRefLike(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsByRefLike;
647
public bool IsInlineArray(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && GetClassData(typeHandle).IsInlineArray;
655
public bool TryGetHFAElementSize(
ITypeHandle
typeHandle, out int elementSize)
674
ITypeHandle
current = typeHandle;
706
ITypeHandle
? next = ((IRuntimeTypeSystem)this).GetFieldDescApproxTypeHandle(firstField);
721
private int GetVectorHFAElementSize(
ITypeHandle
typeHandle)
775
ReadOnlySpan<
ITypeHandle
> instantiation = ((IRuntimeTypeSystem)this).GetInstantiation(typeHandle);
796
public bool RequiresAlign8(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.RequiresAlign8;
800
public int GetClassAlignmentRequirement(
ITypeHandle
typeHandle)
832
public bool IsContinuationWithoutMetadata(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable()
838
IEnumerable<(uint Offset, uint Size)> IRuntimeTypeSystem.GetGCDescSeries(
ITypeHandle
typeHandle, uint numComponents)
912
public bool IsDynamicStatics(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsDynamicStatics;
913
public ushort GetNumInterfaces(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : _methodTables[typeHandle.Address].NumInterfaces;
915
public uint GetTypeDefToken(
ITypeHandle
typeHandle)
922
public ushort GetNumVtableSlots(
ITypeHandle
typeHandle)
930
public ushort GetNumMethods(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumMethods;
931
public uint GetTypeDefTypeAttributes(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : GetClassData(typeHandle).CorTypeAttr;
932
public ushort GetNumInstanceFields(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumInstanceFields;
933
public ushort GetNumStaticFields(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumStaticFields;
934
public ushort GetNumThreadStaticFields(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumThreadStaticFields;
935
public IEnumerable<TargetPointer> GetFieldDescList(
ITypeHandle
typeHandle)
949
private (TargetPointer ListStart, uint FieldDescSize, int TotalFields) GetFieldDescListLayout(
ITypeHandle
typeHandle)
958
ITypeHandle
parentHandle = GetTypeHandle(parentMT);
964
public bool IsTrackedReferenceWithFinalizer(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
965
private TargetPointer GetDynamicStaticsInfo(
ITypeHandle
typeHandle)
978
private Data.ThreadStaticsInfo GetThreadStaticsInfo(
ITypeHandle
typeHandle)
987
public TargetPointer GetGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr)
996
public TargetPointer GetNonGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr)
1005
public TargetPointer GetGCStaticsBasePointer(
ITypeHandle
typeHandle)
1014
public TargetPointer GetNonGCStaticsBasePointer(
ITypeHandle
typeHandle)
1023
public ReadOnlySpan<
ITypeHandle
> GetInstantiation(
ITypeHandle
typeHandle)
1035
public bool IsClassInited(
ITypeHandle
typeHandle)
1044
public bool IsInitError(
ITypeHandle
typeHandle)
1057
public
ITypeHandle
[] TypeHandles { get; }
1073
TypeHandles = new
ITypeHandle
[numberOfGenericArgs];
1081
public bool IsGenericTypeDefinition(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsGenericTypeDefinition;
1082
public bool ContainsGenericVariables(
ITypeHandle
typeHandle)
1097
_ = IsFunctionPointer(typeHandle, out ReadOnlySpan<
ITypeHandle
> signatureTypeArgs, out _);
1098
foreach (
ITypeHandle
sigTypeArg in signatureTypeArgs)
1110
public bool IsCollectible(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsCollectible;
1111
public bool HasTypeParam(
ITypeHandle
typeHandle)
1133
public CorElementType GetSignatureCorElementType(
ITypeHandle
typeHandle)
1164
public CorElementType GetInternalCorElementType(
ITypeHandle
typeHandle)
1177
public bool IsValueType(
ITypeHandle
typeHandle)
1193
public bool IsEnum(
ITypeHandle
typeHandle)
1205
public bool IsDelegate(
ITypeHandle
typeHandle)
1215
public bool IsArray(
ITypeHandle
typeHandle, out uint rank)
1240
public
ITypeHandle
GetTypeParam(
ITypeHandle
typeHandle)
1266
private
ITypeHandle
GetRootTypeParam(
ITypeHandle
typeHandle)
1268
ITypeHandle
current = typeHandle;
1276
private bool GenericInstantiationMatch(
ITypeHandle
genericType,
ITypeHandle
potentialMatch, ImmutableArray<
ITypeHandle
?> typeArguments)
1278
ReadOnlySpan<
ITypeHandle
> instantiation = GetInstantiation(potentialMatch);
1290
if (typeArguments[i] is not
ITypeHandle
typeArgument || instantiation[i].Address != typeArgument.Address)
1296
private bool ArrayPtrMatch(
ITypeHandle
elementType, CorElementType corElementType, int rank,
ITypeHandle
potentialMatch)
1306
private bool FnPtrMatch(
ITypeHandle
candidate, ImmutableArray<
ITypeHandle
?> retAndArgTypes, SignatureCallingConvention callConv)
1308
if (!IsFunctionPointer(candidate, out ReadOnlySpan<
ITypeHandle
> candidateRetAndArgs, out SignatureCallingConvention candidateCallConv))
1316
if (retAndArgTypes[i] is not
ITypeHandle
retOrArgType || candidateRetAndArgs[i].Address != retOrArgType.Address)
1322
private bool IsLoaded(
ITypeHandle
typeHandle)
1337
ITypeHandle
? IRuntimeTypeSystem.GetConstructedType(
ITypeHandle
? typeHandle, CorElementType corElementType, int rank, ImmutableArray<
ITypeHandle
?> typeArguments, SignatureCallingConvention callConv)
1341
foreach (
ITypeHandle
? typeArgument in typeArguments)
1346
if (_typeHandles.TryGetValue(new TypeKey(typeHandle, corElementType, rank, typeArguments, callConv), out
ITypeHandle
? existing) && existing is not null)
1358
ITypeHandle
potentialMatch;
1388
private TargetPointer ComputeLoaderModule(TargetPointer definitionModule, ImmutableArray<
ITypeHandle
?> inst)
1403
foreach (
ITypeHandle
? nullableArg in inst)
1405
ITypeHandle
arg = nullableArg!;
1459
ITypeHandle
IRuntimeTypeSystem.GetPrimitiveType(CorElementType typeCode)
1467
public bool IsGenericVariable(
ITypeHandle
typeHandle, out TargetPointer module, out uint token, out uint index)
1491
public bool IsFunctionPointer(
ITypeHandle
typeHandle, out ReadOnlySpan<
ITypeHandle
> retAndArgTypes, out SignatureCallingConvention callConv)
1510
public bool IsPointer(
ITypeHandle
typeHandle)
1520
public bool IsTypeDesc(
ITypeHandle
typeHandle) => typeHandle.IsTypeDesc();
1528
public TargetPointer GetLoaderModule(
ITypeHandle
typeHandle)
1558
public
ITypeHandle
[] TypeHandles { get; }
1567
TypeHandles = new
ITypeHandle
[numberOfRetAndArgTypes];
1639
public ReadOnlySpan<
ITypeHandle
> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle)
1921
private TargetPointer GetAddressOfSlot(
ITypeHandle
typeHandle, uint slotNum)
1982
ITypeHandle
mt = GetTypeHandle(mtAddr);
2041
private IEnumerable<MethodDescHandle> GetIntroducedMethods(
ITypeHandle
typeHandle)
2070
ITypeHandle
methodTable = GetTypeHandle(methodDesc.MethodTable);
2071
ITypeHandle
canonicalMethodTable = GetTypeHandle(GetCanonicalMethodTable(methodTable));
2087
IEnumerable<TargetPointer> IRuntimeTypeSystem.GetIntroducedMethodDescs(
ITypeHandle
typeHandle)
2092
ITypeHandle
canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle));
2101
TargetPointer IRuntimeTypeSystem.GetMethodDescForSlot(
ITypeHandle
typeHandle, ushort slot)
2107
ITypeHandle
canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle));
2126
private TargetPointer GetMethodDescForVtableSlot(
ITypeHandle
typeHandle, ushort slot)
2134
ITypeHandle
canonMT = GetTypeHandle(cannonMTPTr);
2147
ITypeHandle
lookupMT = GetTypeHandle(lookupMTPtr);
2183
TargetCodePointer IRuntimeTypeSystem.GetSlot(
ITypeHandle
typeHandle, uint slot)
2245
ITypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
2355
ITypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
2363
ITypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
2419
ITypeHandle
? IRuntimeTypeSystem.GetFieldDescApproxTypeHandle(TargetPointer fieldDescPointer)
2426
ITypeHandle
enclosingType = GetTypeHandle(enclosingMT);
2466
TargetPointer IRuntimeTypeSystem.GetFieldDescByName(
ITypeHandle
typeHandle, string fieldName)
2527
ITypeHandle
ctx = GetTypeHandle(enclosingMT);
Contracts\Signature\Signature_1.cs (9)
21
private readonly Dictionary<ModuleHandle, SignatureTypeProvider<
ITypeHandle
?>> _thProviders = [];
33
private SignatureTypeProvider<
ITypeHandle
?> GetTypeHandleProvider(ModuleHandle moduleHandle)
35
if (_thProviders.TryGetValue(moduleHandle, out SignatureTypeProvider<
ITypeHandle
?>? thProvider))
40
SignatureTypeProvider<
ITypeHandle
?> newProvider = new(_target, moduleHandle);
45
ITypeHandle
? ISignature.DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle,
ITypeHandle
? ctx)
47
SignatureTypeProvider<
ITypeHandle
?> provider = GetTypeHandleProvider(moduleHandle);
51
RuntimeSignatureDecoder<
ITypeHandle
?,
ITypeHandle
?> decoder = new(provider, _target, mdReader, ctx);
Contracts\Signature\SignatureTypeProvider.cs (32)
13
public class SignatureTypeProvider<T> : IRuntimeSignatureTypeProvider<
ITypeHandle
?, T>
28
public
ITypeHandle
? GetArrayType(
ITypeHandle
? elementType, ArrayShape shape)
31
public
ITypeHandle
? GetByReferenceType(
ITypeHandle
? elementType)
34
public
ITypeHandle
? GetFunctionPointerType(MethodSignature<
ITypeHandle
?> signature)
37
public
ITypeHandle
? GetGenericInstantiation(
ITypeHandle
? genericType, ImmutableArray<
ITypeHandle
?> typeArguments)
40
public
ITypeHandle
? GetGenericMethodParameter(T context, int index)
49
public
ITypeHandle
? GetGenericTypeParameter(T context, int index)
51
if (typeof(T) == typeof(
ITypeHandle
))
53
ITypeHandle
? typeContext = (
ITypeHandle
?)(object?)context;
61
ITypeHandle
declaringType = _runtimeTypeSystem.GetTypeHandle(_runtimeTypeSystem.GetMethodTable(methodContext));
66
public
ITypeHandle
? GetModifiedType(
ITypeHandle
? modifier,
ITypeHandle
? unmodifiedType, bool isRequired)
69
public
ITypeHandle
? GetPinnedType(
ITypeHandle
? elementType)
72
public
ITypeHandle
? GetPointerType(
ITypeHandle
? elementType)
75
public
ITypeHandle
? GetPrimitiveType(PrimitiveTypeCode typeCode)
78
public
ITypeHandle
? GetSZArrayType(
ITypeHandle
? elementType)
81
public
ITypeHandle
? GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind)
92
public
ITypeHandle
? GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind)
103
public
ITypeHandle
? GetTypeFromSpecification(MetadataReader reader, T context, TypeSpecificationHandle handle, byte rawTypeKind)
106
public
ITypeHandle
? GetInternalType(TargetPointer typeHandlePointer)
111
public
ITypeHandle
? GetInternalModifiedType(TargetPointer typeHandlePointer,
ITypeHandle
? unmodifiedType, bool isRequired)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
120
ITypeHandle
mtHandle = rtsContract.GetTypeHandle(stubDispatchFrame.RepresentativeMTPtr);
Contracts\StackWalk\GC\GCInteriorPointerResolver.cs (1)
79
ITypeHandle
handle = _rts.GetTypeHandle(mt);
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.NativeObjectWrapper.g.cs (1)
15
public static
ITypeHandle
TypeHandle(Target target)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TypeNameResolver.g.cs (2)
11
public static
ITypeHandle
GetTypeHandle(Target target, string[] names)
15
if (target.Contracts.ManagedTypeSource.TryGetTypeHandle(name, out
ITypeHandle
? th))
RuntimeTypeSystemHelpers\ExtensionMethods.cs (3)
10
public static bool IsTypeDesc(this
ITypeHandle
type)
15
public static bool IsMethodTable(this
ITypeHandle
type)
20
public static TargetPointer TypeDescAddress(this
ITypeHandle
type)
Microsoft.Diagnostics.DataContractReader.Legacy (210)
ClrDataExceptionState.cs (1)
155
ITypeHandle
typeHandle = _target.Contracts.RuntimeTypeSystem.GetTypeHandle(
ClrDataFrame.cs (10)
469
ITypeHandle
typeHandle = rts.GetTypeHandle(mtAddr);
503
ITypeHandle
? typeHandle;
660
private
ITypeHandle
? GetTypeHandleFromSignature(
670
SignatureDecoder<
ITypeHandle
?, MethodDescHandle> decoder = new(provider, mdReader, mdh);
675
MethodSignature<
ITypeHandle
?> methodSig = decoder.DecodeMethodSignature(ref sigReader);
685
ImmutableArray<
ITypeHandle
?> localTypes = decoder.DecodeLocalSignature(ref localSigReader);
837
ReadOnlySpan<
ITypeHandle
> methodInst = rts.GetGenericMethodInstantiation(mdh);
849
ITypeHandle
declaringType = rts.GetTypeHandle(mtAddr);
850
ReadOnlySpan<
ITypeHandle
> typeInst = rts.GetInstantiation(declaringType);
856
private static (uint Flags, int Size) ResolveGenericParam(IRuntimeTypeSystem rts,
ITypeHandle
resolvedType)
ClrDataMethodDefinition.cs (1)
97
ITypeHandle
mt = rts.GetTypeHandle(mtAddr);
ClrDataMethodInstance.cs (1)
118
ITypeHandle
mainMT = rts.GetTypeHandle(mtAddr);
ClrDataTypeDefinition.cs (2)
22
private readonly
ITypeHandle
? _typeHandle;
29
ITypeHandle
? typeHandle,
ClrDataTypeInstance.cs (4)
17
private readonly
ITypeHandle
_typeHandle;
20
internal
ITypeHandle
TypeHandle => _typeHandle;
23
public ClrDataTypeInstance(Target target,
ITypeHandle
typeHandle, IXCLRDataTypeInstance? legacyImpl, Lock apiLock)
208
ITypeHandle
? definitionType = null;
ClrDataValue.cs (16)
38
private readonly
ITypeHandle
? _typeHandle;
47
ITypeHandle
? typeHandle,
508
ITypeHandle
? typeHandle = null;
589
ITypeHandle
arrayType = rts.GetTypeHandle(_target.Contracts.Object.GetMethodTableAddress(_baseAddress));
649
ITypeHandle
arrayType = rts.GetTypeHandle(_target.Contracts.Object.GetMethodTableAddress(_baseAddress));
653
ITypeHandle
elementType = rts.GetTypeParam(arrayType);
813
(string fieldName, uint fieldToken, FieldDefinition fieldDefinition,
ITypeHandle
enclosingType) = GetFieldMetadata(entry.FieldDesc);
903
ITypeHandle
? typeHandle = !includeParents && fromType is ClrDataTypeInstance fromTypeInstance
912
List<
ITypeHandle
> types = [];
913
ITypeHandle
current = typeHandle;
939
private (string Name, uint Token, FieldDefinition Definition,
ITypeHandle
EnclosingType) GetFieldMetadata(TargetPointer fieldDesc)
942
ITypeHandle
enclosingType = rts.GetTypeHandle(rts.GetMTOfEnclosingClass(fieldDesc));
954
ITypeHandle
enclosingType,
959
ITypeHandle
? fieldType = rts.GetFieldDescApproxTypeHandle(fieldDesc);
1012
ITypeHandle
? typeHandle,
1070
private ulong GetTypeSize(
ITypeHandle
typeHandle)
Dbi\DacDbiImpl.cs (87)
316
ITypeHandle
typeHandle = rts.GetTypeHandle(methodTable);
2338
ITypeHandle
mt = rts.GetTypeHandle(mtAddr);
2506
ITypeHandle
typeHandle = rts.GetTypeHandle(mtPtr);
2744
ITypeHandle
th = rts.GetTypeHandle(new TargetPointer(thExact));
3090
ITypeHandle
th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
3118
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
3157
ITypeHandle
thExactHandle = rts.GetTypeHandle(thExact);
3159
ITypeHandle
thApprox = thExactHandle;
3211
ITypeHandle
? thExactHandle = vmThExact == 0 ? null : rts.GetTypeHandle(vmThExact);
3215
ITypeHandle
thApproxHandle = rts.GetTypeHandle(vmThApprox);
3246
ITypeHandle
? thExact,
3247
ITypeHandle
thApprox,
3319
ITypeHandle
enclosingTh = rts.GetTypeHandle(enclosingMT);
3420
ITypeHandle
th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
3450
ITypeHandle
th = rts.GetTypeHandle(mtAddr);
3575
ITypeHandle
canonTh = rts.GetTypeHandle(canonMtPtr);
3578
ITypeHandle
? th = walk.ReadLoadedTypeHandle();
3611
ITypeHandle
? th = null;
3655
private
ITypeHandle
BasicTypeInfoToTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_BasicTypeData* pData)
3658
ITypeHandle
th;
3684
private
ITypeHandle
GetClassOrValueTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_BasicTypeData* pData)
3695
private
ITypeHandle
GetExactArrayTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo)
3699
ITypeHandle
elementType = BasicTypeInfoToTypeHandle(rts, &pArgInfo->m_pList[0]);
3702
return rts.GetConstructedType(elementType, et, rank, ImmutableArray<
ITypeHandle
?>.Empty)
3706
private
ITypeHandle
GetExactPtrOrByRefTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo)
3710
ITypeHandle
referent = BasicTypeInfoToTypeHandle(rts, &pArgInfo->m_pList[0]);
3712
return rts.GetConstructedType(referent, et, 0, ImmutableArray<
ITypeHandle
?>.Empty)
3716
private
ITypeHandle
GetExactClassTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo)
3720
ITypeHandle
typeConstructor = LookupTypeDefOrRefInAssembly(vmAssembly, metadataToken);
3726
ImmutableArray<
ITypeHandle
?>.Builder builder = ImmutableArray.CreateBuilder<
ITypeHandle
?>(argCount);
3734
private
ITypeHandle
GetExactFnPtrTypeHandle(IRuntimeTypeSystem rts, ArgInfoList* pArgInfo)
3737
ImmutableArray<
ITypeHandle
?>.Builder builder = ImmutableArray.CreateBuilder<
ITypeHandle
?>(argCount);
3768
ITypeHandle
thRepMt = rts.GetTypeHandle(rts.GetMethodTable(pRepMethod));
3774
ITypeHandle
thSpecificClass = thRepMt;
3803
ITypeHandle
thFromThis = rts.GetTypeHandle(new TargetPointer(genericsToken));
3804
ITypeHandle
? thMatch = GetMethodTableMatchingParentClass(rts, thFromThis, thRepMt);
3827
ITypeHandle
thSpecMethodMt = rts.GetTypeHandle(specMethodMtPtr);
3828
ITypeHandle
? thMatchingParent = GetMethodTableMatchingParentClass(rts, thSpecificClass, thSpecMethodMt);
3829
ReadOnlySpan<
ITypeHandle
> classInst = thMatchingParent is null
3832
ReadOnlySpan<
ITypeHandle
> methodInst = rts.GetGenericMethodInstantiation(pSpecificMethod);
3839
ITypeHandle
thCanon = rts.GetTypeHandle(canonMtPtr);
4061
internal
ITypeHandle
LookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken)
4063
ITypeHandle
? th = TryLookupTypeDefOrRefInAssembly(vmAssembly, metadataToken);
4069
internal
ITypeHandle
? TryLookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken)
4105
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
4106
ReadOnlySpan<
ITypeHandle
> instantiation = rts.GetInstantiation(typeHandle);
4183
ITypeHandle
typeHandle = rts.GetPrimitiveType((CorElementType)simpleType);
4235
ITypeHandle
typeHandle = rts.GetTypeHandle(parentMT);
4425
ITypeHandle
th = rts.GetTypeHandle(info.TypeHandle);
4464
ITypeHandle
th = rts.GetTypeHandle(mtAddr);
4504
ITypeHandle
th = rts.GetTypeHandle(mt);
4567
ITypeHandle
? th = null;
5481
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer(id));
5493
ITypeHandle
parentHandle = rts.GetTypeHandle(parentMT);
5534
ITypeHandle
enclosingTypeHandle = rts.GetTypeHandle(enclosingMT);
5549
ITypeHandle
? fieldTypeHandle = signature.DecodeFieldSignature(fieldDef.Signature, enclosingModuleHandle, enclosingTypeHandle);
5567
ITypeHandle
mtHandle = (signatureType == CorElementType.Ptr || signatureType == CorElementType.FnPtr)
5633
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer((ulong)id));
5642
ITypeHandle
parentHandle = rts.GetTypeHandle(parentMT);
5690
ITypeHandle
arrayOrStringTypeHandle = rts.GetTypeHandle(new TargetPointer(id));
5695
ITypeHandle
charTypeHandle = rts.GetPrimitiveType(CorElementType.Char);
5711
ITypeHandle
componentTypeHandle = rts.GetTypeParam(arrayOrStringTypeHandle);
6229
ITypeHandle
typeHandle = rts.GetTypeHandle(mtPtr);
6295
ITypeHandle
typeHandle = rts.GetTypeHandle(mt);
6587
private void FillExpandedTypeDataWithCanonFallback(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle,
ITypeHandle
thCanon, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
6601
private static bool HasSameTypeDefAs(IRuntimeTypeSystem rts,
ITypeHandle
a,
ITypeHandle
b)
6615
private static
ITypeHandle
? GetMethodTableMatchingParentClass(IRuntimeTypeSystem rts,
ITypeHandle
start,
ITypeHandle
parent)
6617
ITypeHandle
current = start;
6633
private void TypeHandleToExpandedTypeInfoImpl(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
6680
private static CorElementType GetElementType(IRuntimeTypeSystem rts,
ITypeHandle
? typeHandle)
6696
private static
ITypeHandle
UpCastTypeIfNeeded(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle)
6709
private void FillArrayTypeInfo(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
6714
ITypeHandle
elemTypeHandle = rts.GetTypeParam(typeHandle);
6719
private void FillPtrTypeInfo(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
6727
ITypeHandle
paramTypeHandle = rts.GetTypeParam(typeHandle);
6733
private void FillClassTypeInfo(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
6741
ReadOnlySpan<
ITypeHandle
> instantiation = rts.GetInstantiation(typeHandle);
6756
private void FillFnPtrTypeInfo(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
6771
internal void FillBasicTypeInfo(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle, out DebuggerIPCE_BasicTypeData typeInfo)
6797
ReadOnlySpan<
ITypeHandle
> instantiation = rts.GetInstantiation(typeHandle);
Dbi\Helpers\HeapWalk.cs (1)
116
ITypeHandle
handle = _rts.GetTypeHandle(mt);
Dbi\TypeDataWalk.cs (23)
22
private readonly
ITypeHandle
_canonTh;
26
public TypeDataWalk(Target target, IRuntimeTypeSystem rts,
ITypeHandle
canonTh, DebuggerIPCE_TypeArgData* pData, uint nData)
58
public
ITypeHandle
? ReadLoadedTypeHandle()
92
private
ITypeHandle
? ReadLoadedTypeArg()
117
private
ITypeHandle
? ReadLoadedInstantiation(ulong vmAssembly, uint metadataToken, uint nTypeArgs)
119
ITypeHandle
? typeDef = TryLookupTypeDefOrRefInAssembly(vmAssembly, metadataToken);
126
ImmutableArray<
ITypeHandle
?>.Builder builder = ImmutableArray.CreateBuilder<
ITypeHandle
?>((int)nTypeArgs);
129
ITypeHandle
? th = ReadLoadedTypeArg();
138
private
ITypeHandle
? ArrayTypeArg(DebuggerIPCE_TypeArgData* pInfo)
140
ITypeHandle
? elem = ReadLoadedTypeArg();
145
return _rts.GetConstructedType(elem, et, rank, ImmutableArray<
ITypeHandle
?>.Empty);
148
private
ITypeHandle
? PtrOrByRefTypeArg(DebuggerIPCE_TypeArgData* pInfo)
150
ITypeHandle
? referent = ReadLoadedTypeArg();
154
return _rts.GetConstructedType(referent, et, 0, ImmutableArray<
ITypeHandle
?>.Empty);
160
private
ITypeHandle
? ClassTypeArg(DebuggerIPCE_TypeArgData* pInfo)
167
ITypeHandle
? typeDef = TryLookupTypeDefOrRefInAssembly(vmAssembly, metadataToken);
181
private
ITypeHandle
? FnPtrTypeArg(DebuggerIPCE_TypeArgData* pInfo)
184
ImmutableArray<
ITypeHandle
?>.Builder builder = ImmutableArray.CreateBuilder<
ITypeHandle
?>((int)numTypeArgs);
187
ITypeHandle
? th = ReadLoadedTypeArg();
197
private
ITypeHandle
ObjRefOrPrimitiveTypeArg(DebuggerIPCE_TypeArgData* pInfo, CorElementType elementType)
209
private
ITypeHandle
? TryLookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken)
SigFormat.cs (10)
21
ReadOnlySpan<
ITypeHandle
> typeInstantiation,
22
ReadOnlySpan<
ITypeHandle
> methodInstantiation,
39
ReadOnlySpan<
ITypeHandle
> typeInstantiation,
40
ReadOnlySpan<
ITypeHandle
> methodInstantiation,
98
ReadOnlySpan<
ITypeHandle
> typeInstantiation,
99
ReadOnlySpan<
ITypeHandle
> methodInstantiation,
160
ITypeHandle
th = runtimeTypeSystem.GetTypeHandle(typeHandlePointer);
311
private static void AddType(Target target, StringBuilder stringBuilder,
ITypeHandle
? typeHandle)
364
ReadOnlySpan<
ITypeHandle
> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle);
420
runtimeTypeSystem.IsFunctionPointer(typeHandle, out ReadOnlySpan<
ITypeHandle
> retAndArgTypes, out SignatureCallingConvention callConv);
SOSDacImpl.cs (25)
1132
ITypeHandle
ctx = rtsContract.GetTypeHandle(enclosingMT);
1138
ITypeHandle
? foundTypeHandle = rtsContract.GetFieldDescApproxTypeHandle(fieldDescTargetPtr);
1157
ITypeHandle
paramTypeHandle = rtsContract.GetTypeParam(foundTypeHandle);
2419
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTableAddr);
2907
ITypeHandle
methodTable = contract.GetTypeHandle(mt.ToTargetPointer(_target));
2981
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(mtAddress);
3022
ITypeHandle
methodTableHandle = contract.GetTypeHandle(eeClassReallyCanonMT.ToTargetPointer(_target));
3053
ITypeHandle
methodTableHandle = typeSystemContract.GetTypeHandle(mt.ToTargetPointer(_target, overrideCheck: true));
3126
ITypeHandle
methodTableHandle = rts.GetTypeHandle(methodTable); // validate MT
3374
ITypeHandle
typeHandle = rts.GetTypeHandle(mt);
3447
ITypeHandle
handle = runtimeTypeSystemContract.GetTypeHandle(mt);
3489
ITypeHandle
element = runtimeTypeSystemContract.GetTypeParam(handle);
5590
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(mt.ToTargetPointer(_target));
5751
ITypeHandle
typeHandle = rts.GetTypeHandle(mt);
5813
ITypeHandle
typeHandle = rts.GetTypeHandle(ptr);
6180
ITypeHandle
methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
6473
ITypeHandle
mtHandle = rtsContract.GetTypeHandle(mt);
6927
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
6969
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTablePtr);
7023
ITypeHandle
methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
7058
private readonly
ITypeHandle
_methodTable;
7065
public SOSMethodEnum(Target target,
ITypeHandle
methodTable, ISOSMethodEnum? legacyMethodEnum, Lock apiLock)
7102
ITypeHandle
typeHandle = _rts.GetTypeHandle(mtAddr);
7126
ITypeHandle
typeHandle = _rts.GetTypeHandle(mtAddr);
7250
ITypeHandle
methodTableHandle = rts.GetTypeHandle(mt.ToTargetPointer(_target));
SOSDacImpl.IXCLRDataProcess.cs (6)
858
private IEnumerable<
ITypeHandle
> IterateTypeParams(Contracts.ModuleHandle moduleHandle)
905
ITypeHandle
mainMT = _rts.GetTypeHandle(mtAddr);
919
ITypeHandle
methodTypeHandle = _rts.GetTypeHandle(_rts.GetMethodTable(methodDesc));
942
foreach (
ITypeHandle
typeParam in IterateTypeParams(moduleHandle))
956
ITypeHandle
cmtHandle = _rts.GetTypeHandle(cmt);
985
ITypeHandle
mt = rts.GetTypeHandle(mtAddr);
TypeHandleExtensions.cs (4)
15
public static string GetName(this
ITypeHandle
typeHandle, Target target)
22
private static void AppendName(
ITypeHandle
typeHandle, Target target, StringBuilder result)
55
ReadOnlySpan<
ITypeHandle
> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle);
62
private static void AppendTypeDescName(
ITypeHandle
typeHandle, Target target, StringBuilder result)
TypeNameBuilder.cs (19)
65
public static void AppendMethodImpl(Target target, StringBuilder stringBuilder, Contracts.MethodDescHandle method, ReadOnlySpan<
ITypeHandle
> typeInstantiation, TypeNameFormat format)
70
ITypeHandle
? th = null;
125
ITypeHandle
methodType = th ?? throw new InvalidOperationException("Metadata-backed method has no declaring type.");
133
ReadOnlySpan<
ITypeHandle
> genericMethodInstantiation = runtimeTypeSystem.GetGenericMethodInstantiation(method);
146
ReadOnlySpan<
ITypeHandle
> typeInstantiationSigFormat = default;
162
public static
ITypeHandle
GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem,
ITypeHandle
possiblyDerivedType, MethodDescHandle method)
164
ITypeHandle
approxOwner = runtimeTypeSystem.GetTypeHandle(runtimeTypeSystem.GetMethodTable(method));
188
public static void AppendType(Target target, StringBuilder stringBuilder,
ITypeHandle
? typeHandle, TypeNameFormat format)
193
public static void AppendType(Target target, StringBuilder stringBuilder,
ITypeHandle
? typeHandle, ReadOnlySpan<
ITypeHandle
> typeInstantiation, TypeNameFormat format)
199
private static void AppendTypeCore(ref TypeNameBuilder tnb,
ITypeHandle
? typeHandle, ReadOnlySpan<
ITypeHandle
> instantiation, TypeNameFormat format)
245
else if (typeSystemContract.IsFunctionPointer(typeHandle, out ReadOnlySpan<
ITypeHandle
> retAndArgTypes, out SignatureCallingConvention callConv))
303
ReadOnlySpan<
ITypeHandle
> instantiationSpan = typeSystemContract.GetInstantiation(typeHandle);
333
internal static void AppendInst(Target target, StringBuilder stringBuilder, ReadOnlySpan<
ITypeHandle
> inst, TypeNameFormat format)
339
private static void AppendInst(ref TypeNameBuilder tnb, ReadOnlySpan<
ITypeHandle
> inst, TypeNameFormat format)
342
foreach (
ITypeHandle
arg in inst)
510
private static void AppendContinuationName(ref TypeNameBuilder tnb, IRuntimeTypeSystem typeSystemContract,
ITypeHandle
typeHandle)