1 write to _compilation
ILCompiler.RyuJit (1)
JitInterface\CorInfoImpl.RyuJit.cs (1)
46_compilation = compilation;
186 references to _compilation
ILCompiler.RyuJit (186)
JitInterface\CorInfoImpl.RyuJit.cs (114)
59MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, _compilation.TypeSystemContext.GeneratedAssembly.GetGlobalModuleType()); 61entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.MethodEntrypoint(asyncResumptionStub)); 70methodIL ??= _compilation.GetMethodIL(MethodBeingCompiled); 89IEETypeNode expectedeetype = _compilation.NecessaryTypeSymbolIfPossible(eetype.Type); 258if (_compilation.NeedsRuntimeLookup(helperId, entity)) 260GenericDictionaryLookup genericLookup = _compilation.ComputeGenericLookup(callerHandle, helperId, entity); 314ISymbolNode constLookup = _compilation.ComputeConstantLookup(helperId, entity); 337pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(helperId, type)); 407targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(directMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)constrainedType); 409targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(directMethod.GetTypicalMethodDefinition(), (InstantiatedType)constrainedType); 433DelegateCreationInfo delegateInfo = _compilation.GetDelegateCtor(delegateTypeDesc, targetMethod, constrainedType, isLdvirtftn); 456pLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, delegateInfo)); 607return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFast"u8)); 609return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizable"u8)); 611return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastAlign8"u8)); 613return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizableAlign8"u8)); 615return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastMisalign"u8)); 620return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewPtrArrayFast"u8)); 622return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFastAlign8"u8)); 624return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFast"u8)); 627return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpStackProbe"u8)); 630return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpGcPoll"u8)); 765return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)); 767return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)); 773if ((_compilation._compilationOptions & RyuJitCompilationOptions.ControlFlowGuardAnnotations) != 0 775&& _compilation.NodeFactory.TypeSystemContext.Target.Architecture != TargetArchitecture.X86) 776return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatchGuarded"u8)); 777return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatch"u8)); 779return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpResolveInterfaceMethodFast"u8)); 796return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8)); 798return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8)); 806JitHelper.GetEntryPoint(_compilation.TypeSystemContext, id, out mangledName, out methodDesc); 811entryPoint = _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String(mangledName)); 813entryPoint = _compilation.NodeFactory.MethodEntrypoint(methodDesc); 830pResult = CreateConstLookupToSymbol(_compilation.NodeFactory.MethodEntrypoint(method)); 871stringObject = _compilation.NodeFactory.SerializedStringObject(""); 876stringObject = _compilation.NodeFactory.SerializedStringObject((string)literal); 966var typeSymbol = _compilation.NecessaryTypeSymbolIfPossible(type); 968RelocType rel = (_compilation.NodeFactory.Target.IsWindows) ? 1071_debugInfo = _compilation.GetDebugInfo(methodIL); 1079return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType); 1083return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle); 1103|| _compilation.TypeSystemContext.IsGenericArrayInterfaceType(type)) 1177if (elementType.GetElementSize().AsInt == _compilation.TypeSystemContext.Target.PointerSize) 1197_compilation.DetectGenericCycles(methodIL.OwningMethod, method); 1200return _compilation.NodeFactory.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk); 1287_compilation.NodeFactory.MetadataManager.NoteOverridingMethod(method, directMethod); 1375canDevirt = _compilation.IsEffectivelySealed(targetMethod); 1422lookupMethod = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)runtimeDeterminedConstrainedType); 1424lookupMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)runtimeDeterminedConstrainedType); 1473CreateConstLookupToSymbol(_compilation.NodeFactory.FatFunctionPointer(targetMethod)); 1486targetMethod = _compilation.ExpandIntrinsicForCallsite(targetMethod, methodIL.OwningMethod); 1501_compilation.NodeFactory.StringAllocator(targetMethod) 1537instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 1542instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1579if (!_compilation.NeedsRuntimeLookup(constrainedHelperId, constrainedCallInfo)) 1599MethodDesc targetOfLookup = _compilation.GetTargetOfGenericVirtualMethodCall((MethodDesc)GetRuntimeDeterminedObjectForToken(ref pResolvedToken)); 1601_compilation.DetectGenericCycles( 1636_compilation.NodeFactory.InterfaceDispatchCell(targetMethod 1665pResult->codePointerOrStubLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("NYI_LDVIRTFTN"u8))); 1679_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod)); 1711ISymbolNode typeHandleSymbol = _compilation.NecessaryTypeSymbolIfPossible(type); 1817DictionaryLayoutNode contextLayout = _compilation.NodeFactory.GenericDictionaryLayout( 1826helperId = _compilation.GetLdTokenHelperForType(td); 1843RuntimeMethodHandleNode methodHandleSymbol = _compilation.NodeFactory.RuntimeMethodHandle(method); 1861int pointerSize = _compilation.TypeSystemContext.Target.PointerSize; 1867Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(_compilation.NodeFactory)); 1874int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(_compilation.NodeFactory, methodDesc, owningType); 1880if (_compilation.NeedsSlotUseTracking(owningType)) 1881(_additionalDependencies ??= new ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<NodeFactory>.DependencyList()).Add(_compilation.NodeFactory.VirtualMethodUse(methodDesc), "Virtual method call"); 1934Utf8String externName = new Utf8String(_compilation.PInvokeILProvider.GetDirectCallExternName(md)); 1935externName = _compilation.NodeFactory.NameMangler.NodeMangler.ExternMethod(externName, md); 1937pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(externName)); 1944*ppCookieVal = (IntPtr*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("__security_cookie"u8))); 1961MethodDesc stub = _compilation.PInvokeILProvider.GetCalliStub( 1977if (_compilation.HasLazyStaticConstructor(owningType) && !((MetadataType)owningType).IsBeforeFieldInit) 1997MethodDesc stub = _compilation.PInvokeILProvider.GetCalliStub( 2010if (_compilation.GetMethodIL(method) is Internal.IL.Stubs.PInvokeILStubMethodIL stub) 2034if (_compilation.TypeSystemContext.Target.Architecture == TargetArchitecture.ARM) 2080return (int*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("RhpTrapThreads"u8))); 2104fieldOffset += _compilation.NodeFactory.ThreadStaticBaseOffset(mt); 2118ISymbolNode node = _compilation.GetFieldRvaData(field); 2123if (_compilation.HasLazyStaticConstructor(field.OwningType)) 2158helper = _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup( 2164helper = _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup( 2190ISortableSymbolNode index = _compilation.NodeFactory.TypeThreadStaticIndex(field.OwningType); 2196if (_compilation.HasLazyStaticConstructor(field.OwningType)) 2207else if (!_compilation.HasLazyStaticConstructor(field.OwningType)) 2214baseAddr = _compilation.NodeFactory.TypeGCStaticsSymbol(field.OwningType); 2219baseAddr = _compilation.NodeFactory.TypeNonGCStaticsSymbol(field.OwningType); 2240_compilation.NodeFactory.ReadyToRunHelper(helperId, field.OwningType)); 2249if (_compilation.IsInitOnly(field)) 2273if (_compilation.TypeSystemContext.IsArrayVariantCastable(type)) 2280return !_compilation.CanReferenceConstructedTypeOrCanonicalFormOfType(type) 2281&& (type == canonType || !_compilation.CanReferenceConstructedMethodTable(canonType)); 2303if (_compilation.IsEffectivelySealed(type)) 2309TypeDesc[] implClasses = _compilation.GetImplementingClasses(type); 2337if (!field.IsThreadStatic && _compilation.IsInitOnly(field) && field.OwningType is MetadataType owningType) 2344PreinitializationManager preinitManager = _compilation.NodeFactory.PreinitializationManager; 2350int targetPtrSize = _compilation.TypeSystemContext.Target.PointerSize; 2366if (value.GetRawData(_compilation.NodeFactory, out object data)) 2415int strDataOffset = _compilation.TypeSystemContext.Target.PointerSize + sizeof(int); // 12 on 64bit 2442return ObjectToHandle(_compilation.NecessaryRuntimeTypeIfPossible(type)); 2468addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2470offset = -NonGCStaticsNode.GetClassConstructorContextSize(_compilation.NodeFactory.Target); 2480addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeGCStaticsSymbol(type)); 2485addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2493pInfo->tlsIndexObject = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternDataSymbol(new Utf8String("_tls_index"u8))); 2494pInfo->tlsRootObject = CreateConstLookupToSymbol(_compilation.NodeFactory.TlsRoot); 2495pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(_compilation.NodeFactory.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow)); 2496pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("__tls_get_addr"u8)));
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (72)
187return _compilation.Logger; 410if (_compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.ARM64 411&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.LoongArch64 412&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.RiscV64) 449_compilation.NodeFactory.Target.MinimumFunctionAlignment : 450_compilation.NodeFactory.Target.OptimumFunctionAlignment; 578CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies, _compilation.NodeFactory, MethodBeingCompiled, methodIL); 638return _compilation.TypeSystemContext.Target.PointerSize; 998if (_compilation.TypeSystemContext.Target.Architecture == TargetArchitecture.X86) 1108if (_compilation.IsEffectivelySealed(method.GetUnboxedMethod())) 1113if (_compilation.IsEffectivelySealed(method)) 1227method = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type); 1253MethodDesc instantiatedMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType); 1256instantiatedMethod = _compilation.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation); 1265if (!_compilation.CanInline(MethodBeingCompiled, method)) 1268MethodIL methodIL = method.IsUnboxingThunk() ? null : _compilation.GetMethodIL(method); 1297var calleeIL = _compilation.GetMethodIL(calleeMethod); 1306if (_compilation.CanInline(callerMethod, calleeMethod)) 1330var methodIL = _compilation.GetMethodIL(HandleToObject(ftn)); 1376decl = _compilation.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc); 1380MethodDesc originalImpl = _compilation.ResolveVirtualMethod(decl, objType, out info->detail); 1519MethodILScope scope = jitInterface._compilation.GetMethodIL(methodWithToken.Method); 1601MetadataType placeholderType = _compilation.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false); 1805result = _compilation.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result); 1880_compilation.TypeSystemContext.EnsureLoadableMethod(method); 1893_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, method); 1907? _compilation.TypeSystemContext.GetAsyncVariantMethod(method) 1938_compilation.TypeSystemContext.EnsureLoadableType(owningClass); 1942_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, field); 1969_compilation.TypeSystemContext.EnsureLoadableType(type); 1988if (_compilation.IsFatPointerCandidate(methodIL.OwningMethod, methodSig)) 2017return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(result)); 2185if (_compilation.IsEffectivelySealed(type)) 2764!_compilation.HasLazyStaticConstructor(type) 2864return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.Object)); 2867return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference)); 2870return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle)); 2873return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle)); 2876return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle)); 2879ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle", _compilation.TypeSystemContext.SystemModule); 2883return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.String)); 2886return ObjectToHandle(_compilation.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8)); 3081return _compilation.IsEffectivelySealed(type); 3195return (void*)ObjectToHandle(_compilation.GetFieldRvaData(fd)); 3459if (_compilation.NodeFactory.Target.IsWasm) 3464else if (_compilation.NodeFactory.Target.IsWindows) 3474pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3479DefType continuation = _compilation.TypeSystemContext.ContinuationType; 3485DefType asyncHelpers = _compilation.TypeSystemContext.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8); 3506return ObjectToHandle(_compilation.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap())); 3656HandleToObject(structHnd), _compilation.TypeSystemContext.Target.Architecture); 3937=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !_compilation.TypeSystemContext.Target.IsWindows; 4076var target = _compilation.TypeSystemContext.Target; 4343switch (_compilation.TypeSystemContext.Target.Architecture) 4360TargetArchitecture arch = _compilation.TypeSystemContext.Target.Architecture; 4427return owningMetadataType.Module == _compilation.TypeSystemContext.SystemModule; 4436flags.InstructionSetFlags.Add(_compilation.InstructionSetSupport.OptimisticFlags); 4446TargetArchitecture targetArchitecture = _compilation.TypeSystemContext.Target.Architecture; 4453Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base)); 4457Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd)); 4461if (targetArchitecture == TargetArchitecture.ARM && !_compilation.TypeSystemContext.Target.IsWindows) 4513|| (_compilation.TypeSystemContext.IsSpecialUnboxingThunk(this.MethodBeingCompiled) && _compilation.TypeSystemContext.GetTargetOfSpecialUnboxingThunk(this.MethodBeingCompiled).IsAsyncCall()) 4514|| (_compilation.TypeSystemContext.IsDefaultInterfaceMethodImplementationInstantiationThunk(this.MethodBeingCompiled) && _compilation.TypeSystemContext.GetTargetOfDefaultInterfaceMethodImplementationInstantiationThunk(this.MethodBeingCompiled).IsAsyncCall()) 4622PgoSchemaElem[] pgoResultsSchemas = _compilation.ProfileData[methodDesc]?.SchemaData; 4633, _compilation.CanReferenceConstructedMethodTable 4728instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(_compilation.TypeSystemContext.Target.Architecture, instructionSet); 4730Debug.Assert(!_compilation.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet)); 4732return supportEnabled ? _compilation.InstructionSetSupport.IsInstructionSetSupported(instructionSet) : false;