13 instantiations of TypeHandle
Microsoft.Diagnostics.DataContractReader.Contracts (13)
Contracts\RuntimeTypeSystem_1.cs (10)
461
return new
TypeHandle
(typeHandlePointer);
468
return new
TypeHandle
(typeHandlePointer);
479
return new
TypeHandle
(methodTablePointer);
488
return new
TypeHandle
(methodTablePointer);
500
return new
TypeHandle
(methodTablePointer);
1029
return new
TypeHandle
(TargetPointer.Null);
1053
return new
TypeHandle
(TargetPointer.Null);
1146
return new
TypeHandle
(TargetPointer.Null);
1164
return new
TypeHandle
(TargetPointer.Null);
1173
return new
TypeHandle
(TargetPointer.Null);
Contracts\Signature\SignatureTypeProvider.cs (3)
79
return typeHandlePtr == TargetPointer.Null ? new
TypeHandle
(TargetPointer.Null) : _runtimeTypeSystem.GetTypeHandle(typeHandlePtr);
87
return typeHandlePtr == TargetPointer.Null ? new
TypeHandle
(TargetPointer.Null) : _runtimeTypeSystem.GetTypeHandle(typeHandlePtr);
95
? new
TypeHandle
(TargetPointer.Null)
303 references to TypeHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (60)
Contracts\IRuntimeTypeSystem.cs (58)
105
TypeHandle
GetTypeHandle(TargetPointer address) => throw new NotImplementedException();
106
TargetPointer GetModule(
TypeHandle
typeHandle) => throw new NotImplementedException();
107
TargetPointer GetLoaderModule(
TypeHandle
typeHandle) => throw new NotImplementedException();
111
TargetPointer GetCanonicalMethodTable(
TypeHandle
typeHandle) => throw new NotImplementedException();
112
TargetPointer GetParentMethodTable(
TypeHandle
typeHandle) => throw new NotImplementedException();
114
TargetPointer GetMethodDescForSlot(
TypeHandle
methodTable, ushort slot) => throw new NotImplementedException();
115
IEnumerable<TargetPointer> GetIntroducedMethodDescs(
TypeHandle
methodTable) => throw new NotImplementedException();
116
TargetCodePointer GetSlot(
TypeHandle
typeHandle, uint slot) => throw new NotImplementedException();
118
uint GetBaseSize(
TypeHandle
typeHandle) => throw new NotImplementedException();
120
uint GetComponentSize(
TypeHandle
typeHandle) => throw new NotImplementedException();
123
bool IsFreeObjectMethodTable(
TypeHandle
typeHandle) => throw new NotImplementedException();
124
bool IsString(
TypeHandle
typeHandle) => throw new NotImplementedException();
125
bool IsObjRef(
TypeHandle
typeHandle) => throw new NotImplementedException();
127
bool ContainsGCPointers(
TypeHandle
typeHandle) => throw new NotImplementedException();
129
bool RequiresAlign8(
TypeHandle
typeHandle) => throw new NotImplementedException();
131
bool IsContinuation(
TypeHandle
typeHandle) => throw new NotImplementedException();
137
IEnumerable<(uint Offset, uint Size)> GetGCDescSeries(
TypeHandle
typeHandle, uint numComponents = 0) => throw new NotImplementedException();
138
bool IsDynamicStatics(
TypeHandle
typeHandle) => throw new NotImplementedException();
139
ushort GetNumInterfaces(
TypeHandle
typeHandle) => throw new NotImplementedException();
142
uint GetTypeDefToken(
TypeHandle
typeHandle) => throw new NotImplementedException();
143
ushort GetNumVtableSlots(
TypeHandle
typeHandle) => throw new NotImplementedException();
144
ushort GetNumMethods(
TypeHandle
typeHandle) => throw new NotImplementedException();
147
uint GetTypeDefTypeAttributes(
TypeHandle
typeHandle) => throw new NotImplementedException();
148
ushort GetNumInstanceFields(
TypeHandle
typeHandle) => throw new NotImplementedException();
149
ushort GetNumStaticFields(
TypeHandle
typeHandle) => throw new NotImplementedException();
150
ushort GetNumThreadStaticFields(
TypeHandle
typeHandle) => throw new NotImplementedException();
151
TargetPointer GetFieldDescList(
TypeHandle
typeHandle) => throw new NotImplementedException();
153
bool IsTrackedReferenceWithFinalizer(
TypeHandle
typeHandle) => throw new NotImplementedException();
154
TargetPointer GetGCStaticsBasePointer(
TypeHandle
typeHandle) => throw new NotImplementedException();
155
TargetPointer GetNonGCStaticsBasePointer(
TypeHandle
typeHandle) => throw new NotImplementedException();
156
TargetPointer GetGCThreadStaticsBasePointer(
TypeHandle
typeHandle, TargetPointer threadPtr) => throw new NotImplementedException();
157
TargetPointer GetNonGCThreadStaticsBasePointer(
TypeHandle
typeHandle, TargetPointer threadPtr) => throw new NotImplementedException();
160
ReadOnlySpan<
TypeHandle
> GetInstantiation(
TypeHandle
typeHandle) => throw new NotImplementedException();
161
public bool IsClassInited(
TypeHandle
typeHandle) => throw new NotImplementedException();
162
public bool IsInitError(
TypeHandle
typeHandle) => throw new NotImplementedException();
163
bool IsGenericTypeDefinition(
TypeHandle
typeHandle) => throw new NotImplementedException();
164
bool ContainsGenericVariables(
TypeHandle
typeHandle) => throw new NotImplementedException();
165
bool IsCollectible(
TypeHandle
typeHandle) => throw new NotImplementedException();
167
bool HasTypeParam(
TypeHandle
typeHandle) => throw new NotImplementedException();
172
CorElementType GetSignatureCorElementType(
TypeHandle
typeHandle) => throw new NotImplementedException();
173
bool IsValueType(
TypeHandle
typeHandle) => throw new NotImplementedException();
178
CorElementType GetInternalCorElementType(
TypeHandle
typeHandle) => throw new NotImplementedException();
181
bool IsEnum(
TypeHandle
typeHandle) => throw new NotImplementedException();
184
bool IsArray(
TypeHandle
typeHandle, out uint rank) => throw new NotImplementedException();
185
TypeHandle
GetTypeParam(
TypeHandle
typeHandle) => throw new NotImplementedException();
186
TypeHandle
GetConstructedType(
TypeHandle
typeHandle, CorElementType corElementType, int rank, ImmutableArray<
TypeHandle
> typeArguments) => throw new NotImplementedException();
187
TypeHandle
GetPrimitiveType(CorElementType typeCode) => throw new NotImplementedException();
188
TypeHandle
GetTypeByNameAndModule(string name, string nameSpace, ModuleHandle moduleHandle) => throw new NotImplementedException();
189
bool IsGenericVariable(
TypeHandle
typeHandle, out TargetPointer module, out uint token) => throw new NotImplementedException();
190
bool IsFunctionPointer(
TypeHandle
typeHandle, out ReadOnlySpan<
TypeHandle
> retAndArgTypes, out byte callConv) => throw new NotImplementedException();
191
bool IsPointer(
TypeHandle
typeHandle) => throw new NotImplementedException();
201
ReadOnlySpan<
TypeHandle
> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException();
268
TargetPointer GetFieldDescByName(
TypeHandle
typeHandle, string fieldName) => throw new NotImplementedException();
Contracts\ISignature.cs (2)
12
TypeHandle
DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle,
TypeHandle
ctx) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (166)
Contracts\CodeVersions_1.cs (2)
157
TypeHandle
mt = rts.GetTypeHandle(mtAddr);
345
TypeHandle
typeHandle = rts.GetTypeHandle(mtAddr);
Contracts\ConditionalWeakTable_1.cs (1)
98
TypeHandle
entriesTypeHandle = rts.GetTypeHandle(entriesMT);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
519
TypeHandle
th = rts.GetTypeHandle(mtPtr);
Contracts\Object_1.cs (1)
62
TypeHandle
typeHandle = typeSystemContract.GetTypeHandle(mt);
Contracts\RuntimeTypeSystem_1.cs (106)
30
private readonly Dictionary<TypeKey,
TypeHandle
> _typeHandles = new();
31
private readonly Dictionary<TypeKeyByName,
TypeHandle
> _typeHandlesByName = new();
74
public TypeKey(
TypeHandle
typeHandle, CorElementType elementType, int rank, ImmutableArray<
TypeHandle
> typeArgs)
81
public
TypeHandle
TypeHandle { get; }
84
public ImmutableArray<
TypeHandle
> TypeArgs { get; }
103
foreach (
TypeHandle
th in TypeArgs)
367
Instantiation = System.Array.Empty<
TypeHandle
>();
371
Instantiation = new
TypeHandle
[numGenericArgs];
384
public
TypeHandle
[] Instantiation { get; }
449
public
TypeHandle
GetTypeHandle(TargetPointer typeHandlePointer)
502
public TargetPointer GetModule(
TypeHandle
typeHandle)
529
public TargetPointer GetCanonicalMethodTable(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : GetClassData(typeHandle).MethodTable;
530
public TargetPointer GetParentMethodTable(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : _methodTables[typeHandle.Address].ParentMethodTable;
532
public uint GetBaseSize(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize;
534
public uint GetComponentSize(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.ComponentSize;
536
private TargetPointer GetClassPointer(
TypeHandle
typeHandle)
545
TypeHandle
canonMTHandle = GetTypeHandle(canonMTPtr);
554
private Data.EEClass GetClassData(
TypeHandle
typeHandle)
561
public bool IsFreeObjectMethodTable(
TypeHandle
typeHandle) => FreeObjectMethodTablePointer == typeHandle.Address;
563
public bool IsString(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsString;
564
public bool IsObjRef(
TypeHandle
typeHandle)
570
public bool ContainsGCPointers(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.ContainsGCPointers;
571
public bool RequiresAlign8(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.RequiresAlign8;
572
public bool IsContinuation(
TypeHandle
typeHandle) => typeHandle.IsMethodTable()
576
IEnumerable<(uint Offset, uint Size)> IRuntimeTypeSystem.GetGCDescSeries(
TypeHandle
typeHandle, uint numComponents)
650
public bool IsDynamicStatics(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsDynamicStatics;
651
public ushort GetNumInterfaces(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : _methodTables[typeHandle.Address].NumInterfaces;
653
public uint GetTypeDefToken(
TypeHandle
typeHandle)
660
public ushort GetNumVtableSlots(
TypeHandle
typeHandle)
668
public ushort GetNumMethods(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumMethods;
669
public uint GetTypeDefTypeAttributes(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : GetClassData(typeHandle).CorTypeAttr;
670
public ushort GetNumInstanceFields(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumInstanceFields;
671
public ushort GetNumStaticFields(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumStaticFields;
672
public ushort GetNumThreadStaticFields(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumThreadStaticFields;
673
public TargetPointer GetFieldDescList(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : GetClassData(typeHandle).FieldDescList;
674
public bool IsTrackedReferenceWithFinalizer(
TypeHandle
typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
675
private TargetPointer GetDynamicStaticsInfo(
TypeHandle
typeHandle)
688
private Data.ThreadStaticsInfo GetThreadStaticsInfo(
TypeHandle
typeHandle)
697
public TargetPointer GetGCThreadStaticsBasePointer(
TypeHandle
typeHandle, TargetPointer threadPtr)
706
public TargetPointer GetNonGCThreadStaticsBasePointer(
TypeHandle
typeHandle, TargetPointer threadPtr)
715
public TargetPointer GetGCStaticsBasePointer(
TypeHandle
typeHandle)
724
public TargetPointer GetNonGCStaticsBasePointer(
TypeHandle
typeHandle)
733
public ReadOnlySpan<
TypeHandle
> GetInstantiation(
TypeHandle
typeHandle)
745
public bool IsClassInited(
TypeHandle
typeHandle)
754
public bool IsInitError(
TypeHandle
typeHandle)
767
public
TypeHandle
[] TypeHandles { get; }
783
TypeHandles = new
TypeHandle
[numberOfGenericArgs];
791
public bool IsGenericTypeDefinition(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsGenericTypeDefinition;
792
public bool ContainsGenericVariables(
TypeHandle
typeHandle)
807
_ = IsFunctionPointer(typeHandle, out ReadOnlySpan<
TypeHandle
> signatureTypeArgs, out _);
808
foreach (
TypeHandle
sigTypeArg in signatureTypeArgs)
820
public bool IsCollectible(
TypeHandle
typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsCollectible;
821
public bool HasTypeParam(
TypeHandle
typeHandle)
843
public CorElementType GetSignatureCorElementType(
TypeHandle
typeHandle)
874
public CorElementType GetInternalCorElementType(
TypeHandle
typeHandle)
887
public bool IsValueType(
TypeHandle
typeHandle)
903
public bool IsEnum(
TypeHandle
typeHandle)
920
public bool IsArray(
TypeHandle
typeHandle, out uint rank)
945
public
TypeHandle
GetTypeParam(
TypeHandle
typeHandle)
971
private
TypeHandle
GetRootTypeParam(
TypeHandle
typeHandle)
973
TypeHandle
current = typeHandle;
981
private bool GenericInstantiationMatch(
TypeHandle
genericType,
TypeHandle
potentialMatch, ImmutableArray<
TypeHandle
> typeArguments)
983
ReadOnlySpan<
TypeHandle
> instantiation = GetInstantiation(potentialMatch);
1001
private bool ArrayPtrMatch(
TypeHandle
elementType, CorElementType corElementType, int rank,
TypeHandle
potentialMatch)
1011
private bool IsLoaded(
TypeHandle
typeHandle)
1026
TypeHandle
IRuntimeTypeSystem.GetConstructedType(
TypeHandle
typeHandle, CorElementType corElementType, int rank, ImmutableArray<
TypeHandle
> typeArguments)
1030
if (_typeHandles.TryGetValue(new TypeKey(typeHandle, corElementType, rank, typeArguments), out
TypeHandle
existing))
1035
TypeHandle
potentialMatch;
1056
TypeHandle
IRuntimeTypeSystem.GetPrimitiveType(CorElementType typeCode)
1098
TypeHandle
IRuntimeTypeSystem.GetTypeByNameAndModule(string name, string nameSpace, ModuleHandle moduleHandle)
1102
if (_typeHandlesByName.TryGetValue(new TypeKeyByName(name, nameSpace, modulePtr), out
TypeHandle
existing))
1174
TypeHandle
foundTypeHandle = rts.GetTypeHandle(typeHandlePtr);
1179
public bool IsGenericVariable(
TypeHandle
typeHandle, out TargetPointer module, out uint token)
1201
public bool IsFunctionPointer(
TypeHandle
typeHandle, out ReadOnlySpan<
TypeHandle
> retAndArgTypes, out byte callConv)
1220
public bool IsPointer(
TypeHandle
typeHandle)
1230
public TargetPointer GetLoaderModule(
TypeHandle
typeHandle)
1260
public
TypeHandle
[] TypeHandles { get; }
1269
TypeHandles = new
TypeHandle
[numberOfRetAndArgTypes];
1341
public ReadOnlySpan<
TypeHandle
> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle)
1582
private TargetPointer GetAddressOfSlot(
TypeHandle
typeHandle, uint slotNum)
1643
TypeHandle
mt = GetTypeHandle(mtAddr);
1702
private IEnumerable<MethodDescHandle> GetIntroducedMethods(
TypeHandle
typeHandle)
1728
IEnumerable<TargetPointer> IRuntimeTypeSystem.GetIntroducedMethodDescs(
TypeHandle
typeHandle)
1733
TypeHandle
canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle));
1742
TargetPointer IRuntimeTypeSystem.GetMethodDescForSlot(
TypeHandle
typeHandle, ushort slot)
1748
TypeHandle
canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle));
1767
private TargetPointer GetMethodDescForVtableSlot(
TypeHandle
typeHandle, ushort slot)
1775
TypeHandle
canonMT = GetTypeHandle(cannonMTPTr);
1788
TypeHandle
lookupMT = GetTypeHandle(lookupMTPtr);
1824
TargetCodePointer IRuntimeTypeSystem.GetSlot(
TypeHandle
typeHandle, uint slot)
1886
TypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
1974
TypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
1982
TypeHandle
typeHandle = GetTypeHandle(methodTablePointer);
2032
TargetPointer IRuntimeTypeSystem.GetFieldDescByName(
TypeHandle
typeHandle, string fieldName)
2090
TypeHandle
ctx = GetTypeHandle(enclosingMT);
2149
TypeHandle
th = rts.GetTypeByNameAndModule(typeName, @namespace, moduleHandle);
Contracts\Signature\Signature_1.cs (9)
21
private readonly Dictionary<ModuleHandle, SignatureTypeProvider<
TypeHandle
>> _thProviders = [];
33
private SignatureTypeProvider<
TypeHandle
> GetTypeHandleProvider(ModuleHandle moduleHandle)
35
if (_thProviders.TryGetValue(moduleHandle, out SignatureTypeProvider<
TypeHandle
>? thProvider))
40
SignatureTypeProvider<
TypeHandle
> newProvider = new(_target, moduleHandle);
45
TypeHandle
ISignature.DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle,
TypeHandle
ctx)
47
SignatureTypeProvider<
TypeHandle
> provider = GetTypeHandleProvider(moduleHandle);
51
RuntimeSignatureDecoder<
TypeHandle
,
TypeHandle
> decoder = new(provider, _target, mdReader, ctx);
Contracts\Signature\SignatureTypeProvider.cs (31)
13
public class SignatureTypeProvider<T> : IRuntimeSignatureTypeProvider<
TypeHandle
, T>
28
public
TypeHandle
GetArrayType(
TypeHandle
elementType, ArrayShape shape)
31
public
TypeHandle
GetByReferenceType(
TypeHandle
elementType)
34
public
TypeHandle
GetFunctionPointerType(MethodSignature<
TypeHandle
> signature)
37
public
TypeHandle
GetGenericInstantiation(
TypeHandle
genericType, ImmutableArray<
TypeHandle
> typeArguments)
40
public
TypeHandle
GetGenericMethodParameter(T context, int index)
49
public
TypeHandle
GetGenericTypeParameter(T context, int index)
51
TypeHandle
typeContext;
52
if (typeof(T) == typeof(
TypeHandle
))
54
typeContext = (
TypeHandle
)(object)context!;
59
public
TypeHandle
GetModifiedType(
TypeHandle
modifier,
TypeHandle
unmodifiedType, bool isRequired)
62
public
TypeHandle
GetPinnedType(
TypeHandle
elementType)
65
public
TypeHandle
GetPointerType(
TypeHandle
elementType)
68
public
TypeHandle
GetPrimitiveType(PrimitiveTypeCode typeCode)
71
public
TypeHandle
GetSZArrayType(
TypeHandle
elementType)
74
public
TypeHandle
GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind)
82
public
TypeHandle
GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind)
90
public
TypeHandle
GetTypeFromSpecification(MetadataReader reader, T context, TypeSpecificationHandle handle, byte rawTypeKind)
93
public
TypeHandle
GetInternalType(TargetPointer typeHandlePointer)
98
public
TypeHandle
GetInternalModifiedType(TargetPointer typeHandlePointer,
TypeHandle
unmodifiedType, bool isRequired)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
119
TypeHandle
mtHandle = rtsContract.GetTypeHandle(stubDispatchFrame.RepresentativeMTPtr);
Contracts\StackWalk\GC\GcScanner.cs (1)
336
TypeHandle
typeHandle = rts.GetTypeHandle(methodTablePtr);
Contracts\StackWalk\GC\GcSignatureTypeProvider.cs (8)
31
/// owning type's <see cref="
TypeHandle
"/> (used for VAR), and <see cref="MethodContext"/>
34
internal readonly record struct GcSignatureContext(
TypeHandle
ClassContext, MethodDescHandle MethodContext);
90
ReadOnlySpan<
TypeHandle
> instantiation = _target.Contracts.RuntimeTypeSystem.GetGenericMethodInstantiation(genericContext.MethodContext);
106
TypeHandle
classCtx = genericContext.ClassContext;
120
ReadOnlySpan<
TypeHandle
> instantiation = rts.GetInstantiation(classCtx);
153
/// resulting <see cref="
TypeHandle
"/>. Falls back to a <paramref name="rawTypeKind"/>-based
173
/// Classify a resolved <see cref="
TypeHandle
"/>. Mirrors native
178
private GcTypeKind ClassifyTypeHandle(
TypeHandle
typeHandle)
Contracts\SyncBlock_1.cs (2)
64
TypeHandle
lockType = rts.GetTypeByNameAndModule(LockName, LockNamespace, moduleHandle);
137
private uint ReadUintField(
TypeHandle
enclosingType, string fieldName, IRuntimeTypeSystem rts, MetadataReader mdReader, TargetPointer dataAddr)
RuntimeTypeSystemHelpers\ExtensionMethods.cs (3)
10
public static bool IsTypeDesc(this
TypeHandle
type)
15
public static bool IsMethodTable(this
TypeHandle
type)
20
public static TargetPointer TypeDescAddress(this
TypeHandle
type)
Microsoft.Diagnostics.DataContractReader.Legacy (77)
ClrDataFrame.cs (5)
415
TypeHandle
typeHandle = rts.GetTypeHandle(mtAddr);
751
ReadOnlySpan<
TypeHandle
> methodInst = rts.GetGenericMethodInstantiation(mdh);
763
TypeHandle
declaringType = rts.GetTypeHandle(mtAddr);
764
ReadOnlySpan<
TypeHandle
> typeInst = rts.GetInstantiation(declaringType);
770
private static (uint Flags, int Size) ResolveGenericParam(IRuntimeTypeSystem rts,
TypeHandle
resolvedType)
ClrDataMethodDefinition.cs (1)
48
TypeHandle
mt = rts.GetTypeHandle(mtAddr);
ClrDataMethodInstance.cs (1)
66
TypeHandle
mainMT = rts.GetTypeHandle(mtAddr);
Dbi\DacDbiImpl.cs (9)
1277
Contracts.
TypeHandle
th = rts.GetTypeHandle(new TargetPointer(thExact));
1370
Contracts.
TypeHandle
th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
1397
TypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle));
1556
Contracts.
TypeHandle
typeHandle = rts.GetPrimitiveType((CorElementType)simpleType);
2033
TypeHandle
typeHandle = rts.GetTypeHandle(new TargetPointer((ulong)id));
2042
TypeHandle
parentHandle = rts.GetTypeHandle(parentMT);
2086
TypeHandle
arrayOrStringTypeHandle = rts.GetTypeHandle(new TargetPointer(id));
2091
TypeHandle
charTypeHandle = rts.GetPrimitiveType(CorElementType.Char);
2107
TypeHandle
componentTypeHandle = rts.GetTypeParam(arrayOrStringTypeHandle);
SigFormat.cs (10)
21
ReadOnlySpan<
TypeHandle
> typeInstantiation,
22
ReadOnlySpan<
TypeHandle
> methodInstantiation,
39
ReadOnlySpan<
TypeHandle
> typeInstantiation,
40
ReadOnlySpan<
TypeHandle
> methodInstantiation,
98
ReadOnlySpan<
TypeHandle
> typeInstantiation,
99
ReadOnlySpan<
TypeHandle
> methodInstantiation,
160
TypeHandle
th = runtimeTypeSystem.GetTypeHandle(typeHandlePointer);
311
private static void AddType(Target target, StringBuilder stringBuilder,
TypeHandle
typeHandle)
361
ReadOnlySpan<
TypeHandle
> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle);
417
runtimeTypeSystem.IsFunctionPointer(typeHandle, out ReadOnlySpan<
TypeHandle
> retAndArgTypes, out byte callConv);
SOSDacImpl.cs (25)
1093
TypeHandle
ctx = rtsContract.GetTypeHandle(enclosingMT);
1101
TypeHandle
foundTypeHandle = signatureContract.DecodeFieldSignature(fieldDef.Signature, moduleHandle, ctx);
1118
TypeHandle
paramTypeHandle = rtsContract.GetTypeParam(foundTypeHandle);
2337
TypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTableAddr);
2813
Contracts.
TypeHandle
methodTable = contract.GetTypeHandle(mt.ToTargetPointer(_target));
2886
TypeHandle
typeHandle = rtsContract.GetTypeHandle(mtAddress);
2926
Contracts.
TypeHandle
methodTableHandle = contract.GetTypeHandle(eeClassReallyCanonMT.ToTargetPointer(_target));
2956
Contracts.
TypeHandle
methodTableHandle = typeSystemContract.GetTypeHandle(mt.ToTargetPointer(_target, overrideCheck: true));
3028
TypeHandle
methodTableHandle = rts.GetTypeHandle(methodTable); // validate MT
3269
Contracts.
TypeHandle
typeHandle = rts.GetTypeHandle(mt);
3341
TypeHandle
handle = runtimeTypeSystemContract.GetTypeHandle(mt);
3383
TypeHandle
element = runtimeTypeSystemContract.GetTypeParam(handle);
5435
Contracts.
TypeHandle
typeHandle = rtsContract.GetTypeHandle(mt.ToTargetPointer(_target));
5589
TypeHandle
typeHandle = rts.GetTypeHandle(mt);
5650
TypeHandle
typeHandle = rts.GetTypeHandle(ptr);
6009
Contracts.
TypeHandle
methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
6295
TypeHandle
mtHandle = rtsContract.GetTypeHandle(mt);
6737
Contracts.
TypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
6778
Contracts.
TypeHandle
typeHandle = rtsContract.GetTypeHandle(methodTablePtr);
6831
Contracts.
TypeHandle
methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target));
6865
private readonly
TypeHandle
_methodTable;
6872
public SOSMethodEnum(Target target,
TypeHandle
methodTable, ISOSMethodEnum? legacyMethodEnum)
6908
TypeHandle
typeHandle = _rts.GetTypeHandle(mtAddr);
6932
TypeHandle
typeHandle = _rts.GetTypeHandle(mtAddr);
7051
TypeHandle
methodTableHandle = rts.GetTypeHandle(mt.ToTargetPointer(_target));
SOSDacImpl.IXCLRDataProcess.cs (6)
302
private IEnumerable<Contracts.
TypeHandle
> IterateTypeParams(Contracts.ModuleHandle moduleHandle)
349
TypeHandle
mainMT = _rts.GetTypeHandle(mtAddr);
363
TypeHandle
methodTypeHandle = _rts.GetTypeHandle(_rts.GetMethodTable(methodDesc));
386
foreach (Contracts.
TypeHandle
typeParam in IterateTypeParams(moduleHandle))
400
TypeHandle
cmtHandle = _rts.GetTypeHandle(cmt);
429
TypeHandle
mt = rts.GetTypeHandle(mtAddr);
TypeNameBuilder.cs (20)
65
public static void AppendMethodImpl(Target target, StringBuilder stringBuilder, Contracts.MethodDescHandle method, ReadOnlySpan<
TypeHandle
> typeInstantiation, TypeNameFormat format)
70
TypeHandle
th = default;
129
ReadOnlySpan<
TypeHandle
> genericMethodInstantiation = runtimeTypeSystem.GetGenericMethodInstantiation(method);
149
ReadOnlySpan<
TypeHandle
> typeInstantiationSigFormat = default;
165
public static
TypeHandle
GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem,
TypeHandle
possiblyDerivedType, MethodDescHandle method)
167
TypeHandle
approxOwner = runtimeTypeSystem.GetTypeHandle(runtimeTypeSystem.GetMethodTable(method));
191
public static void AppendType(Target target, StringBuilder stringBuilder, Contracts.
TypeHandle
typeHandle, TypeNameFormat format)
196
public static void AppendType(Target target, StringBuilder stringBuilder, Contracts.
TypeHandle
typeHandle, ReadOnlySpan<
TypeHandle
> typeInstantiation, TypeNameFormat format)
202
private static void AppendTypeCore(ref TypeNameBuilder tnb, Contracts.
TypeHandle
typeHandle, ReadOnlySpan<Contracts.
TypeHandle
> instantiation, TypeNameFormat format)
219
AppendTypeCore(ref tnb, typeSystemContract.GetTypeParam(typeHandle), default(ReadOnlySpan<Contracts.
TypeHandle
>), (TypeNameFormat)(format & ~TypeNameFormat.FormatAssembly));
225
AppendTypeCore(ref tnb, typeSystemContract.GetTypeParam(typeHandle), Array.Empty<Contracts.
TypeHandle
>(), format & ~TypeNameFormat.FormatAssembly);
248
else if (typeSystemContract.IsFunctionPointer(typeHandle, out ReadOnlySpan<
TypeHandle
> retAndArgTypes, out byte callConv))
306
ReadOnlySpan<
TypeHandle
> instantiationSpan = typeSystemContract.GetInstantiation(typeHandle);
336
private static void AppendInst(Target target, StringBuilder stringBuilder, ReadOnlySpan<
TypeHandle
> inst, TypeNameFormat format)
342
private static void AppendInst(ref TypeNameBuilder tnb, ReadOnlySpan<
TypeHandle
> inst, TypeNameFormat format)
345
foreach (
TypeHandle
arg in inst)
513
private static void AppendContinuationName(ref TypeNameBuilder tnb, IRuntimeTypeSystem typeSystemContract,
TypeHandle
typeHandle)