51 references to GetOrAdd
ILCompiler.ReadyToRun (51)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (30)
136return _localMethodCache.GetOrAdd(method); 143return _allMethodsOnType.GetOrAdd(type.ConvertToCanonForm(CanonicalFormKind.Specific)); 150return _inheritedVirtualMethods.GetOrAdd(type); 157return _arrayInterfaceMethods.GetOrAdd((ArrayType)arrayType.ConvertToCanonForm(CanonicalFormKind.Specific)); 194return _gvmDependenciesNode.GetOrAdd(canonSlotMethodDefinition.MakeInstantiatedMethod(canonMethod.Instantiation)); 205return _virtualMethodUseNodes.GetOrAdd(canonMethod); 212return _genericReadyToRunHelpersFromDict.GetOrAdd(new ReadyToRunGenericHelperKey(id, target, dictionaryOwner)); 219return _genericReadyToRunHelpersFromType.GetOrAdd(new ReadyToRunGenericHelperKey(id, target, dictionaryOwner)); 569return _constructedHelpers.GetOrAdd(helperId); 613return _importMethods.GetOrAdd(key); 702return _methodSignatures.GetOrAdd(new MethodFixupKey(fixupKind, key)); 737return _typeSignatures.GetOrAdd(fixupKey); 781return _virtualResolutionSignatures.GetOrAdd(new VirtualResolutionFixupSignatureFixupKey(fixupKind, declMethod, implType, implMethod)); 806return _ilBodySignatures.GetOrAdd(new ILBodyFixupSignatureFixupKey(fixupKind, method)); 848return _importThunks.GetOrAdd(thunkKey); 896return _wasmImportThunks.GetOrAdd(thunkKey); 929return _wasmImportThunkPortableEntrypoints.GetOrAdd(thunkKey); 935return _wasmR2RToInterpreterThunks.GetOrAdd(wasmSignature); 941return _wasmInterpreterToR2RThunks.GetOrAdd(wasmSignature); 1271return _dynamicHelperCellCache.GetOrAdd(key); 1278return _copiedCorHeaders.GetOrAdd(module); 1285return _debugDirectoryEntries.GetOrAdd(new ModuleAndIntValueKey(debugDirEntryIndex, module)); 1292return _copiedMetadataBlobs.GetOrAdd(module); 1299return _copiedMethodIL.GetOrAdd(method); 1315return _copiedFieldRvas.GetOrAdd(new ModuleAndIntValueKey(ecmaField.GetFieldRvaValue(), ecmaField.Module)); 1322return _copiedStrongNameSignatures.GetOrAdd(module); 1329return _copiedManagedResources.GetOrAdd(module); 1362return _wasmTypeNodes.GetOrAdd(funcType); 1367return _wasmTypeNodes.GetOrAdd(signature.FuncType); 1375return _wasmTypeNodes.GetOrAdd(funcType);
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (21)
209return _continuationTypeFixups.GetOrAdd(key); 216return _importStrings.GetOrAdd(moduleToken); 304return _r2rHelpers.GetOrAdd(new ReadyToRunHelperKey(id, target)); 313return _instructionSetSupportFixups.GetOrAdd(key); 455return _fieldAddressCache.GetOrAdd(fieldWithToken); 462return _fieldOffsetCache.GetOrAdd(fieldWithToken); 469return _checkFieldOffsetCache.GetOrAdd(fieldWithToken); 476return _fieldBaseOffsetCache.GetOrAdd(typeDesc); 483return _rvaFieldAddressCache.GetOrAdd(fieldWithToken); 491return _dispatchCells.GetOrAdd(cellKey); 504return _delegateCtors.GetOrAdd(ctorKey); 511return _checkTypeLayoutCache.GetOrAdd(type); 521return _virtualFunctionOverrideCache.GetOrAdd(_codegenNodeFactory.VirtualResolutionFixupSignature(fixupKind, declMethod, implType, implMethod)); 528return _ilBodyFixupsCache.GetOrAdd(_codegenNodeFactory.ILBodyFixupSignature( 536return _ecmaModuleFixupCache.GetOrAdd(module); 696return _genericLookupHelpers.GetOrAdd(key); 706return _genericLookupHelpers.GetOrAdd(key); 716return _genericLookupHelpers.GetOrAdd(key); 750return _pInvokeTargetNodes.GetOrAdd(new PInvokeTargetKey(methodWithToken, isIndirect: true)); 755return _pInvokeTargetNodes.GetOrAdd(new PInvokeTargetKey(methodWithToken, isIndirect: false)); 760return _resumptionStubEntryPointFixups.GetOrAdd(resumptionStub);