1 write to _compilation
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
496
_compilation
= compilation;
235 references to _compilation
ILCompiler.ReadyToRun (235)
JitInterface\CorInfoImpl.ReadyToRun.cs (140)
513
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.ResumptionStubEntryPoint(compiledStubNode));
518
MethodDesc asyncResumptionStub =
_compilation
.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType);
519
AddResumptionStubFixup(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
521
entryPoint = (void*)ObjectToHandle(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
712
if ((_ilBodiesNeeded == null) &&
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress > 0)
734
_compilation
.DeterminismCheckFailed = true;
735
_compilation
.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{
_compilation
.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure.");
737
else if (data.Iterations <=
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress)
747
_compilation
.PrepareForCompilationRetry(_methodCodeNode, _ilBodiesNeeded);
793
if (ShouldSkipCompilation(
_compilation
.InstructionSetSupport, MethodBeingCompiled,
_compilation
))
806
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
821
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL,
_compilation
.NodeFactory.CompilationModuleGroup))
832
if ((methodIL.GetMethodILScopeDefinition() is IEcmaMethodIL &&
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && ecmaMethod.Module == typicalDef.Context.SystemModule) ||
833
(!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
834
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
836
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalDef);
841
var resolver =
_compilation
.NodeFactory.Resolver;
842
if (
_compilation
.CompilationModuleGroup.VersionsWithModule(ecmaMethod.Module))
852
EntityHandle? handle =
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
855
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value));
867
if (
_compilation
.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
871
_compilation
.NodeFactory.WasmInterpreterToR2RThunk(wasmSig),
897
if (
_compilation
.NodeFactory.Target.IsWasm)
912
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewHelper, type));
922
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewArr1, type));
935
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.IsInstanceOf, type));
948
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.CastClass, type));
960
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, type));
988
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
1002
pLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.DelegateCtor(delegateTypeDesc, targetMethod));
1345
return
_compilation
.NodeFactory.GetReadyToRunHelperCell(id);
1352
var entrypoint =
_compilation
.NodeFactory.MethodEntrypoint(
1355
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true),
1388
if (methodDesc != null && (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1457
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1459
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1474
if (!(
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1476
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1508
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1510
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType))
1512
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1518
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1534
ISymbolNode str =
_compilation
.SymbolNodeFactory.StringLiteral(
1535
new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, metaTok));
1541
ISymbolNode stringObject =
_compilation
.SymbolNodeFactory.StringLiteral(
1572
&& ((TypeDesc)ResolveTokenInScope(
_compilation
.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception))
1650
if (!pHasSideEffects && !
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(type))
1787
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.RvaFieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
1795
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) ||
_compilation
.NodeFactory.Target.IsWasm)
1812
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
1815
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
1858
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
1865
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
1873
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
1876
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
1880
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, field.OwningType)
1967
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) &&
1968
!
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
2023
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2035
ModuleToken moduleToken =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2039
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(
2166
else if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2168
!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2342
else if (targetMethod.HasInstantiation ||
_compilation
.NodeFactory.Target.IsWasm) // WASM doesn't currently support the stub dispatch path
2433
ISymbolNode node =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type);
2504
_compilation
.NodeFactory.DetectGenericCycles(callerMethod, methodToCall);
2529
else if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType))
2555
_compilation
.SymbolNodeFactory.DispatchCell(
2598
&& !
_compilation
.NodeFactory.Target.IsWasm)
2609
MethodWithGCInfo targetCodeNode =
_compilation
.NodeFactory.CompiledMethodNode(compilableTarget);
2616
_compilation
.NodeFactory.MethodEntrypoint(
2640
_compilation
.NodeFactory.DynamicHelperCell(
2647
Debug.Assert(!pResult->sig.hasTypeArg() ||
_compilation
.NodeFactory.Target.IsWasm);
2669
pResult->instParamLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2678
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2684
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2741
return !
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(
2815
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2841
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
2877
ISymbolNode helper =
_compilation
.SymbolNodeFactory.GenericLookupHelper(
2996
Import import = (Import)
_compilation
.SymbolNodeFactory.ContinuationTypeSymbol(act);
3000
if (!
_compilation
.CompilationModuleGroup.VersionsWithType(type))
3003
Import typeHandleImport = (Import)
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type);
3039
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3045
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3068
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3075
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3108
return !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type) || (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !((MetadataType)type).IsNonVersionable());
3117
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3133
else if (!
_compilation
.IsLayoutFixedInCurrentVersionBubble(pMT))
3141
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3151
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3156
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3159
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3160
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3164
else if (
_compilation
.CompilationModuleGroup.TypeLayoutCompilationUnits(pMT).HasMultipleInexactCompilationUnits)
3181
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3183
else if (
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(pMT.BaseType))
3185
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3188
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3189
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3196
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3203
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3206
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3207
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3215
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldBaseOffset(field.OwningType));
3238
*ppCookieVal = (IntPtr *)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3243
ppIndirection = (void*)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3276
if (!
_compilation
.NodeFactory.Target.IsWasm)
3307
_compilation
.NodeFactory,
3339
if (!
_compilation
.IsModuleInstrumented(ecmaMethod.Module))
3372
Debug.Assert(
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc));
3378
||
_compilation
.NodeFactory.Target.IsWasm)
3383
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetPInvokeTargetNode(methodWithToken));
3388
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetIndirectPInvokeTargetNode(methodWithToken));
3405
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(method))
3413
stubIL =
_compilation
.GetMethodIL(method);
3417
Debug.Assert(!
_compilation
.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method));
3475
if (
_compilation
.NodeFactory.Target.Architecture == TargetArchitecture.X86)
3494
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
3571
MethodIL methodIL =
_compilation
.GetMethodIL(typicalMethod);
3580
else if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(typicalMethod)
3583
Debug.Assert(
_compilation
.CompilationModuleGroup.CrossModuleInlineable(ecmaMethod) ||
3584
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod));
3585
bool needsTokenTranslation = !
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod);
3593
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalMethod);
3627
if (
_compilation
.TypeSystemContext.Target.Architecture != TargetArchitecture.X64)
3636
_compilation
.NodeFactory.MethodEntrypoint(
3657
if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3720
if (type.IsValueType && type.IsTypeDefEquivalent && !
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(type))
3734
return
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method);
3741
WasmTypeNode typeNode =
_compilation
.NodeFactory.WasmTypeNode(typeArray);
3756
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
3780
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
3787
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
3823
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (95)
188
get => field ??=
_compilation
.TypeSystemContext.SystemModule.GetType(
208
return
_compilation
.Logger;
431
if (
_compilation
.TypeSystemContext.Target.Architecture != TargetArchitecture.ARM64
432
&&
_compilation
.TypeSystemContext.Target.Architecture != TargetArchitecture.LoongArch64
433
&&
_compilation
.TypeSystemContext.Target.Architecture != TargetArchitecture.RiscV64)
470
_compilation
.NodeFactory.Target.MinimumFunctionAlignment :
471
_compilation
.NodeFactory.Target.OptimumFunctionAlignment;
536
_methodCodeNode.InitializeInliningInfo(inlineeArray,
_compilation
.NodeFactory);
539
var baselineSupport =
_compilation
.InstructionSetSupport;
558
TargetArchitecture architecture =
_compilation
.TypeSystemContext.Target.Architecture;
564
var node =
_compilation
.SymbolNodeFactory.PerMethodInstructionSetSupportFixup(actualSupport);
580
_compilation
.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
594
Debug.Assert(
_compilation
.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
595
_compilation
.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies);
659
return
_compilation
.TypeSystemContext.Target.PointerSize;
1018
if (
_compilation
.TypeSystemContext.Target.Architecture == TargetArchitecture.X86)
1158
if (
_compilation
.IsEffectivelySealed(method.GetUnboxedMethod()))
1163
if (
_compilation
.IsEffectivelySealed(method))
1311
method =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type);
1337
MethodDesc instantiatedMethod =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType);
1340
instantiatedMethod =
_compilation
.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation);
1349
if (!
_compilation
.CanInline(MethodBeingCompiled, method))
1353
MethodIL methodIL = method.IsUnboxingThunk() ? null :
_compilation
.GetMethodIL(method);
1392
var calleeIL =
_compilation
.GetMethodIL(calleeMethod);
1401
if (
_compilation
.CanInline(callerMethod, calleeMethod))
1425
var methodIL =
_compilation
.GetMethodIL(HandleToObject(ftn));
1471
decl =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc);
1475
MethodDesc originalImpl =
_compilation
.ResolveVirtualMethod(decl, objType, out info->detail);
1512
var resolver =
_compilation
.NodeFactory.Resolver;
1528
if (!
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(decl.OwningType))
1630
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.MethodDictionary, originalImplWithToken));
1643
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeDictionary, originalImpl.OwningType));
1653
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout)
1657
ISymbolNode virtualResolutionNode =
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(methodWithTokenDecl, objType, methodWithTokenImpl);
1684
MethodILScope scope = jitInterface.
_compilation
.GetMethodIL(methodWithToken.Method);
1744
MetadataType placeholderType =
_compilation
.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false);
1948
result =
_compilation
.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result);
2009
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition()))
2015
recordToken = (
_compilation
.CompilationModuleGroup.VersionsWithType(owningType) ||
_compilation
.CompilationModuleGroup.CrossModuleInlineableType(owningType)) && owningType is EcmaType;
2023
_compilation
.TypeSystemContext.EnsureLoadableMethod(method);
2031
var resolver =
_compilation
.NodeFactory.Resolver;
2042
?
_compilation
.TypeSystemContext.GetAsyncVariantMethod(method)
2073
_compilation
.TypeSystemContext.EnsureLoadableType(owningClass);
2089
_compilation
.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
2104
_compilation
.TypeSystemContext.EnsureLoadableType(type);
2172
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(result));
2340
if (
_compilation
.IsEffectivelySealed(type))
2356
makeBeforeFieldInit &=
_compilation
.CompilationModuleGroup.VersionsWithType(type);
2419
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
2434
Debug.Assert(
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type));
2450
if (!
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type))
2729
if (!parNode->hasSignificantPadding && !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type))
2866
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
3017
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.Object));
3020
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference));
3023
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle));
3026
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle));
3029
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle));
3032
ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle",
_compilation
.TypeSystemContext.SystemModule);
3036
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.String));
3039
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8));
3042
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Numerics"u8, "Vector`1"u8));
3237
return
_compilation
.IsEffectivelySealed(type);
3351
return (void*)ObjectToHandle(
_compilation
.GetFieldRvaData(fd));
3633
if (
_compilation
.NodeFactory.Target.IsWasm)
3638
else if (
_compilation
.NodeFactory.Target.IsWindows)
3648
pEEInfoOut.osType = TargetToOs(
_compilation
.NodeFactory.Target);
3653
DefType continuation =
_compilation
.TypeSystemContext.ContinuationType;
3659
DefType asyncHelpers =
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8);
3675
NodeFactory factory =
_compilation
.NodeFactory;
3694
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3737
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3741
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3775
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3813
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3817
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(
3844
return ObjectToHandle(
_compilation
.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap()));
3994
HandleToObject(structHnd),
_compilation
.TypeSystemContext.Target.Architecture);
4041
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
4278
=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !
_compilation
.TypeSystemContext.Target.IsWindows;
4700
switch (
_compilation
.TypeSystemContext.Target.Architecture)
4719
return (uint)node.GetAlignment(
_compilation
.NodeFactory);
4728
TargetArchitecture arch =
_compilation
.TypeSystemContext.Target.Architecture;
4795
return owningMetadataType.Module ==
_compilation
.TypeSystemContext.SystemModule;
4804
flags.InstructionSetFlags.Add(
_compilation
.InstructionSetSupport.OptimisticFlags);
4814
TargetArchitecture targetArchitecture =
_compilation
.TypeSystemContext.Target.Architecture;
4821
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base));
4825
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd));
4829
if (targetArchitecture == TargetArchitecture.ARM && !
_compilation
.TypeSystemContext.Target.IsWindows)
4983
PgoSchemaElem[] pgoResultsSchemas =
_compilation
.ProfileData.GetAllowSynthesis(
_compilation
, methodDesc, out bool isSynthesized)?.SchemaData;
4985
if (pgoResultsSchemas != null && isSynthesized &&
_compilation
.ProfileData.EmbedPgoDataInR2RImage)
5033
instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(
_compilation
.TypeSystemContext.Target.Architecture, instructionSet);
5035
Debug.Assert(!
_compilation
.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet));