1 write to _compilation
ILCompiler.RyuJit (1)
JitInterface\CorInfoImpl.RyuJit.cs (1)
46_compilation = compilation;
193 references to _compilation
ILCompiler.RyuJit (193)
JitInterface\CorInfoImpl.RyuJit.cs (113)
59MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, _compilation.TypeSystemContext.GeneratedAssembly.GetGlobalModuleType()); 61entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.MethodEntrypoint(asyncResumptionStub)); 70methodIL ??= _compilation.GetMethodIL(MethodBeingCompiled); 282if (_compilation.NeedsRuntimeLookup(helperId, entity)) 284GenericDictionaryLookup genericLookup = _compilation.ComputeGenericLookup(callerHandle, helperId, entity); 338ISymbolNode constLookup = _compilation.ComputeConstantLookup(helperId, entity); 361pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(helperId, type)); 431targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(directMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)constrainedType); 433targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(directMethod.GetTypicalMethodDefinition(), (InstantiatedType)constrainedType); 457DelegateCreationInfo delegateInfo = _compilation.GetDelegateCtor(delegateTypeDesc, targetMethod, constrainedType, isLdvirtftn); 480pLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, delegateInfo)); 631return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFast"u8)); 633return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizable"u8)); 635return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastAlign8"u8)); 637return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizableAlign8"u8)); 639return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastMisalign"u8)); 644return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewPtrArrayFast"u8)); 646return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFastAlign8"u8)); 648return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFast"u8)); 651return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpStackProbe"u8)); 654return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpGcPoll"u8)); 789return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)); 791return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)); 797if ((_compilation._compilationOptions & RyuJitCompilationOptions.ControlFlowGuardAnnotations) != 0 799&& _compilation.NodeFactory.TypeSystemContext.Target.Architecture != TargetArchitecture.X86) 800return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatchGuarded"u8)); 801return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatch"u8)); 803return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpResolveInterfaceMethodFast"u8)); 814return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8)); 816return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8)); 824JitHelper.GetEntryPoint(_compilation.TypeSystemContext, id, out mangledName, out methodDesc); 829entryPoint = _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String(mangledName)); 831entryPoint = _compilation.NodeFactory.MethodEntrypoint(methodDesc); 848pResult = CreateConstLookupToSymbol(_compilation.NodeFactory.MethodEntrypoint(method)); 858stringObject = _compilation.NodeFactory.SerializedStringObject(""); 863stringObject = _compilation.NodeFactory.SerializedStringObject((string)literal); 953var typeSymbol = _compilation.NecessaryTypeSymbolIfPossible(type); 955RelocType rel = (_compilation.NodeFactory.Target.IsWindows) ? 1058_debugInfo = _compilation.GetDebugInfo(methodIL); 1066return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType); 1070return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle); 1090|| _compilation.TypeSystemContext.IsGenericArrayInterfaceType(type)) 1164if (elementType.GetElementSize().AsInt == _compilation.TypeSystemContext.Target.PointerSize) 1184_compilation.DetectGenericCycles(methodIL.OwningMethod, method); 1187return _compilation.NodeFactory.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk); 1274_compilation.NodeFactory.MetadataManager.NoteOverridingMethod(method, directMethod); 1362canDevirt = _compilation.IsEffectivelySealed(targetMethod); 1409lookupMethod = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)runtimeDeterminedConstrainedType); 1411lookupMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)runtimeDeterminedConstrainedType); 1471CreateConstLookupToSymbol(_compilation.NodeFactory.FatFunctionPointer(targetMethod)); 1484targetMethod = _compilation.ExpandIntrinsicForCallsite(targetMethod, methodIL.OwningMethod); 1499_compilation.NodeFactory.StringAllocator(targetMethod) 1535instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 1540instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1577if (!_compilation.NeedsRuntimeLookup(constrainedHelperId, constrainedCallInfo)) 1597MethodDesc targetOfLookup = _compilation.GetTargetOfGenericVirtualMethodCall((MethodDesc)GetRuntimeDeterminedObjectForToken(ref pResolvedToken)); 1599_compilation.DetectGenericCycles( 1619_compilation.NodeFactory.DispatchCell(targetOfLookup 1652_compilation.NodeFactory.DispatchCell(targetMethod 1681pResult->codePointerOrStubLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("NYI_LDVIRTFTN"u8))); 1695_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod)); 1725ISymbolNode typeHandleSymbol = _compilation.NecessaryTypeSymbolIfPossible(type); 1831DictionaryLayoutNode contextLayout = _compilation.NodeFactory.GenericDictionaryLayout( 1840helperId = _compilation.GetLdTokenHelperForType(td); 1857RuntimeMethodHandleNode methodHandleSymbol = _compilation.NodeFactory.RuntimeMethodHandle(method); 1875int pointerSize = _compilation.TypeSystemContext.Target.PointerSize; 1881Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(_compilation.NodeFactory)); 1888int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(_compilation.NodeFactory, methodDesc, owningType); 1894if (_compilation.NeedsSlotUseTracking(owningType)) 1895(_additionalDependencies ??= new ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<NodeFactory>.DependencyList()).Add(_compilation.NodeFactory.VirtualMethodUse(methodDesc), "Virtual method call"); 1948Utf8String externName = new Utf8String(_compilation.PInvokeILProvider.GetDirectCallExternName(md)); 1949externName = _compilation.NodeFactory.NameMangler.NodeMangler.ExternMethod(externName, md); 1951pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(externName)); 1958*ppCookieVal = (IntPtr*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("__security_cookie"u8))); 1991if (_compilation.HasLazyStaticConstructor(owningType) && !((MetadataType)owningType).IsBeforeFieldInit) 2011MethodDesc stub = _compilation.PInvokeILProvider.GetCalliStub( 2024if (_compilation.GetMethodIL(method) is Internal.IL.Stubs.PInvokeILStubMethodIL stub) 2048if (_compilation.TypeSystemContext.Target.Architecture == TargetArchitecture.ARM) 2094return (int*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("RhpTrapThreads"u8))); 2118fieldOffset += _compilation.NodeFactory.ThreadStaticBaseOffset(mt); 2132ISymbolNode node = _compilation.GetFieldRvaData(field); 2137if (_compilation.HasLazyStaticConstructor(field.OwningType)) 2172helper = _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup( 2178helper = _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup( 2204ISortableSymbolNode index = _compilation.NodeFactory.TypeThreadStaticIndex(field.OwningType); 2210if (_compilation.HasLazyStaticConstructor(field.OwningType)) 2228baseAddr = _compilation.NodeFactory.TypeGCStaticsSymbol(field.OwningType); 2233baseAddr = _compilation.NodeFactory.TypeNonGCStaticsSymbol(field.OwningType); 2237if (_compilation.HasLazyStaticConstructor(field.OwningType)) 2246_compilation.NodeFactory.ReadyToRunHelper(helperId, field.OwningType)); 2255if (_compilation.IsInitOnly(field)) 2279if (_compilation.TypeSystemContext.IsArrayVariantCastable(type)) 2286return !_compilation.CanReferenceConstructedTypeOrCanonicalFormOfType(type) 2287&& (type == canonType || !_compilation.CanReferenceConstructedMethodTable(canonType)); 2309if (_compilation.IsEffectivelySealed(type)) 2315TypeDesc[] implClasses = _compilation.GetImplementingClasses(type); 2343if (!field.IsThreadStatic && _compilation.IsInitOnly(field) && field.OwningType is MetadataType owningType) 2350PreinitializationManager preinitManager = _compilation.NodeFactory.PreinitializationManager; 2356int targetPtrSize = _compilation.TypeSystemContext.Target.PointerSize; 2372if (value.GetRawData(_compilation.NodeFactory, out object data)) 2421int strDataOffset = _compilation.TypeSystemContext.Target.PointerSize + sizeof(int); // 12 on 64bit 2448return ObjectToHandle(_compilation.NecessaryRuntimeTypeIfPossible(type)); 2474addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2476offset = -NonGCStaticsNode.GetClassConstructorContextSize(_compilation.NodeFactory.Target); 2486addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeGCStaticsSymbol(type)); 2491addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2499pInfo->tlsIndexObject = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternDataSymbol(new Utf8String("_tls_index"u8))); 2500pInfo->tlsRootObject = CreateConstLookupToSymbol(_compilation.NodeFactory.TlsRoot); 2501pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(_compilation.NodeFactory.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow)); 2502pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("__tls_get_addr"u8)));
parent\parent\Common\JitInterface\CorInfoImpl.cs (80)
188get => field ??= _compilation.TypeSystemContext.SystemModule.GetType( 208return _compilation.Logger; 431if (_compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.ARM64 432&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.LoongArch64 433&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.RiscV64) 473_compilation.NodeFactory.Target.MinimumFunctionAlignment : 474_compilation.NodeFactory.Target.OptimumFunctionAlignment; 602CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies, _compilation.NodeFactory, MethodBeingCompiled, methodIL); 662return _compilation.TypeSystemContext.Target.PointerSize; 1022if (_compilation.TypeSystemContext.Target.Architecture == TargetArchitecture.X86) 1162if (_compilation.IsEffectivelySealed(method.GetUnboxedMethod())) 1167if (_compilation.IsEffectivelySealed(method)) 1315method = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type); 1341MethodDesc instantiatedMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType); 1344instantiatedMethod = _compilation.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation); 1353if (!_compilation.CanInline(MethodBeingCompiled, method)) 1357MethodIL methodIL = method.IsUnboxingThunk() ? null : _compilation.GetMethodIL(method); 1396var calleeIL = _compilation.GetMethodIL(calleeMethod); 1405if (_compilation.CanInline(callerMethod, calleeMethod)) 1429var methodIL = _compilation.GetMethodIL(HandleToObject(ftn)); 1475decl = _compilation.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc); 1479MethodDesc originalImpl = _compilation.ResolveVirtualMethod(decl, objType, out info->detail); 1649info->instParamLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ConstructedTypeSymbol(originalImpl.OwningType)); 1688MethodILScope scope = jitInterface._compilation.GetMethodIL(methodWithToken.Method); 1748MetadataType placeholderType = _compilation.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false); 1952result = _compilation.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result); 2027_compilation.TypeSystemContext.EnsureLoadableMethod(method); 2040_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, method); 2046? _compilation.TypeSystemContext.GetAsyncVariantMethod(method) 2077_compilation.TypeSystemContext.EnsureLoadableType(owningClass); 2081_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, field); 2108_compilation.TypeSystemContext.EnsureLoadableType(type); 2147if (_compilation.IsFatPointerCandidate(methodIL.OwningMethod, methodSig)) 2176return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(result)); 2344if (_compilation.IsEffectivelySealed(type)) 2921!_compilation.HasLazyStaticConstructor(type) 3021return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.Object)); 3024return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference)); 3027return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle)); 3030return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle)); 3033return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle)); 3036ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle", _compilation.TypeSystemContext.SystemModule); 3040return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.String)); 3043return ObjectToHandle(_compilation.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8)); 3046return ObjectToHandle(_compilation.TypeSystemContext.SystemModule.GetKnownType("System.Numerics"u8, "Vector`1"u8)); 3241return _compilation.IsEffectivelySealed(type); 3355return (void*)ObjectToHandle(_compilation.GetFieldRvaData(fd)); 3637if (_compilation.NodeFactory.Target.IsWasm) 3642else if (_compilation.NodeFactory.Target.IsWindows) 3652pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3657DefType continuation = _compilation.TypeSystemContext.ContinuationType; 3663DefType asyncHelpers = _compilation.TypeSystemContext.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8); 3679NodeFactory factory = _compilation.NodeFactory; 3690WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3707CompilerTypeSystemContext context = _compilation.TypeSystemContext; 3788CompilerTypeSystemContext context = _compilation.TypeSystemContext; 3857return ObjectToHandle(_compilation.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap())); 4007HandleToObject(structHnd), _compilation.TypeSystemContext.Target.Architecture); 4291=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !_compilation.TypeSystemContext.Target.IsWindows; 4430var target = _compilation.TypeSystemContext.Target; 4736switch (_compilation.TypeSystemContext.Target.Architecture) 4755return (uint)node.GetAlignment(_compilation.NodeFactory); 4764TargetArchitecture arch = _compilation.TypeSystemContext.Target.Architecture; 4831return owningMetadataType.Module == _compilation.TypeSystemContext.SystemModule; 4840flags.InstructionSetFlags.Add(_compilation.InstructionSetSupport.OptimisticFlags); 4850TargetArchitecture targetArchitecture = _compilation.TypeSystemContext.Target.Architecture; 4857Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base)); 4861Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd)); 4865if (targetArchitecture == TargetArchitecture.ARM && !_compilation.TypeSystemContext.Target.IsWindows) 4920|| (_compilation.TypeSystemContext.IsSpecialUnboxingThunk(this.MethodBeingCompiled) && _compilation.TypeSystemContext.GetTargetOfSpecialUnboxingThunk(this.MethodBeingCompiled).IsAsyncCall()) 4921|| (_compilation.TypeSystemContext.IsDefaultInterfaceMethodImplementationInstantiationThunk(this.MethodBeingCompiled) && _compilation.TypeSystemContext.GetTargetOfDefaultInterfaceMethodImplementationInstantiationThunk(this.MethodBeingCompiled).IsAsyncCall()) 5029PgoSchemaElem[] pgoResultsSchemas = _compilation.ProfileData[methodDesc]?.SchemaData; 5040, _compilation.CanReferenceConstructedMethodTable 5135instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(_compilation.TypeSystemContext.Target.Architecture, instructionSet); 5137Debug.Assert(!_compilation.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet)); 5139return supportEnabled ? _compilation.InstructionSetSupport.IsInstructionSetSupported(instructionSet) : false;