Internal\Runtime\TypeLoader\TypeBuilder.cs (27)
958var szArrayCache = TypeSystemContext.GetArrayTypesCache(false, -1);
969var mdArrayCache = TypeSystemContext.GetArrayTypesCache(true, i);
974TypeSystemContext.PointerTypesCache.Reserve(TypeSystemContext.PointerTypesCache.Count + newPointerTypesCount);
975TypeSystemContext.ByRefTypesCache.Reserve(TypeSystemContext.ByRefTypesCache.Count + newByRefTypesCount);
976TypeSystemContext.FunctionPointerTypesCache.Reserve(TypeSystemContext.FunctionPointerTypesCache.Count + newFunctionPointerTypesCount);
998TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(typeAsFunctionPointerType.RuntimeTypeHandle);
1007TypeSystemContext.GetArrayTypesCache(true, ((ArrayType)typeAsParameterizedType).Rank).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
1009TypeSystemContext.GetArrayTypesCache(false, -1).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
1016TypeSystemContext.ByRefTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
1025TypeSystemContext.PointerTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
1076private unsafe IntPtr BuildGenericLookupTarget(TypeSystemContext typeSystemContext, IntPtr context, IntPtr signature, out IntPtr auxResult)
1190TypeSystemContext context = TypeSystemContextFactory.Create();
1217TypeSystemContext context = TypeSystemContextFactory.Create();
1241if (!TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
1243TypeSystemContext context = TypeSystemContextFactory.Create();
1250TypeSystemContext.PointerTypesCache.AddOrGetExisting(pointerTypeHandle);
1261if (!TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out byRefTypeHandle))
1263TypeSystemContext context = TypeSystemContextFactory.Create();
1270TypeSystemContext.ByRefTypesCache.AddOrGetExisting(byRefTypeHandle);
1281var key = new TypeSystemContext.FunctionPointerTypeKey(returnTypeHandle, parameterHandles, isUnmanaged);
1282if (!TypeSystemContext.FunctionPointerTypesCache.TryGetValue(key, out runtimeTypeHandle))
1284TypeSystemContext context = TypeSystemContextFactory.Create();
1295TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(runtimeTypeHandle);
1325TypeSystemContext context = TypeSystemContextFactory.Create();
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (15)
242var key = new TypeSystemContext.FunctionPointerTypeKey(returnTypeHandle, parameterHandles, isUnmanaged);
243if (TypeSystemContext.FunctionPointerTypesCache.TryGetValue(key, out runtimeTypeHandle))
250TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(runtimeTypeHandle);
281if (TypeSystemContext.GetArrayTypesCache(isMdArray, rank).TryGetValue(elementTypeHandle, out arrayTypeHandle))
297if (TypeSystemContext.GetArrayTypesCache(isMdArray, rank).TryGetValue(elementTypeHandle, out arrayTypeHandle))
303TypeSystemContext.GetArrayTypesCache(isMdArray, rank).AddOrGetExisting(arrayTypeHandle);
317if (TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
326if (TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
332TypeSystemContext.PointerTypesCache.AddOrGetExisting(pointerTypeHandle);
346if (TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out byRefTypeHandle))
355if (TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
361TypeSystemContext.ByRefTypesCache.AddOrGetExisting(pointerTypeHandle);
370TypeSystemContext context = TypeSystemContextFactory.Create();
380TypeSystemContext context = TypeSystemContextFactory.Create();
410TypeSystemContext context = TypeSystemContextFactory.Create();
Internal\TypeSystem\RuntimeNoMetadataType.cs (5)
29private TypeSystemContext _context;
38public unsafe NoMetadataType(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, int instantiationLength, ReadOnlySpan<Runtime.GenericVariance> runtimeVarianceData, int hashcode)
65public unsafe NoMetadataType(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, DefType genericTypeDefinitionAsDefType, Instantiation instantiation, int hashcode)
70private void Init(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, DefType genericTypeDefinitionAsDefType, Instantiation instantiation, int hashcode)
98public override TypeSystemContext Context