47 references to _methodTables
Microsoft.Diagnostics.DataContractReader.Contracts (47)
Contracts\RuntimeTypeSystem_1.cs (47)
38
_methodTables
.Clear();
477
if (
_methodTables
.ContainsKey(typeHandlePointer))
496
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
505
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
517
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTableF);
524
return
_methodTables
[typeHandle.Address].Module;
548
public bool IsCanonicalMethodTable(TypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].IsCanonMT;
549
public TargetPointer GetParentMethodTable(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null :
_methodTables
[typeHandle.Address].ParentMethodTable;
551
public uint GetBaseSize(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.BaseSize;
553
public uint GetNumInstanceFieldBytes(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.BaseSize - GetClassData(typeHandle).BaseSizePadding;
555
public uint GetComponentSize(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.ComponentSize;
561
MethodTable methodTable =
_methodTables
[typeHandle.Address];
569
MethodTable canonMT =
_methodTables
[canonMTHandle.Address];
619
public bool IsString(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsString;
648
public bool ContainsGCPointers(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.ContainsGCPointers;
649
public bool IsByRefLike(TypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsByRefLike;
664
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsHFA)
672
elementSize =
_methodTables
[typeHandle.Address].Flags.RequiresAlign8 ? 8 : 4;
724
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsIntrinsicType)
797
public bool RequiresAlign8(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.RequiresAlign8;
800
&&
_methodTables
[typeHandle.Address].ParentMethodTable == ContinuationMethodTablePointer
878
public bool IsDynamicStatics(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsDynamicStatics;
879
public ushort GetNumInterfaces(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 :
_methodTables
[typeHandle.Address].NumInterfaces;
885
MethodTable methodTable =
_methodTables
[typeHandle.Address];
892
MethodTable methodTable =
_methodTables
[typeHandle.Address];
930
public bool IsTrackedReferenceWithFinalizer(TypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
936
MethodTable methodTable =
_methodTables
[typeHandle.Address];
946
MethodTable methodTable =
_methodTables
[typeHandle.Address];
994
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1005
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1014
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1027
MethodTable methodTable = rts.
_methodTables
[typePointer];
1047
public bool IsGenericTypeDefinition(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsGenericTypeDefinition;
1073
return
_methodTables
[typeHandle.Address].Flags.ContainsGenericVariables;
1076
public bool IsCollectible(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsCollectible;
1081
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1103
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1147
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1167
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1185
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1210
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1298
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1507
MethodTable mt =
_methodTables
[typeHandle.Address];
1850
return
_methodTables
[methodDesc.MethodTable];
1888
MethodTable mt =
_methodTables
[typeHandle.Address];
2185
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);
2279
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);