Internal\Runtime\TypeLoader\TypeBuilder.cs (27)
791var szArrayCache = TypeSystemContext.GetArrayTypesCache(false, -1);
802var mdArrayCache = TypeSystemContext.GetArrayTypesCache(true, i);
807TypeSystemContext.PointerTypesCache.Reserve(TypeSystemContext.PointerTypesCache.Count + newPointerTypesCount);
808TypeSystemContext.ByRefTypesCache.Reserve(TypeSystemContext.ByRefTypesCache.Count + newByRefTypesCount);
809TypeSystemContext.FunctionPointerTypesCache.Reserve(TypeSystemContext.FunctionPointerTypesCache.Count + newFunctionPointerTypesCount);
831TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(typeAsFunctionPointerType.RuntimeTypeHandle);
840TypeSystemContext.GetArrayTypesCache(true, ((ArrayType)typeAsParameterizedType).Rank).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
842TypeSystemContext.GetArrayTypesCache(false, -1).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
849TypeSystemContext.ByRefTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
858TypeSystemContext.PointerTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle);
909private unsafe IntPtr BuildGenericLookupTarget(TypeSystemContext typeSystemContext, IntPtr context, IntPtr signature, out IntPtr auxResult)
1023TypeSystemContext context = TypeSystemContextFactory.Create();
1050TypeSystemContext context = TypeSystemContextFactory.Create();
1074if (!TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
1076TypeSystemContext context = TypeSystemContextFactory.Create();
1083TypeSystemContext.PointerTypesCache.AddOrGetExisting(pointerTypeHandle);
1094if (!TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out byRefTypeHandle))
1096TypeSystemContext context = TypeSystemContextFactory.Create();
1103TypeSystemContext.ByRefTypesCache.AddOrGetExisting(byRefTypeHandle);
1114var key = new TypeSystemContext.FunctionPointerTypeKey(returnTypeHandle, parameterHandles, isUnmanaged);
1115if (!TypeSystemContext.FunctionPointerTypesCache.TryGetValue(key, out runtimeTypeHandle))
1117TypeSystemContext context = TypeSystemContextFactory.Create();
1128TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(runtimeTypeHandle);
1158TypeSystemContext context = TypeSystemContextFactory.Create();
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (15)
250var key = new TypeSystemContext.FunctionPointerTypeKey(returnTypeHandle, parameterHandles, isUnmanaged);
251if (TypeSystemContext.FunctionPointerTypesCache.TryGetValue(key, out runtimeTypeHandle))
258TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(runtimeTypeHandle);
283if (TypeSystemContext.GetArrayTypesCache(isMdArray, rank).TryGetValue(elementTypeHandle, out arrayTypeHandle))
293if (TypeSystemContext.GetArrayTypesCache(isMdArray, rank).TryGetValue(elementTypeHandle, out arrayTypeHandle))
299TypeSystemContext.GetArrayTypesCache(isMdArray, rank).AddOrGetExisting(arrayTypeHandle);
313if (TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
322if (TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
328TypeSystemContext.PointerTypesCache.AddOrGetExisting(pointerTypeHandle);
342if (TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out byRefTypeHandle))
351if (TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle))
357TypeSystemContext.ByRefTypesCache.AddOrGetExisting(pointerTypeHandle);
366TypeSystemContext context = TypeSystemContextFactory.Create();
376TypeSystemContext context = TypeSystemContextFactory.Create();
406TypeSystemContext 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