122 references to GetOrAdd
ILCompiler.Compiler (122)
Compiler\DependencyAnalysis\NodeFactory.cs (83)
755return _asyncContinuationEETypes.GetOrAdd(continuation); 808return _asyncContinuationEETypes.GetOrAdd(continuation); 839return _importedTypeSymbols.GetOrAdd(type); 847return _nonGCStatics.GetOrAdd(type); 855return _GCStatics.GetOrAdd(type); 862return _GCStaticIndirectionNodes.GetOrAdd(type); 874return _threadStatics.GetOrAdd(type); 883return _typeThreadStaticIndices.GetOrAdd(type); 895return _dispatchCells.GetOrAdd(new DispatchCellKey(method, callSite)); 902return _runtimeMethodHandles.GetOrAdd(method); 909return _runtimeFieldHandles.GetOrAdd(field); 916return _dataflowAnalyzedMethods.GetOrAdd(new MethodILKey(methodIL)); 923return _dataflowAnalyzedTypeDefinitions.GetOrAdd(type); 930return _dynamicDependencyAttributesOnEntities.GetOrAdd(entity); 937return _embeddedTrimmingDescriptors.GetOrAdd(module); 945return _GCStaticEETypes.GetOrAdd((gcMap, requiredAlign8)); 952return _readOnlyDataBlobs.GetOrAdd(new ReadOnlyDataBlobKey(name, blobData, alignment)); 959return _fieldRvaDataBlobs.GetOrAdd(field); 966return _sealedVtableNodes.GetOrAdd(type); 973return _interfaceDispatchMaps.GetOrAdd(type); 980return _genericCompositions.GetOrAdd(details); 987return _metadataEnabledGenericCompositions.GetOrAdd(details); 994return _genericVariances.GetOrAdd(details); 1001return _externFunctionSymbols.GetOrAdd(name); 1008return _externIndirectFunctionSymbols.GetOrAdd(name); 1015return _externDataSymbols.GetOrAdd(name); 1021return _externDataSymbols.GetOrAdd(mangledName); 1028return _pInvokeModuleFixups.GetOrAdd(moduleData); 1035return _pInvokeMethodFixups.GetOrAdd(methodData); 1065return _methodGenericDictionaries.GetOrAdd(method); 1071return _typeGenericDictionaries.GetOrAdd(type); 1077return _genericDictionaryLayouts.GetOrAdd(methodOrType); 1083return _stringAllocators.GetOrAdd(stringConstructor); 1116return _unboxingStubs.GetOrAdd(method); 1128return _tentativeMethodEntrypoints.GetOrAdd(method); 1138return _tentativeMethods.GetOrAdd((IMethodBodyNode)MethodEntrypoint(method, unboxingStub)); 1146return _methodAssociatedData.GetOrAdd(methodNode); 1153return _fatFunctionPointers.GetOrAdd(new MethodKey(method, isUnboxingStub)); 1163return _fatAddressTakenFunctionPointers.GetOrAdd(new MethodKey(method, isUnboxingStub)); 1196return _gvmDependenciesNode.GetOrAdd(method); 1202return _gvmImpls.GetOrAdd(method); 1208return _genericMethodEntries.GetOrAdd(method); 1214return _exactMethodEntries.GetOrAdd(method); 1220return _gvmTableEntries.GetOrAdd(type); 1229return _addressTakenMethods.GetOrAdd(method); 1235return _reflectedDelegateTargetMethods.GetOrAdd(method); 1241return _delegateTargetMethods.GetOrAdd(method); 1247return _reflectableVirtualMethodImpls.GetOrAdd((declaration, implementation)); 1257return _reflectedDelegates.GetOrAdd(type); 1263return _reflectedMethods.GetOrAdd(method); 1269return _reflectedFields.GetOrAdd(field); 1275return _reflectedTypes.GetOrAdd(type); 1281return _notReadOnlyFields.GetOrAdd(field); 1287return _genericStaticBaseInfos.GetOrAdd(type); 1293return _objectGetTypeCalled.GetOrAdd(type); 1299return _objectGetTypeFlowDependencies.GetOrAdd(type); 1417return _variantMethods.GetOrAdd(decl); 1424return _interfaceUses.GetOrAdd(type); 1431return _readyToRunHelpers.GetOrAdd(new ReadyToRunHelperKey(id, target)); 1438return _genericReadyToRunHelpersFromDict.GetOrAdd(new ReadyToRunGenericHelperKey(id, target, dictionaryOwner)); 1445return _genericReadyToRunHelpersFromType.GetOrAdd(new ReadyToRunGenericHelperKey(id, target, dictionaryOwner)); 1455return _typesWithMetadata.GetOrAdd(type); 1465return _methodsWithMetadata.GetOrAdd(method); 1475return _methodsWithLimitedMetadata.GetOrAdd(method); 1485return _fieldsWithMetadata.GetOrAdd(field); 1495return _propertiesWithMetadata.GetOrAdd(property); 1505return _eventsWithMetadata.GetOrAdd(@event); 1515return _modulesWithMetadata.GetOrAdd(module); 1521return _inlineableStringResources.GetOrAdd(module); 1531return _customAttributesWithMetadata.GetOrAdd(ca); 1541return _parametersWithMetadata.GetOrAdd(ca); 1548return _frozenStringNodes.GetOrAdd(data); 1555return _frozenObjectNodes.GetOrAdd(new SerializedFrozenObjectKey(owningType, allocationSiteId, data)); 1562return _frozenMetadataRuntimeTypeNodes.GetOrAdd(type); 1569return _frozenNecessaryRuntimeTypeNodes.GetOrAdd(type); 1576return _eagerCctorIndirectionNodes.GetOrAdd(cctorMethod); 1594return _delegateMarshalingDataNodes.GetOrAdd(type); 1601return _structMarshalingDataNodes.GetOrAdd(type); 1608return _externalTypeMapRequests.GetOrAdd(type); 1615return _proxyTypeMapRequests.GetOrAdd(type); 1621return _analysisCharacteristics.GetOrAdd(ch); 1630return _wasmTypeNodes.GetOrAdd(WasmLowering.GetSignature(desc).FuncType); 1635return _wasmTypeNodes.GetOrAdd(WasmFuncType.FromCorInfoSignature(types));
Compiler\DependencyAnalysis\NodeFactory.GenericLookups.cs (15)
105return _typeSymbols.GetOrAdd(type); 112return _necessaryTypeSymbols.GetOrAdd(type); 119return _metadataTypeSymbols.GetOrAdd(type); 129return _unwrapNullableSymbols.GetOrAdd(type); 144return _methodHandles.GetOrAdd(method); 151return _fieldHandles.GetOrAdd(field); 158return _typeThreadStaticBaseIndexSymbols.GetOrAdd(type); 165return _typeGCStaticBaseSymbols.GetOrAdd(type); 172return _typeNonGCStaticBaseSymbols.GetOrAdd(type); 179return _methodDictionaries.GetOrAdd(method); 186return _dispatchCells.GetOrAdd(method); 193return _methodEntrypoints.GetOrAdd(new MethodKey(method, isUnboxingThunk)); 200return _objectAllocators.GetOrAdd(type); 207return _defaultCtors.GetOrAdd(type); 213return _constrainedMethodUses.GetOrAdd(new ConstrainedMethodUseKey(constrainedMethod, constraintType, directCall));
Compiler\DependencyAnalysis\NodeFactory.NativeLayout.cs (24)
217return _typeSignatures.GetOrAdd(type); 223return _methodSignatures.GetOrAdd(signature); 229return _placedSignatures.GetOrAdd(vertexNode); 279return _placedVertexSequence.GetOrAdd(new VertexSequenceKey(vertices)); 312return _placedUIntVertexSequence.GetOrAdd(uints); 318return _methodEntries.GetOrAdd(method); 324return _templateMethodEntries.GetOrAdd(method); 330return _templateMethodLayouts.GetOrAdd(method); 336return _templateTypeLayouts.GetOrAdd(GenericTypesTemplateMap.ConvertArrayOfTToRegularArray(_factory, type)); 342return _typeHandle_GenericDictionarySlots.GetOrAdd(type); 348return _gcStatic_GenericDictionarySlots.GetOrAdd(type); 354return _nonGcStatic_GenericDictionarySlots.GetOrAdd(type); 360return _unwrapNullable_GenericDictionarySlots.GetOrAdd(type); 366return _allocateObject_GenericDictionarySlots.GetOrAdd(type); 372return _threadStaticIndex_GenericDictionarySlots.GetOrAdd(type); 378return _defaultConstructor_GenericDictionarySlots.GetOrAdd(type); 384return _interfaceCell_GenericDictionarySlots.GetOrAdd(method); 390return _gvmCell_GenericDictionarySlots.GetOrAdd(method); 396return _methodDictionary_GenericDictionarySlots.GetOrAdd(method); 449return _methodEntrypoint_GenericDictionarySlots.GetOrAdd(new MethodEntrypointSlotKey(method, unboxing, functionPointerTarget)); 455return _fieldLdToken_GenericDictionarySlots.GetOrAdd(field); 461return _methodLdToken_GenericDictionarySlots.GetOrAdd(method); 467return _dictionarySignatures.GetOrAdd(owningMethodOrType); 473return _constrainedMethodUseSlots.GetOrAdd(new ConstrainedMethodUseKey(constrainedMethod, constraintType, directCall));