Internal\Runtime\TypeLoader\TypeBuilder.cs (27)
895var szArrayCache = TypeSystemContext.GetArrayTypesCache(false, -1);
906var mdArrayCache = TypeSystemContext.GetArrayTypesCache(true, i);
911TypeSystemContext.PointerTypesCache.Reserve(TypeSystemContext.PointerTypesCache.Count + newPointerTypesCount);
912TypeSystemContext.ByRefTypesCache.Reserve(TypeSystemContext.ByRefTypesCache.Count + newByRefTypesCount);
913TypeSystemContext.FunctionPointerTypesCache.Reserve(TypeSystemContext.FunctionPointerTypesCache.Count + newFunctionPointerTypesCount);
935TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(typeAsFunctionPointerType.RuntimeTypeHandle);
944TypeSystemContext.GetArrayTypesCache(true, ((ArrayType)typeAsParameterizedType).Rank).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
946TypeSystemContext.GetArrayTypesCache(false, -1).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
953TypeSystemContext.ByRefTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
962TypeSystemContext.PointerTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
1013private unsafe IntPtr BuildGenericLookupTarget(TypeSystemContext typeSystemContext, IntPtr context, IntPtr signature, out IntPtr auxResult)
1127TypeSystemContext context = TypeSystemContextFactory.Create();
1154TypeSystemContext context = TypeSystemContextFactory.Create();
1178if (!TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
1180TypeSystemContext context = TypeSystemContextFactory.Create();
1187TypeSystemContext.PointerTypesCache.AddOrGetExisting(pointerTypeHandle);
1198if (!TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out byRefTypeHandle))
1200TypeSystemContext context = TypeSystemContextFactory.Create();
1207TypeSystemContext.ByRefTypesCache.AddOrGetExisting(byRefTypeHandle);
1218var key = new TypeSystemContext.FunctionPointerTypeKey(returnTypeHandle, parameterHandles, isUnmanaged);
1219if (!TypeSystemContext.FunctionPointerTypesCache.TryGetValue(key, out runtimeTypeHandle))
1221TypeSystemContext context = TypeSystemContextFactory.Create();
1232TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(runtimeTypeHandle);
1262TypeSystemContext 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