1 write to _compilation
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
496_compilation = compilation;
216 references to _compilation
ILCompiler.ReadyToRun (216)
JitInterface\CorInfoImpl.ReadyToRun.cs (133)
513AddPrecodeFixup(_compilation.SymbolNodeFactory.ResumptionStubEntryPoint(compiledStubNode)); 518MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType); 519AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 521entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 720if ((_ilBodiesNeeded == null) && _compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 742_compilation.DeterminismCheckFailed = true; 743_compilation.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{_compilation.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure."); 745else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 755_compilation.PrepareForCompilationRetry(_methodCodeNode, _ilBodiesNeeded); 801if (ShouldSkipCompilation(_compilation.InstructionSetSupport, MethodBeingCompiled, _compilation)) 814MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 829if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 840if ((methodIL.GetMethodILScopeDefinition() is IEcmaMethodIL && _compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && ecmaMethod.Module == typicalDef.Context.SystemModule) || 841(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 842_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 844ISymbolNode ilBodyNode = _compilation.SymbolNodeFactory.CheckILBodyFixupSignature(typicalDef); 849var resolver = _compilation.NodeFactory.Resolver; 850if (_compilation.CompilationModuleGroup.VersionsWithModule(ecmaMethod.Module)) 860EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 863resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 875if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 879_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 905if (_compilation.NodeFactory.Target.IsWasm) 920pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewHelper, type)); 930pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewArr1, type)); 943pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.IsInstanceOf, type)); 956pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.CastClass, type)); 968pLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper(helperId, type)); 996MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 1010pLookup.constLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.DelegateCtor(delegateTypeDesc, targetMethod)); 1353return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1360var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1363_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1432if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1501if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1503ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1518if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1520ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1552return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1554if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1556return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1562return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1578ISymbolNode str = _compilation.SymbolNodeFactory.StringLiteral( 1579new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1585ISymbolNode stringObject = _compilation.SymbolNodeFactory.StringLiteral( 1616&& ((TypeDesc)ResolveTokenInScope(_compilation.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception)) 1694if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1831pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.RvaFieldAddress(ComputeFieldWithToken(field, ref pResolvedToken))); 1839else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1856if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset)) 1859AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 1902if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 1909pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldAddress(ComputeFieldWithToken(field, ref pResolvedToken))); 1917if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset)) 1920AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 1924_compilation.SymbolNodeFactory.CreateReadyToRunHelper(helperId, field.OwningType) 2011if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && 2012!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 2067if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2079ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2083AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckVirtualFunctionOverride( 2210else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2212!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2387else if (targetMethod.HasInstantiation || _compilation.NodeFactory.Target.IsWasm) // WASM doesn't currently support the stub dispatch path 2478ISymbolNode node = _compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type); 2546_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2571else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2597_compilation.SymbolNodeFactory.InterfaceDispatchCell( 2646MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2653_compilation.NodeFactory.MethodEntrypoint( 2677_compilation.NodeFactory.DynamicHelperCell( 2684Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2706pResult->instParamLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper( 2712pResult->instParamLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.CreateReadyToRunHelper( 2790_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2816_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 2827ISymbolNode helper = _compilation.SymbolNodeFactory.GenericLookupHelper( 2946Import import = (Import)_compilation.SymbolNodeFactory.ContinuationTypeSymbol(act); 2950if (!_compilation.CompilationModuleGroup.VersionsWithType(type)) 2953Import typeHandleImport = (Import)_compilation.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type); 2981symbolNode = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3002symbolNode = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3009symbolNode = _compilation.SymbolNodeFactory.CreateReadyToRunHelper( 3042return !_compilation.IsLayoutFixedInCurrentVersionBubble(type) || (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !((MetadataType)type).IsNonVersionable()); 3051if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3067else if (!_compilation.IsLayoutFixedInCurrentVersionBubble(pMT)) 3075AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3085pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3090if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset)) 3093if (_compilation.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types 3094AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3098else if (_compilation.CompilationModuleGroup.TypeLayoutCompilationUnits(pMT).HasMultipleInexactCompilationUnits) 3115pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3117else if (_compilation.IsInheritanceChainLayoutFixedInCurrentVersionBubble(pMT.BaseType)) 3119if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset)) 3122if (_compilation.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types 3123AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3130AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3137if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset)) 3140if (_compilation.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types 3141AddPrecodeFixup(_compilation.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken))); 3149pResult->fieldLookup = CreateConstLookupToSymbol(_compilation.SymbolNodeFactory.FieldBaseOffset(field.OwningType)); 3172*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3177ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3229if (!_compilation.IsModuleInstrumented(ecmaMethod.Module)) 3262Debug.Assert(_compilation.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)); 3269pLookup.addr = (void*)ObjectToHandle(_compilation.SymbolNodeFactory.GetPInvokeTargetNode(methodWithToken)); 3274pLookup.addr = (void*)ObjectToHandle(_compilation.SymbolNodeFactory.GetIndirectPInvokeTargetNode(methodWithToken)); 3291if (!_compilation.CompilationModuleGroup.VersionsWithMethodBody(method)) 3299stubIL = _compilation.GetMethodIL(method); 3303Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3335if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3354MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3431MethodIL methodIL = _compilation.GetMethodIL(typicalMethod); 3440else if (!_compilation.CompilationModuleGroup.VersionsWithMethodBody(typicalMethod) 3443Debug.Assert(_compilation.CompilationModuleGroup.CrossModuleInlineable(ecmaMethod) || 3444_compilation.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod)); 3445bool needsTokenTranslation = !_compilation.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod); 3453ISymbolNode ilBodyNode = _compilation.SymbolNodeFactory.CheckILBodyFixupSignature(typicalMethod); 3487if (_compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.X64) 3496_compilation.NodeFactory.MethodEntrypoint( 3517if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 3580if (type.IsValueType && type.IsTypeDefEquivalent && !_compilation.CompilationModuleGroup.VersionsWithTypeReference(type)) 3594return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 3601WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3616if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3640AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 3647if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3671AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (83)
189return _compilation.Logger; 412if (_compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.ARM64 413&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.LoongArch64 414&& _compilation.TypeSystemContext.Target.Architecture != TargetArchitecture.RiscV64) 451_compilation.NodeFactory.Target.MinimumFunctionAlignment : 452_compilation.NodeFactory.Target.OptimumFunctionAlignment; 517_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 520var baselineSupport = _compilation.InstructionSetSupport; 539TargetArchitecture architecture = _compilation.TypeSystemContext.Target.Architecture; 545var node = _compilation.SymbolNodeFactory.PerMethodInstructionSetSupportFixup(actualSupport); 561_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 575Debug.Assert(_compilation.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed"); 576_compilation.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies); 640return _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)) 1269MethodIL methodIL = method.IsUnboxingThunk() ? null : _compilation.GetMethodIL(method); 1298var calleeIL = _compilation.GetMethodIL(calleeMethod); 1307if (_compilation.CanInline(callerMethod, calleeMethod)) 1331var methodIL = _compilation.GetMethodIL(HandleToObject(ftn)); 1377decl = _compilation.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc); 1381MethodDesc originalImpl = _compilation.ResolveVirtualMethod(decl, objType, out info->detail); 1418var resolver = _compilation.NodeFactory.Resolver; 1434if (!_compilation.CompilationModuleGroup.VersionsWithTypeReference(decl.OwningType)) 1489if (_compilation.SymbolNodeFactory.VerifyTypeAndFieldLayout) 1493ISymbolNode virtualResolutionNode = _compilation.SymbolNodeFactory.CheckVirtualFunctionOverride(methodWithTokenDecl, objType, methodWithTokenImpl); 1520MethodILScope scope = jitInterface._compilation.GetMethodIL(methodWithToken.Method); 1580MetadataType placeholderType = _compilation.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false); 1784result = _compilation.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result); 1845if (!_compilation.CompilationModuleGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition())) 1851recordToken = (_compilation.CompilationModuleGroup.VersionsWithType(owningType) || _compilation.CompilationModuleGroup.CrossModuleInlineableType(owningType)) && owningType is EcmaType; 1859_compilation.TypeSystemContext.EnsureLoadableMethod(method); 1867var resolver = _compilation.NodeFactory.Resolver; 1878? _compilation.TypeSystemContext.GetAsyncVariantMethod(method) 1909_compilation.TypeSystemContext.EnsureLoadableType(owningClass); 1925_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 1940_compilation.TypeSystemContext.EnsureLoadableType(type); 2015return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(result)); 2183if (_compilation.IsEffectivelySealed(type)) 2199makeBeforeFieldInit &= _compilation.CompilationModuleGroup.VersionsWithType(type); 2262ISymbolNode node = _compilation.SymbolNodeFactory.CheckTypeLayout(type); 2277Debug.Assert(_compilation.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type)); 2293if (!_compilation.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type)) 2570if (!parNode->hasSignificantPadding && !_compilation.IsLayoutFixedInCurrentVersionBubble(type)) 2711ISymbolNode node = _compilation.SymbolNodeFactory.CheckTypeLayout(type); 2862return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.Object)); 2865return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference)); 2868return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle)); 2871return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle)); 2874return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle)); 2877ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle", _compilation.TypeSystemContext.SystemModule); 2881return ObjectToHandle(_compilation.TypeSystemContext.GetWellKnownType(WellKnownType.String)); 2884return ObjectToHandle(_compilation.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8)); 3079return _compilation.IsEffectivelySealed(type); 3193return (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); 3559return ObjectToHandle(_compilation.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap())); 3709HandleToObject(structHnd), _compilation.TypeSystemContext.Target.Architecture); 3756ISymbolNode node = _compilation.SymbolNodeFactory.CheckTypeLayout(type); 3990=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !_compilation.TypeSystemContext.Target.IsWindows; 4397switch (_compilation.TypeSystemContext.Target.Architecture) 4414TargetArchitecture arch = _compilation.TypeSystemContext.Target.Architecture; 4481return owningMetadataType.Module == _compilation.TypeSystemContext.SystemModule; 4490flags.InstructionSetFlags.Add(_compilation.InstructionSetSupport.OptimisticFlags); 4500TargetArchitecture targetArchitecture = _compilation.TypeSystemContext.Target.Architecture; 4507Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base)); 4511Debug.Assert(_compilation.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd)); 4515if (targetArchitecture == TargetArchitecture.ARM && !_compilation.TypeSystemContext.Target.IsWindows) 4666PgoSchemaElem[] pgoResultsSchemas = _compilation.ProfileData.GetAllowSynthesis(_compilation, methodDesc, out bool isSynthesized)?.SchemaData; 4668if (pgoResultsSchemas != null && isSynthesized && _compilation.ProfileData.EmbedPgoDataInR2RImage) 4716instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(_compilation.TypeSystemContext.Target.Architecture, instructionSet); 4718Debug.Assert(!_compilation.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet));