1 implementation of ITypeHandle
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\RuntimeTypeSystem\TypeHandleImplementations.cs (1)
10
internal sealed class TargetTypeHandle :
ITypeHandle
521 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)
153
ITypeHandle
GetTypeHandle(TargetPointer address) => throw new NotImplementedException();
154
TargetPointer GetModule(
ITypeHandle
typeHandle) => throw new NotImplementedException();
155
TargetPointer GetLoaderModule(
ITypeHandle
typeHandle) => throw new NotImplementedException();
159
TargetPointer GetCanonicalMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
161
bool IsCanonicalMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
162
TargetPointer GetParentMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
164
TargetPointer GetMethodDescForSlot(
ITypeHandle
methodTable, ushort slot) => throw new NotImplementedException();
165
IEnumerable<TargetPointer> GetIntroducedMethodDescs(
ITypeHandle
methodTable) => throw new NotImplementedException();
166
TargetCodePointer GetSlot(
ITypeHandle
typeHandle, uint slot) => throw new NotImplementedException();
168
uint GetBaseSize(
ITypeHandle
typeHandle) => throw new NotImplementedException();
169
uint GetNumInstanceFieldBytes(
ITypeHandle
typeHandle) => throw new NotImplementedException();
171
uint GetComponentSize(
ITypeHandle
typeHandle) => throw new NotImplementedException();
174
bool IsFreeObjectMethodTable(
ITypeHandle
typeHandle) => throw new NotImplementedException();
176
bool IsObject(
ITypeHandle
typeHandle) => throw new NotImplementedException();
177
bool IsString(
ITypeHandle
typeHandle) => throw new NotImplementedException();
184
bool ContainsGCPointers(
ITypeHandle
typeHandle) => throw new NotImplementedException();
186
bool IsByRefLike(
ITypeHandle
typeHandle) => throw new NotImplementedException();
190
bool IsInlineArray(
ITypeHandle
typeHandle) => throw new NotImplementedException();
195
bool TryGetHFAElementSize(
ITypeHandle
typeHandle, out int elementSize) => throw new NotImplementedException();
197
bool RequiresAlign8(
ITypeHandle
typeHandle) => throw new NotImplementedException();
200
int GetClassAlignmentRequirement(
ITypeHandle
typeHandle) => throw new NotImplementedException();
205
bool TryGetSystemVAmd64EightByteClassification(
ITypeHandle
typeHandle, out SystemVAmd64EightByteClassification classification) => throw new NotImplementedException();
207
bool IsContinuationWithoutMetadata(
ITypeHandle
typeHandle) => throw new NotImplementedException();
213
IEnumerable<(uint Offset, uint Size)> GetGCDescSeries(
ITypeHandle
typeHandle, uint numComponents = 0) => throw new NotImplementedException();
214
bool IsDynamicStatics(
ITypeHandle
typeHandle) => throw new NotImplementedException();
215
ushort GetNumInterfaces(
ITypeHandle
typeHandle) => throw new NotImplementedException();
218
uint GetTypeDefToken(
ITypeHandle
typeHandle) => throw new NotImplementedException();
219
ushort GetNumVtableSlots(
ITypeHandle
typeHandle) => throw new NotImplementedException();
220
ushort GetNumMethods(
ITypeHandle
typeHandle) => throw new NotImplementedException();
223
uint GetTypeDefTypeAttributes(
ITypeHandle
typeHandle) => throw new NotImplementedException();
224
ushort GetNumInstanceFields(
ITypeHandle
typeHandle) => throw new NotImplementedException();
225
ushort GetNumStaticFields(
ITypeHandle
typeHandle) => throw new NotImplementedException();
226
ushort GetNumThreadStaticFields(
ITypeHandle
typeHandle) => throw new NotImplementedException();
227
IEnumerable<TargetPointer> GetFieldDescList(
ITypeHandle
typeHandle) => throw new NotImplementedException();
229
bool IsTrackedReferenceWithFinalizer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
230
TargetPointer GetGCStaticsBasePointer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
231
TargetPointer GetNonGCStaticsBasePointer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
232
TargetPointer GetGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr) => throw new NotImplementedException();
233
TargetPointer GetNonGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr) => throw new NotImplementedException();
236
ReadOnlySpan<
ITypeHandle
> GetInstantiation(
ITypeHandle
typeHandle) => throw new NotImplementedException();
237
public bool IsClassInited(
ITypeHandle
typeHandle) => throw new NotImplementedException();
238
public bool IsInitError(
ITypeHandle
typeHandle) => throw new NotImplementedException();
239
bool IsGenericTypeDefinition(
ITypeHandle
typeHandle) => throw new NotImplementedException();
240
bool ContainsGenericVariables(
ITypeHandle
typeHandle) => throw new NotImplementedException();
241
bool IsCollectible(
ITypeHandle
typeHandle) => throw new NotImplementedException();
243
bool HasTypeParam(
ITypeHandle
typeHandle) => throw new NotImplementedException();
248
CorElementType GetSignatureCorElementType(
ITypeHandle
typeHandle) => throw new NotImplementedException();
249
bool IsValueType(
ITypeHandle
typeHandle) => throw new NotImplementedException();
254
CorElementType GetInternalCorElementType(
ITypeHandle
typeHandle) => throw new NotImplementedException();
257
bool IsEnum(
ITypeHandle
typeHandle) => throw new NotImplementedException();
260
bool IsDelegate(
ITypeHandle
typeHandle) => throw new NotImplementedException();
263
bool IsArray(
ITypeHandle
typeHandle, out uint rank) => throw new NotImplementedException();
264
ITypeHandle
GetTypeParam(
ITypeHandle
typeHandle) => throw new NotImplementedException();
265
ITypeHandle
? GetConstructedType(
ITypeHandle
? typeHandle, CorElementType corElementType, int rank, ImmutableArray<
ITypeHandle
?> typeArguments, SignatureCallingConvention callConv = SignatureCallingConvention.Default) => throw new NotImplementedException();
266
ITypeHandle
GetPrimitiveType(CorElementType typeCode) => throw new NotImplementedException();
267
bool IsGenericVariable(
ITypeHandle
typeHandle, out TargetPointer module, out uint token, out uint index) => throw new NotImplementedException();
268
bool IsFunctionPointer(
ITypeHandle
typeHandle, out ReadOnlySpan<
ITypeHandle
> retAndArgTypes, out SignatureCallingConvention callConv) => throw new NotImplementedException();
269
bool IsPointer(
ITypeHandle
typeHandle) => throw new NotImplementedException();
270
bool IsTypeDesc(
ITypeHandle
typeHandle) => throw new NotImplementedException();
280
ReadOnlySpan<
ITypeHandle
> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException();
359
ITypeHandle
? GetFieldDescApproxTypeHandle(TargetPointer fieldDescPointer) => throw new NotImplementedException();
361
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 (230)
Contracts\ByRefPointerOffsetsReporter.cs (4)
24
public IEnumerable<ulong> Find(
ITypeHandle
typeHandle)
57
ITypeHandle
? fieldTypeHandle = _rts.GetFieldDescApproxTypeHandle(fieldDesc);
73
private IEnumerable<ulong> FindCore(
ITypeHandle
typeHandle, ulong baseOffset, int depth)
92
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 =
468
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)
345
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)
826
ITypeHandle
th = rts.GetTypeHandle(mtPtr);
Contracts\ExternalMemoryHandles_1.cs (2)
38
ITypeHandle
typeHandle = _rts.GetTypeHandle(handle.TypeHandle);
62
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 (133)
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)
381
Instantiation = System.Array.Empty<
ITypeHandle
>();
385
Instantiation = new
ITypeHandle
[numGenericArgs];
398
public
ITypeHandle
[] Instantiation { get; }
466
public
ITypeHandle
GetTypeHandle(TargetPointer typeHandlePointer)
519
public TargetPointer GetModule(
ITypeHandle
typeHandle)
546
public TargetPointer GetCanonicalMethodTable(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : GetClassData(typeHandle).MethodTable;
547
public bool IsCanonicalMethodTable(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].IsCanonMT;
548
public TargetPointer GetParentMethodTable(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : _methodTables[typeHandle.Address].ParentMethodTable;
550
public uint GetBaseSize(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize;
552
public uint GetNumInstanceFieldBytes(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize - GetClassData(typeHandle).BaseSizePadding;
554
public uint GetComponentSize(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.ComponentSize;
556
private TargetPointer GetClassPointer(
ITypeHandle
typeHandle)
567
ITypeHandle
canonMTHandle = GetTypeHandle(canonMTPtr);
575
public bool TryGetSystemVAmd64EightByteClassification(
ITypeHandle
typeHandle, out SystemVAmd64EightByteClassification classification)
607
private Data.EEClass GetClassData(
ITypeHandle
typeHandle)
614
public bool IsFreeObjectMethodTable(
ITypeHandle
typeHandle) => FreeObjectMethodTablePointer == typeHandle.Address;
616
public bool IsObject(
ITypeHandle
typeHandle) => ObjectMethodTablePointer != TargetPointer.Null && ObjectMethodTablePointer == typeHandle.Address;
618
public bool IsString(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsString;
647
public bool ContainsGCPointers(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.ContainsGCPointers;
648
public bool IsByRefLike(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsByRefLike;
649
public bool IsInlineArray(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && GetClassData(typeHandle).IsInlineArray;
657
public bool TryGetHFAElementSize(
ITypeHandle
typeHandle, out int elementSize)
676
ITypeHandle
current = typeHandle;
708
ITypeHandle
? next = ((IRuntimeTypeSystem)this).GetFieldDescApproxTypeHandle(firstField);
723
private int GetVectorHFAElementSize(
ITypeHandle
typeHandle)
777
ReadOnlySpan<
ITypeHandle
> instantiation = ((IRuntimeTypeSystem)this).GetInstantiation(typeHandle);
798
public bool RequiresAlign8(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.RequiresAlign8;
802
public int GetClassAlignmentRequirement(
ITypeHandle
typeHandle)
834
public bool IsContinuationWithoutMetadata(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable()
840
IEnumerable<(uint Offset, uint Size)> IRuntimeTypeSystem.GetGCDescSeries(
ITypeHandle
typeHandle, uint numComponents)
914
public bool IsDynamicStatics(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsDynamicStatics;
915
public ushort GetNumInterfaces(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : _methodTables[typeHandle.Address].NumInterfaces;
917
public uint GetTypeDefToken(
ITypeHandle
typeHandle)
924
public ushort GetNumVtableSlots(
ITypeHandle
typeHandle)
932
public ushort GetNumMethods(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumMethods;
933
public uint GetTypeDefTypeAttributes(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : GetClassData(typeHandle).CorTypeAttr;
934
public ushort GetNumInstanceFields(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumInstanceFields;
935
public ushort GetNumStaticFields(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumStaticFields;
936
public ushort GetNumThreadStaticFields(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumThreadStaticFields;
937
public IEnumerable<TargetPointer> GetFieldDescList(
ITypeHandle
typeHandle)
951
private (TargetPointer ListStart, uint FieldDescSize, int TotalFields) GetFieldDescListLayout(
ITypeHandle
typeHandle)
960
ITypeHandle
parentHandle = GetTypeHandle(parentMT);
966
public bool IsTrackedReferenceWithFinalizer(
ITypeHandle
typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
967
private TargetPointer GetDynamicStaticsInfo(
ITypeHandle
typeHandle)
980
private Data.ThreadStaticsInfo GetThreadStaticsInfo(
ITypeHandle
typeHandle)
989
public TargetPointer GetGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr)
998
public TargetPointer GetNonGCThreadStaticsBasePointer(
ITypeHandle
typeHandle, TargetPointer threadPtr)
1007
public TargetPointer GetGCStaticsBasePointer(
ITypeHandle
typeHandle)
1016
public TargetPointer GetNonGCStaticsBasePointer(
ITypeHandle
typeHandle)
1025
public ReadOnlySpan<
ITypeHandle
> GetInstantiation(
ITypeHandle
typeHandle)
1037
public bool IsClassInited(
ITypeHandle
typeHandle)
1046
public bool IsInitError(
ITypeHandle
typeHandle)
1059
public
ITypeHandle
[] TypeHandles { get; }
1075
TypeHandles = new
ITypeHandle
[numberOfGenericArgs];
1083
public bool IsGenericTypeDefinition(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsGenericTypeDefinition;
1084
public bool ContainsGenericVariables(
ITypeHandle
typeHandle)
1099
_ = IsFunctionPointer(typeHandle, out ReadOnlySpan<
ITypeHandle
> signatureTypeArgs, out _);
1100
foreach (
ITypeHandle
sigTypeArg in signatureTypeArgs)
1112
public bool IsCollectible(
ITypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsCollectible;
1113
public bool HasTypeParam(
ITypeHandle
typeHandle)
1135
public CorElementType GetSignatureCorElementType(
ITypeHandle
typeHandle)
1166
public CorElementType GetInternalCorElementType(
ITypeHandle
typeHandle)
1179
public bool IsValueType(
ITypeHandle
typeHandle)
1195
public bool IsEnum(
ITypeHandle
typeHandle)
1207
public bool IsDelegate(
ITypeHandle
typeHandle)
1217
public bool IsArray(
ITypeHandle
typeHandle, out uint rank)
1242
public
ITypeHandle
GetTypeParam(
ITypeHandle
typeHandle)
1268
private
ITypeHandle
GetRootTypeParam(
ITypeHandle
typeHandle)
1270
ITypeHandle
current = typeHandle;
1278
private bool GenericInstantiationMatch(
ITypeHandle
genericType,
ITypeHandle
potentialMatch, ImmutableArray<
ITypeHandle
?> typeArguments)
1280
ReadOnlySpan<
ITypeHandle
> instantiation = GetInstantiation(potentialMatch);
1292
if (typeArguments[i] is not
ITypeHandle
typeArgument || instantiation[i].Address != typeArgument.Address)
1298
private bool ArrayPtrMatch(
ITypeHandle
elementType, CorElementType corElementType, int rank,
ITypeHandle
potentialMatch)
1308
private bool FnPtrMatch(
ITypeHandle
candidate, ImmutableArray<
ITypeHandle
?> retAndArgTypes, SignatureCallingConvention callConv)
1310
if (!IsFunctionPointer(candidate, out ReadOnlySpan<
ITypeHandle
> candidateRetAndArgs, out SignatureCallingConvention candidateCallConv))
1318
if (retAndArgTypes[i] is not
ITypeHandle
retOrArgType || candidateRetAndArgs[i].Address != retOrArgType.Address)
1324
private bool IsLoaded(
ITypeHandle
typeHandle)
1339
private uint GetConstructedTypeHash(
ITypeHandle
? typeHandle, CorElementType elementType, ImmutableArray<
ITypeHandle
?> typeArguments, SignatureCallingConvention callConv)
1347
foreach (
ITypeHandle
? argument in typeArguments)
1358
foreach (
ITypeHandle
? argument in typeArguments)
1375
ITypeHandle
? IRuntimeTypeSystem.GetConstructedType(
ITypeHandle
? typeHandle, CorElementType corElementType, int rank, ImmutableArray<
ITypeHandle
?> typeArguments, SignatureCallingConvention callConv)
1379
foreach (
ITypeHandle
? typeArgument in typeArguments)
1384
if (_typeHandles.TryGetValue(new TypeKey(typeHandle, corElementType, rank, typeArguments, callConv), out
ITypeHandle
? existing) && existing is not null)
1396
ITypeHandle
potentialMatch;
1427
private TargetPointer ComputeLoaderModule(TargetPointer definitionModule, ImmutableArray<
ITypeHandle
?> inst)
1442
foreach (
ITypeHandle
? nullableArg in inst)
1444
ITypeHandle
arg = nullableArg!;
1498
ITypeHandle
IRuntimeTypeSystem.GetPrimitiveType(CorElementType typeCode)
1506
public bool IsGenericVariable(
ITypeHandle
typeHandle, out TargetPointer module, out uint token, out uint index)
1530
public bool IsFunctionPointer(
ITypeHandle
typeHandle, out ReadOnlySpan<
ITypeHandle
> retAndArgTypes, out SignatureCallingConvention callConv)
1549
public bool IsPointer(
ITypeHandle
typeHandle)
1559
public bool IsTypeDesc(
ITypeHandle
typeHandle) => typeHandle.IsTypeDesc();
1567
public TargetPointer GetLoaderModule(
ITypeHandle
typeHandle)
1597
public
ITypeHandle
[] TypeHandles { get; }
1606
TypeHandles = new
ITypeHandle
[numberOfRetAndArgTypes];
1678
public ReadOnlySpan<
ITypeHandle
> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle)
1994
private TargetPointer GetAddressOfSlot(
ITypeHandle
typeHandle, uint slotNum)
2055
ITypeHandle
mt = GetTypeHandle(mtAddr);
2115
private IEnumerable<MethodDescHandle> GetIntroducedMethods(
ITypeHandle
typeHandle)
2144
ITypeHandle
methodTable = GetTypeHandle(methodDesc.MethodTable);
2145
ITypeHandle
canonicalMethodTable = GetTypeHandle(GetCanonicalMethodTable(methodTable));
2168
IEnumerable<TargetPointer> IRuntimeTypeSystem.GetIntroducedMethodDescs(
ITypeHandle
typeHandle)
2173
ITypeHandle
canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle));
2182
TargetPointer IRuntimeTypeSystem.GetMethodDescForSlot(
ITypeHandle
typeHandle, ushort slot)
2188
ITypeHandle
canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle));
2207
private TargetPointer GetMethodDescForVtableSlot(
ITypeHandle
typeHandle, ushort slot)
2215
ITypeHandle
canonMT = GetTypeHandle(cannonMTPTr);
2228
ITypeHandle
lookupMT = GetTypeHandle(lookupMTPtr);
2247
TargetCodePointer IRuntimeTypeSystem.GetSlot(
ITypeHandle
typeHandle, uint slot)
2309
ITypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
2421
ITypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
2429
ITypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
2485
ITypeHandle
? IRuntimeTypeSystem.GetFieldDescApproxTypeHandle(TargetPointer fieldDescPointer)
2492
ITypeHandle
enclosingType = GetTypeHandle(enclosingMT);
2532
TargetPointer IRuntimeTypeSystem.GetFieldDescByName(
ITypeHandle
typeHandle, string fieldName)
2593
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)
311
ITypeHandle
mtHandle = rtsContract.GetTypeHandle(stubDispatchFrame.RepresentativeMTPtr);
Contracts\StackWalk\FrameHandling\MethodGCRefMapLookup.cs (2)
199
ITypeHandle
owner = _rts.GetTypeHandle(_rts.GetMethodTable(method));
200
ITypeHandle
implementationOwner = _rts.GetTypeHandle(_rts.GetMethodTable(implementation));
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 (219)
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)
315
ITypeHandle
typeHandle = rts.GetTypeHandle(methodTable);
2363
ITypeHandle
mt = rts.GetTypeHandle(mtAddr);
2531
ITypeHandle
typeHandle = rts.GetTypeHandle(mtPtr);
2787
ITypeHandle
th = rts.GetTypeHandle(new TargetPointer(thExact));
3133
ITypeHandle
th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
3161
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
3200
ITypeHandle
thExactHandle = rts.GetTypeHandle(thExact);
3202
ITypeHandle
thApprox = thExactHandle;
3254
ITypeHandle
? thExactHandle = vmThExact == 0 ? null : rts.GetTypeHandle(vmThExact);
3258
ITypeHandle
thApproxHandle = rts.GetTypeHandle(vmThApprox);
3289
ITypeHandle
? thExact,
3290
ITypeHandle
thApprox,
3362
ITypeHandle
enclosingTh = rts.GetTypeHandle(enclosingMT);
3463
ITypeHandle
th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
3493
ITypeHandle
th = rts.GetTypeHandle(mtAddr);
3618
ITypeHandle
canonTh = rts.GetTypeHandle(canonMtPtr);
3621
ITypeHandle
? th = walk.ReadLoadedTypeHandle();
3654
ITypeHandle
? th = null;
3698
private
ITypeHandle
BasicTypeInfoToTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_BasicTypeData* pData)
3701
ITypeHandle
th;
3727
private
ITypeHandle
GetClassOrValueTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_BasicTypeData* pData)
3738
private
ITypeHandle
GetExactArrayTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo)
3742
ITypeHandle
elementType = BasicTypeInfoToTypeHandle(rts, &pArgInfo->m_pList[0]);
3745
return rts.GetConstructedType(elementType, et, rank, ImmutableArray<
ITypeHandle
?>.Empty)
3749
private
ITypeHandle
GetExactPtrOrByRefTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo)
3753
ITypeHandle
referent = BasicTypeInfoToTypeHandle(rts, &pArgInfo->m_pList[0]);
3755
return rts.GetConstructedType(referent, et, 0, ImmutableArray<
ITypeHandle
?>.Empty)
3759
private
ITypeHandle
GetExactClassTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo)
3763
ITypeHandle
typeConstructor = LookupTypeDefOrRefInAssembly(vmAssembly, metadataToken);
3769
ImmutableArray<
ITypeHandle
?>.Builder builder = ImmutableArray.CreateBuilder<
ITypeHandle
?>(argCount);
3777
private
ITypeHandle
GetExactFnPtrTypeHandle(IRuntimeTypeSystem rts, ArgInfoList* pArgInfo)
3780
ImmutableArray<
ITypeHandle
?>.Builder builder = ImmutableArray.CreateBuilder<
ITypeHandle
?>(argCount);
3811
ITypeHandle
thRepMt = rts.GetTypeHandle(rts.GetMethodTable(pRepMethod));
3817
ITypeHandle
thSpecificClass = thRepMt;
3846
ITypeHandle
thFromThis = rts.GetTypeHandle(new TargetPointer(genericsToken));
3847
ITypeHandle
? thMatch = GetMethodTableMatchingParentClass(rts, thFromThis, thRepMt);
3870
ITypeHandle
thSpecMethodMt = rts.GetTypeHandle(specMethodMtPtr);
3871
ITypeHandle
? thMatchingParent = GetMethodTableMatchingParentClass(rts, thSpecificClass, thSpecMethodMt);
3872
ReadOnlySpan<
ITypeHandle
> classInst = thMatchingParent is null
3875
ReadOnlySpan<
ITypeHandle
> methodInst = rts.GetGenericMethodInstantiation(pSpecificMethod);
3882
ITypeHandle
thCanon = rts.GetTypeHandle(canonMtPtr);
4104
internal
ITypeHandle
LookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken)
4106
ITypeHandle
? th = TryLookupTypeDefOrRefInAssembly(vmAssembly, metadataToken);
4112
internal
ITypeHandle
? TryLookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken)
4148
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
4149
ReadOnlySpan<
ITypeHandle
> instantiation = rts.GetInstantiation(typeHandle);
4226
ITypeHandle
typeHandle = rts.GetPrimitiveType((CorElementType)simpleType);
4278
ITypeHandle
typeHandle = rts.GetTypeHandle(parentMT);
4468
ITypeHandle
th = rts.GetTypeHandle(info.TypeHandle);
4507
ITypeHandle
th = rts.GetTypeHandle(mtAddr);
4547
ITypeHandle
th = rts.GetTypeHandle(mt);
4610
ITypeHandle
? th = null;
5513
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer(id));
5525
ITypeHandle
parentHandle = rts.GetTypeHandle(parentMT);
5566
ITypeHandle
enclosingTypeHandle = rts.GetTypeHandle(enclosingMT);
5581
ITypeHandle
? fieldTypeHandle = signature.DecodeFieldSignature(fieldDef.Signature, enclosingModuleHandle, enclosingTypeHandle);
5599
ITypeHandle
mtHandle = (signatureType == CorElementType.Ptr || signatureType == CorElementType.FnPtr)
5665
ITypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer((ulong)id));
5674
ITypeHandle
parentHandle = rts.GetTypeHandle(parentMT);
5722
ITypeHandle
arrayOrStringTypeHandle = rts.GetTypeHandle(new TargetPointer(id));
5727
ITypeHandle
charTypeHandle = rts.GetPrimitiveType(CorElementType.Char);
5743
ITypeHandle
componentTypeHandle = rts.GetTypeParam(arrayOrStringTypeHandle);
6261
ITypeHandle
typeHandle = rts.GetTypeHandle(mtPtr);
6327
ITypeHandle
typeHandle = rts.GetTypeHandle(mt);
7475
private void FillExpandedTypeDataWithCanonFallback(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle,
ITypeHandle
thCanon, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
7489
private static bool HasSameTypeDefAs(IRuntimeTypeSystem rts,
ITypeHandle
a,
ITypeHandle
b)
7503
private static
ITypeHandle
? GetMethodTableMatchingParentClass(IRuntimeTypeSystem rts,
ITypeHandle
start,
ITypeHandle
parent)
7505
ITypeHandle
current = start;
7521
private void TypeHandleToExpandedTypeInfoImpl(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
7568
private static CorElementType GetElementType(IRuntimeTypeSystem rts,
ITypeHandle
? typeHandle)
7584
private static
ITypeHandle
UpCastTypeIfNeeded(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle)
7597
private void FillArrayTypeInfo(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
7602
ITypeHandle
elemTypeHandle = rts.GetTypeParam(typeHandle);
7607
private void FillPtrTypeInfo(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
7615
ITypeHandle
paramTypeHandle = rts.GetTypeParam(typeHandle);
7621
private void FillClassTypeInfo(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
7629
ReadOnlySpan<
ITypeHandle
> instantiation = rts.GetInstantiation(typeHandle);
7644
private void FillFnPtrTypeInfo(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed,
ITypeHandle
typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo)
7659
internal void FillBasicTypeInfo(IRuntimeTypeSystem rts,
ITypeHandle
typeHandle, out DebuggerIPCE_BasicTypeData typeInfo)
7685
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)
EnumMemory\ObjectCollector.cs (9)
62
ITypeHandle
type = types.GetTypeHandle(methodTable);
88
private bool EnumerateTypeHierarchy(
ITypeHandle
type)
110
private void EnumerateMethodTableData(
ITypeHandle
type)
129
private void EnumerateArray(IObject objects, TargetPointer objectAddress,
ITypeHandle
type)
133
ITypeHandle
elementType = types.GetTypeParam(type);
171
ITypeHandle
exceptionType = types.GetTypeHandle(exceptionMethodTable);
172
ITypeHandle
objectType = types.GetTypeHandle(types.GetWellKnownMethodTable(WellKnownMethodTable.Object));
173
ITypeHandle
derivedType = types.GetTypeHandle(methodTable);
234
ITypeHandle
type = types.GetTypeHandle(methodTable);
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)
1123
ITypeHandle
ctx = rtsContract.GetTypeHandle(enclosingMT);
1129
ITypeHandle
? foundTypeHandle = rtsContract.GetFieldDescApproxTypeHandle(fieldDescTargetPtr);
1148
ITypeHandle
paramTypeHandle = rtsContract.GetTypeParam(foundTypeHandle);
2421
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTableAddr);
2911
ITypeHandle
methodTable = contract.GetTypeHandle(mt.ToTargetPointer(_target));
2985
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(mtAddress);
3026
ITypeHandle
methodTableHandle = contract.GetTypeHandle(eeClassReallyCanonMT.ToTargetPointer(_target));
3057
ITypeHandle
methodTableHandle = typeSystemContract.GetTypeHandle(mt.ToTargetPointer(_target, overrideCheck: true));
3130
ITypeHandle
methodTableHandle = rts.GetTypeHandle(methodTable); // validate MT
3378
ITypeHandle
typeHandle = rts.GetTypeHandle(mt);
3451
ITypeHandle
handle = runtimeTypeSystemContract.GetTypeHandle(mt);
3493
ITypeHandle
element = runtimeTypeSystemContract.GetTypeParam(handle);
5594
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(mt.ToTargetPointer(_target));
5758
ITypeHandle
typeHandle = rts.GetTypeHandle(mt);
5820
ITypeHandle
typeHandle = rts.GetTypeHandle(ptr);
6187
ITypeHandle
methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
6480
ITypeHandle
mtHandle = rtsContract.GetTypeHandle(mt);
6934
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
6976
ITypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTablePtr);
7030
ITypeHandle
methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
7065
private readonly
ITypeHandle
_methodTable;
7072
public SOSMethodEnum(Target target,
ITypeHandle
methodTable, ISOSMethodEnum? legacyMethodEnum, Lock apiLock)
7109
ITypeHandle
typeHandle = _rts.GetTypeHandle(mtAddr);
7133
ITypeHandle
typeHandle = _rts.GetTypeHandle(mtAddr);
7257
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)