47 references to _methodTables
Microsoft.Diagnostics.DataContractReader.Contracts (47)
Contracts\RuntimeTypeSystem_1.cs (47)
48
_methodTables
.Clear();
474
if (
_methodTables
.ContainsKey(typeHandlePointer))
493
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
502
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
514
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTableF);
521
return
_methodTables
[typeHandle.Address].Module;
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;
558
MethodTable methodTable =
_methodTables
[typeHandle.Address];
566
MethodTable canonMT =
_methodTables
[canonMTHandle.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;
662
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsHFA)
670
elementSize =
_methodTables
[typeHandle.Address].Flags.RequiresAlign8 ? 8 : 4;
723
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsIntrinsicType)
796
public bool RequiresAlign8(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.RequiresAlign8;
834
&&
_methodTables
[typeHandle.Address].ParentMethodTable == ContinuationMethodTablePointer
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;
919
MethodTable methodTable =
_methodTables
[typeHandle.Address];
926
MethodTable methodTable =
_methodTables
[typeHandle.Address];
964
public bool IsTrackedReferenceWithFinalizer(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
970
MethodTable methodTable =
_methodTables
[typeHandle.Address];
980
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1028
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1039
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1048
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1061
MethodTable methodTable = rts.
_methodTables
[typePointer];
1081
public bool IsGenericTypeDefinition(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsGenericTypeDefinition;
1107
return
_methodTables
[typeHandle.Address].Flags.ContainsGenericVariables;
1110
public bool IsCollectible(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsCollectible;
1115
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1137
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1181
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1201
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1219
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1244
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1332
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1549
MethodTable mt =
_methodTables
[typeHandle.Address];
1892
return
_methodTables
[methodDesc.MethodTable];
1929
MethodTable mt =
_methodTables
[typeHandle.Address];
2229
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);
2339
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);