1 write to _compilation
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
511_compilation = compilation;
277 references to _compilation
ILCompiler.ReadyToRun (277)
JitInterface\CorInfoImpl.ReadyToRun.cs (174)
533AddPrecodeFixup(_compilation.SymbolNodeFactory.ResumptionStubEntryPoint(compiledStubNode)); 538MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType); 539AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 541entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 734_compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 756_compilation.DeterminismCheckFailed = true; 757_compilation.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{_compilation.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure."); 759else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 772_compilation.PrepareForCompilationRetry(_methodCodeNode, _ilBodiesNeeded); 836if (ShouldSkipCompilation(_compilation.InstructionSetSupport, MethodBeingCompiled, _compilation)) 849MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 864if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 875if ((methodIL.GetMethodILScopeDefinition() is IEcmaMethodIL && _compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && ecmaMethod.Module == typicalDef.Context.SystemModule) || 876(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 877_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 879ISymbolNode ilBodyNode = _compilation.SymbolNodeFactory.CheckILBodyFixupSignature(typicalDef); 884var resolver = _compilation.NodeFactory.Resolver; 885if (_compilation.CompilationModuleGroup.VersionsWithModule(ecmaMethod.Module)) 895EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 898resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 910if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 914_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 973_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 984if (_compilation.NodeFactory.Target.IsWasm) 999pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewHelper, type)); 1009pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewArr1, type)); 1022pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.IsInstanceOf, type)); 1035pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.CastClass, type)); 1047pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(helperId, type)); 1075MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 1095AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckTypeLayout(signature.ReturnType)); 1103AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckTypeLayout(parameterType)); 1110pLookup.constLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.DelegateCtor(delegateTypeDesc, targetMethod)); 1118_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(helperMethod, true, true), 1123_compilation.SymbolNodeFactory.EagerReadyToRunMethodEntry(helperMethodWithToken), 1130_compilation.TypeSystemContext, 1134_compilation.IsDirectManagedHelperEligible(managedHelper)) 1136Debug.Assert(_compilation.CompilationModuleGroup.ContainsMethodBody(managedHelper, unboxingStub: false)); 1138return _compilation.NodeFactory.CompiledMethodNode(managedHelper); 1489return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1496var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1499_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1512Debug.Assert(_compilation.NodeFactory.Target.IsWasm); 1516MetadataType systemDelegate = _compilation.TypeSystemContext.SystemModule.GetKnownType("System"u8, "Delegate"u8); 1552if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1621if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1623ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1638if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1640ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1672return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1674if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1676return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1682return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1698ISymbolNode str = _compilation.SymbolNodeFactory.StringLiteral( 1699new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1705ISymbolNode stringObject = _compilation.SymbolNodeFactory.StringLiteral( 1736&& ((TypeDesc)ResolveTokenInScope(_compilation.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception)) 1759Debug.Assert(!_compilation.NodeFactory.OptimizationFlags.StripDebugInfo); 1780Debug.Assert(!_compilation.NodeFactory.OptimizationFlags.StripDebugInfo); 1816if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1957pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.RvaFieldAddress(ComputeFieldWithToken(field, ref pResolvedToken))); 1972else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1989if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset)) 1992AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 2028if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 2035pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldAddress(ComputeFieldWithToken(field, ref pResolvedToken))); 2043if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset)) 2046AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 2050_compilation.SymbolNodeFactory.CreateReadyToRunHelper(helperId, field.OwningType) 2126MethodDesc versioningCallerMethod = _compilation.TypeSystemContext.IsUnboxingThunk(callerMethod) 2127? _compilation.TypeSystemContext.GetTargetOfUnboxingThunk(callerMethod) 2140if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) && 2141!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod)) 2196if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2208ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2212AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckVirtualFunctionOverride( 2346else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2348!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2523(_compilation.NodeFactory.Target.IsWasm && 2615return _compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type); 2684_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2709else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2723if (_compilation.NodeFactory.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8) 2733AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target"); 2748_compilation.SymbolNodeFactory.DispatchCell( 2792&& !_compilation.NodeFactory.Target.IsWasm) 2803MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2806else if (_compilation.DeferredWasmCalls is not null && 2822ISymbolNode fallback = _compilation.NodeFactory.MethodEntrypoint( 2825ISymbolNode deferredTarget = _compilation.DeferredWasmCalls.GetCall(targetMethodWithToken, fallback); 2837_compilation.NodeFactory.MethodEntrypoint( 2861_compilation.NodeFactory.DynamicHelperCell( 2868Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2890pResult->instParamLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper( 2899instParamLookup = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 2905instParamLookup = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 2962return !_compilation.NodeFactory.Resolver.GetModuleTokenForType( 3036_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 3062_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3098ISymbolNode helper = _compilation.SymbolNodeFactory.GenericLookupHelper( 3221Import import = (Import)_compilation.SymbolNodeFactory.ContinuationTypeSymbol(act); 3262symbolNode = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3289symbolNode = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3296symbolNode = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3329return !_compilation.IsLayoutFixedInCurrentVersionBubble(type) || (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !((MetadataType)type).IsNonVersionable()); 3338if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3354else if (!_compilation.IsLayoutFixedInCurrentVersionBubble(pMT)) 3362AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3372pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3377if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset)) 3380if (_compilation.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types 3381AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3385else if (_compilation.CompilationModuleGroup.TypeLayoutCompilationUnits(pMT).HasMultipleInexactCompilationUnits) 3402pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3404else if (_compilation.IsInheritanceChainLayoutFixedInCurrentVersionBubble(pMT.BaseType)) 3406if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset)) 3409if (_compilation.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types 3410AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3417AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3424if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset)) 3427if (_compilation.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types 3428AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3436pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldBaseOffset(field.OwningType)); 3459*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3464ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3497if (!_compilation.NodeFactory.Target.IsWasm) 3528_compilation.NodeFactory, 3545if (!_compilation.NodeFactory.Target.IsWasm) 3554: _compilation.NodeFactory.CompiledMethodNode((MethodDesc)targetObject); 3555relocTarget = _compilation.NodeFactory.WasmMethodFrameIdentity(method); 3571relocTarget = _compilation.NodeFactory.WasmMethodRelativeVirtualIP(_methodCodeNode); 3586_compilation.NodeFactory.WasmAsyncResumeInfoFixups.AddFixup(location, offset); 3621if (!_compilation.IsModuleInstrumented(ecmaMethod.Module)) 3654Debug.Assert(_compilation.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)); 3660|| _compilation.NodeFactory.Target.IsWasm) 3665pLookup.addr = (void*)ObjectToHandle(_compilation.SymbolNodeFactory.GetPInvokeTargetNode(methodWithToken)); 3670pLookup.addr = (void*)ObjectToHandle(_compilation.SymbolNodeFactory.GetIndirectPInvokeTargetNode(methodWithToken)); 3685if (_compilation.NodeFactory.Target.IsWasm 3686&& !_compilation.CompilationModuleGroup.IsDirectPInvoke(method)) 3693if (!_compilation.CompilationModuleGroup.VersionsWithMethodBody(method)) 3701stubIL = _compilation.GetMethodIL(method); 3705Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3763if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3782MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3820if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 3851inlineeModule != _compilation.TypeSystemContext.SystemModule && 3853(!_compilation.CompilationModuleGroup.VersionsWithModule(inlineeModule) || 3859if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 3877MethodIL methodIL = _compilation.GetMethodIL(typicalMethod); 3886else if (!_compilation.CompilationModuleGroup.VersionsWithMethodBody(typicalMethod) 3889Debug.Assert(_compilation.CompilationModuleGroup.CrossModuleInlineable(ecmaMethod) || 3890_compilation.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod)); 3891bool needsTokenTranslation = !_compilation.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod); 3899ISymbolNode ilBodyNode = _compilation.SymbolNodeFactory.CheckILBodyFixupSignature(typicalMethod); 3925if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 3936if (_compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.X64) 3945_compilation.NodeFactory.MethodEntrypoint( 3966if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 4029if (type.IsValueType && type.IsTypeDefEquivalent && !_compilation.CompilationModuleGroup.VersionsWithTypeReference(type)) 4056CompilationModuleGroup moduleGroup = _compilation.CompilationModuleGroup; 4081return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 4095if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 4106AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4124if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 4147AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4169if (_compilation.NodeFactory.Target.IsWasm) 4171MethodFixupSignature.AddVirtualEntryDependencies(_additionalDependencies, _compilation.NodeFactory, HandleToObject(method)); 4178_compilation.NodeFactory.WasmClosedStaticRetBufThunk(signature), 4183MethodSignature delegateSignature = WasmLowering.RaiseSignature(signature, _compilation.TypeSystemContext); 4188_compilation.NodeFactory.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (103)
191get => field ??= _compilation.TypeSystemContext.SystemModule.GetType( 211return _compilation.Logger; 434if (_compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.ARM64 435&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.LoongArch64 436&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.RiscV64) 470if (_compilation.DeferredWasmCalls is null) 515_compilation.NodeFactory.Target.MinimumFunctionAlignment : 516_compilation.NodeFactory.Target.OptimumFunctionAlignment; 566if (_compilation.NodeFactory.Target.IsWasm && _ehClauses is not null) 572if (_compilation.DeferredWasmCalls is not null) 574_compilation.DeferredWasmCalls.InitializeMethodData( 584if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 597_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 602TargetArchitecture architecture = _compilation.TypeSystemContext.Target.Architecture; 608var node = _compilation.SymbolNodeFactory.PerMethodInstructionSetSupportFixup(actualSupport); 627Debug.Assert(_compilation.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed"); 628_compilation.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(_additionalDependencies, _synthesizedPgoDependencies); 649InstructionSetSupport baselineSupport = _compilation.InstructionSetSupport; 716return _compilation.TypeSystemContext.Target.PointerSize; 1078if (_compilation.TypeSystemContext.Target.Architecture == TargetArchitecture.X86) 1229if (_compilation.IsEffectivelySealed(method.GetUnboxedMethod())) 1234if (_compilation.IsEffectivelySealed(method)) 1382method = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type); 1408MethodDesc instantiatedMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType); 1411instantiatedMethod = _compilation.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation); 1420if (!_compilation.CanInline(MethodBeingCompiled, method)) 1424MethodIL methodIL = method.IsUnboxingThunk() ? null : _compilation.GetMethodIL(method); 1463var calleeIL = _compilation.GetMethodIL(calleeMethod); 1472if (_compilation.CanInline(callerMethod, calleeMethod)) 1504var methodIL = _compilation.GetMethodIL(HandleToObject(ftn)); 1550decl = _compilation.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc); 1554MethodDesc originalImpl = _compilation.ResolveVirtualMethod(decl, objType, out info->detail); 1591var resolver = _compilation.NodeFactory.Resolver; 1607if (!_compilation.CompilationModuleGroup.VersionsWithTypeReference(decl.OwningType)) 1709info->instParamLookup.constLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.MethodDictionary, originalImplWithToken)); 1722info->instParamLookup.constLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeDictionary, originalImpl.OwningType)); 1732if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout) 1736ISymbolNode virtualResolutionNode = _compilation.SymbolNodeFactory.CheckVirtualFunctionOverride(methodWithTokenDecl, objType, methodWithTokenImpl); 1763MethodILScope scope = jitInterface._compilation.GetMethodIL(methodWithToken.Method); 1824if (!_compilation.CompilationModuleGroup.VersionsWithType(t)) 1860MetadataType placeholderType = _compilation.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false); 2058result = _compilation.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result); 2119if (!_compilation.CompilationModuleGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition())) 2125recordToken = (_compilation.CompilationModuleGroup.VersionsWithType(owningType) || _compilation.CompilationModuleGroup.CrossModuleInlineableType(owningType)) && owningType is EcmaType; 2133_compilation.TypeSystemContext.EnsureLoadableMethod(method); 2141var resolver = _compilation.NodeFactory.Resolver; 2152? _compilation.TypeSystemContext.GetAsyncVariantMethod(method) 2183_compilation.TypeSystemContext.EnsureLoadableType(owningClass); 2199_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 2214_compilation.TypeSystemContext.EnsureLoadableType(type); 2282return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(result)); 2460if (_compilation.IsEffectivelySealed(type)) 2476makeBeforeFieldInit &= _compilation.CompilationModuleGroup.VersionsWithType(type); 2539ISymbolNode node = _compilation.SymbolNodeFactory.CheckTypeLayout(type); 2554Debug.Assert(_compilation.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type)); 2570if (!_compilation.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type)) 2849if (!parNode->hasSignificantPadding && !_compilation.IsLayoutFixedInCurrentVersionBubble(type)) 2986ISymbolNode node = _compilation.SymbolNodeFactory.CheckTypeLayout(type); 3137return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.Object)); 3140return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference)); 3143return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle)); 3146return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle)); 3149return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle)); 3152ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle", _compilation.TypeSystemContext.SystemModule); 3156return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.String)); 3159return ObjectToHandle(_compilation.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8)); 3162return ObjectToHandle(_compilation.TypeSystemContext.SystemModule.GetKnownType("System.Numerics"u8, "Vector`1"u8)); 3357return _compilation.IsEffectivelySealed(type); 3471return (void*)ObjectToHandle(_compilation.GetFieldRvaData(fd)); 3753if (_compilation.NodeFactory.Target.IsWasm) 3758else if (_compilation.NodeFactory.Target.IsWindows) 3768pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3773DefType continuation = _compilation.TypeSystemContext.ContinuationType; 3779DefType asyncHelpers = _compilation.TypeSystemContext.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8); 3795NodeFactory factory = _compilation.NodeFactory; 3806WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3823CompilerTypeSystemContext context = _compilation.TypeSystemContext; 3866_compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3870_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true), 3904CompilerTypeSystemContext context = _compilation.TypeSystemContext; 3942_compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3946_compilation.NodeFactory.Resolver.GetModuleTokenForMethod( 3973return ObjectToHandle(_compilation.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap())); 4123HandleToObject(structHnd), _compilation.TypeSystemContext.Target.Architecture); 4170ISymbolNode node = _compilation.SymbolNodeFactory.CheckTypeLayout(type); 4459=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !_compilation.TypeSystemContext.Target.IsWindows; 4910relocTarget = _compilation.DeferredWasmCalls.GetCall(call.Fallback.MethodWithToken, call.Fallback, _deferredWasmCallSignature); 4927if (_compilation.DeferredWasmCalls is not null && target != null && HandleToObject(target) is DeferredWasmCallNode) 4932switch (_compilation.TypeSystemContext.Target.Architecture) 4951return (uint)node.GetAlignment(_compilation.NodeFactory); 4960TargetArchitecture arch = _compilation.TypeSystemContext.Target.Architecture; 5027return owningMetadataType.Module == _compilation.TypeSystemContext.SystemModule; 5036flags.InstructionSetFlags.Add(_compilation.InstructionSetSupport.OptimisticFlags); 5046TargetArchitecture targetArchitecture = _compilation.TypeSystemContext.Target.Architecture; 5053Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base)); 5057Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd)); 5061if (targetArchitecture == TargetArchitecture.ARM && !_compilation.TypeSystemContext.Target.IsWindows) 5219PgoSchemaElem[] pgoResultsSchemas = _compilation.ProfileData.GetAllowSynthesis(_compilation, methodDesc, out bool isSynthesized)?.SchemaData; 5221if (pgoResultsSchemas != null && isSynthesized && _compilation.ProfileData.EmbedPgoDataInR2RImage) 5269instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(_compilation.TypeSystemContext.Target.Architecture, instructionSet); 5271Debug.Assert(!_compilation.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet));