1 write to _compilation
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
508
_compilation
= compilation;
255 references to _compilation
ILCompiler.ReadyToRun (255)
JitInterface\CorInfoImpl.ReadyToRun.cs (160)
525
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.ResumptionStubEntryPoint(compiledStubNode));
530
MethodDesc asyncResumptionStub =
_compilation
.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType);
531
AddResumptionStubFixup(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
533
entryPoint = (void*)ObjectToHandle(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
726
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress > 0)
748
_compilation
.DeterminismCheckFailed = true;
749
_compilation
.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{
_compilation
.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure.");
751
else if (data.Iterations <=
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress)
764
_compilation
.PrepareForCompilationRetry(_methodCodeNode, _ilBodiesNeeded);
828
if (ShouldSkipCompilation(
_compilation
.InstructionSetSupport, MethodBeingCompiled,
_compilation
))
841
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
856
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL,
_compilation
.NodeFactory.CompilationModuleGroup))
867
if ((methodIL.GetMethodILScopeDefinition() is IEcmaMethodIL &&
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && ecmaMethod.Module == typicalDef.Context.SystemModule) ||
868
(!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
869
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
871
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalDef);
876
var resolver =
_compilation
.NodeFactory.Resolver;
877
if (
_compilation
.CompilationModuleGroup.VersionsWithModule(ecmaMethod.Module))
887
EntityHandle? handle =
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
890
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value));
902
if (
_compilation
.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
906
_compilation
.NodeFactory.WasmInterpreterToR2RThunk(wasmSig),
965
_compilation
.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
976
if (
_compilation
.NodeFactory.Target.IsWasm)
991
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewHelper, type));
1001
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewArr1, type));
1014
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.IsInstanceOf, type));
1027
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.CastClass, type));
1039
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, type));
1067
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
1081
pLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.DelegateCtor(delegateTypeDesc, targetMethod));
1089
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(helperMethod, true, true),
1094
_compilation
.SymbolNodeFactory.EagerReadyToRunMethodEntry(helperMethodWithToken),
1101
_compilation
.TypeSystemContext,
1105
_compilation
.IsDirectManagedHelperEligible(managedHelper))
1107
Debug.Assert(
_compilation
.CompilationModuleGroup.ContainsMethodBody(managedHelper, unboxingStub: false));
1109
return
_compilation
.NodeFactory.CompiledMethodNode(managedHelper);
1456
return
_compilation
.NodeFactory.GetReadyToRunHelperCell(id);
1463
var entrypoint =
_compilation
.NodeFactory.MethodEntrypoint(
1466
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true),
1479
Debug.Assert(
_compilation
.NodeFactory.Target.IsWasm);
1483
MetadataType systemDelegate =
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System"u8, "Delegate"u8);
1519
if (methodDesc != null && (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1588
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1590
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1605
if (!(
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1607
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1639
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1641
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType))
1643
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1649
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1665
ISymbolNode str =
_compilation
.SymbolNodeFactory.StringLiteral(
1666
new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, metaTok));
1672
ISymbolNode stringObject =
_compilation
.SymbolNodeFactory.StringLiteral(
1703
&& ((TypeDesc)ResolveTokenInScope(
_compilation
.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception))
1781
if (!pHasSideEffects && !
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(type))
1918
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.RvaFieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
1926
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) ||
_compilation
.NodeFactory.Target.IsWasm)
1943
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
1946
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
1989
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
1996
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
2004
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
2007
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
2011
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, field.OwningType)
2087
MethodDesc versioningCallerMethod =
_compilation
.TypeSystemContext.IsUnboxingThunk(callerMethod)
2088
?
_compilation
.TypeSystemContext.GetTargetOfUnboxingThunk(callerMethod)
2101
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) &&
2102
!
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod))
2157
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2169
ModuleToken moduleToken =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2173
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(
2307
else if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2309
!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2484
(
_compilation
.NodeFactory.Target.IsWasm &&
2582
return
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type);
2651
_compilation
.NodeFactory.DetectGenericCycles(callerMethod, methodToCall);
2676
else if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType))
2690
if (
_compilation
.NodeFactory.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8)
2700
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target");
2715
_compilation
.SymbolNodeFactory.DispatchCell(
2758
&& !
_compilation
.NodeFactory.Target.IsWasm)
2769
MethodWithGCInfo targetCodeNode =
_compilation
.NodeFactory.CompiledMethodNode(compilableTarget);
2776
_compilation
.NodeFactory.MethodEntrypoint(
2800
_compilation
.NodeFactory.DynamicHelperCell(
2807
Debug.Assert(!pResult->sig.hasTypeArg() ||
_compilation
.NodeFactory.Target.IsWasm);
2829
pResult->instParamLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2838
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2844
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2901
return !
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(
2975
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType);
3001
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3037
ISymbolNode helper =
_compilation
.SymbolNodeFactory.GenericLookupHelper(
3156
Import import = (Import)
_compilation
.SymbolNodeFactory.ContinuationTypeSymbol(act);
3160
if (!
_compilation
.CompilationModuleGroup.VersionsWithType(type))
3199
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3226
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3233
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3266
return !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type) || (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !((MetadataType)type).IsNonVersionable());
3275
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3291
else if (!
_compilation
.IsLayoutFixedInCurrentVersionBubble(pMT))
3299
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3309
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3314
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3317
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3318
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3322
else if (
_compilation
.CompilationModuleGroup.TypeLayoutCompilationUnits(pMT).HasMultipleInexactCompilationUnits)
3339
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3341
else if (
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(pMT.BaseType))
3343
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3346
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3347
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3354
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3361
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3364
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3365
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3373
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldBaseOffset(field.OwningType));
3396
*ppCookieVal = (IntPtr *)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3401
ppIndirection = (void*)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3434
if (!
_compilation
.NodeFactory.Target.IsWasm)
3465
_compilation
.NodeFactory,
3482
if (!
_compilation
.NodeFactory.Target.IsWasm)
3495
relocTarget =
_compilation
.NodeFactory.WasmMethodRelativeVirtualIP(_methodCodeNode);
3510
_compilation
.NodeFactory.WasmAsyncResumeInfoFixups.AddFixup(location, offset);
3543
if (!
_compilation
.IsModuleInstrumented(ecmaMethod.Module))
3576
Debug.Assert(
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc));
3582
||
_compilation
.NodeFactory.Target.IsWasm)
3587
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetPInvokeTargetNode(methodWithToken));
3592
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetIndirectPInvokeTargetNode(methodWithToken));
3607
if (
_compilation
.NodeFactory.Target.IsWasm
3608
&& !
_compilation
.CompilationModuleGroup.IsDirectPInvoke(method))
3615
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(method))
3623
stubIL =
_compilation
.GetMethodIL(method);
3627
Debug.Assert(!
_compilation
.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method));
3685
if (
_compilation
.NodeFactory.Target.Architecture == TargetArchitecture.X86)
3704
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
3770
inlineeModule !=
_compilation
.TypeSystemContext.SystemModule &&
3772
(!
_compilation
.CompilationModuleGroup.VersionsWithModule(inlineeModule) ||
3795
MethodIL methodIL =
_compilation
.GetMethodIL(typicalMethod);
3804
else if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(typicalMethod)
3807
Debug.Assert(
_compilation
.CompilationModuleGroup.CrossModuleInlineable(ecmaMethod) ||
3808
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod));
3809
bool needsTokenTranslation = !
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod);
3817
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalMethod);
3851
if (
_compilation
.TypeSystemContext.Target.Architecture != TargetArchitecture.X64)
3860
_compilation
.NodeFactory.MethodEntrypoint(
3881
if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3944
if (type.IsValueType && type.IsTypeDefEquivalent && !
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(type))
3958
return
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method);
3972
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
3983
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4001
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
4024
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4045
_compilation
.NodeFactory.WasmClosedStaticRetBufThunk(signature),
4050
MethodSignature delegateSignature = WasmLowering.RaiseSignature(signature,
_compilation
.TypeSystemContext);
4055
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\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)
479
_compilation
.NodeFactory.Target.MinimumFunctionAlignment :
480
_compilation
.NodeFactory.Target.OptimumFunctionAlignment;
545
_methodCodeNode.InitializeInliningInfo(inlineeArray,
_compilation
.NodeFactory);
549
TargetArchitecture architecture =
_compilation
.TypeSystemContext.Target.Architecture;
555
var node =
_compilation
.SymbolNodeFactory.PerMethodInstructionSetSupportFixup(actualSupport);
575
Debug.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);
597
InstructionSetSupport baselineSupport =
_compilation
.InstructionSetSupport;
664
return
_compilation
.TypeSystemContext.Target.PointerSize;
1026
if (
_compilation
.TypeSystemContext.Target.Architecture == TargetArchitecture.X86)
1166
if (
_compilation
.IsEffectivelySealed(method.GetUnboxedMethod()))
1171
if (
_compilation
.IsEffectivelySealed(method))
1319
method =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type);
1345
MethodDesc instantiatedMethod =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType);
1348
instantiatedMethod =
_compilation
.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation);
1357
if (!
_compilation
.CanInline(MethodBeingCompiled, method))
1361
MethodIL methodIL = method.IsUnboxingThunk() ? null :
_compilation
.GetMethodIL(method);
1400
var calleeIL =
_compilation
.GetMethodIL(calleeMethod);
1409
if (
_compilation
.CanInline(callerMethod, calleeMethod))
1433
var methodIL =
_compilation
.GetMethodIL(HandleToObject(ftn));
1479
decl =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc);
1483
MethodDesc originalImpl =
_compilation
.ResolveVirtualMethod(decl, objType, out info->detail);
1520
var resolver =
_compilation
.NodeFactory.Resolver;
1536
if (!
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(decl.OwningType))
1638
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.MethodDictionary, originalImplWithToken));
1651
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeDictionary, originalImpl.OwningType));
1661
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout)
1665
ISymbolNode virtualResolutionNode =
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(methodWithTokenDecl, objType, methodWithTokenImpl);
1692
MethodILScope scope = jitInterface.
_compilation
.GetMethodIL(methodWithToken.Method);
1752
MetadataType placeholderType =
_compilation
.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false);
1956
result =
_compilation
.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result);
2017
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition()))
2023
recordToken = (
_compilation
.CompilationModuleGroup.VersionsWithType(owningType) ||
_compilation
.CompilationModuleGroup.CrossModuleInlineableType(owningType)) && owningType is EcmaType;
2031
_compilation
.TypeSystemContext.EnsureLoadableMethod(method);
2039
var resolver =
_compilation
.NodeFactory.Resolver;
2050
?
_compilation
.TypeSystemContext.GetAsyncVariantMethod(method)
2081
_compilation
.TypeSystemContext.EnsureLoadableType(owningClass);
2097
_compilation
.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
2112
_compilation
.TypeSystemContext.EnsureLoadableType(type);
2180
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(result));
2348
if (
_compilation
.IsEffectivelySealed(type))
2364
makeBeforeFieldInit &=
_compilation
.CompilationModuleGroup.VersionsWithType(type);
2427
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
2442
Debug.Assert(
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type));
2458
if (!
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type))
2737
if (!parNode->hasSignificantPadding && !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type))
2874
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
3025
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.Object));
3028
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference));
3031
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle));
3034
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle));
3037
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle));
3040
ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle",
_compilation
.TypeSystemContext.SystemModule);
3044
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.String));
3047
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8));
3050
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Numerics"u8, "Vector`1"u8));
3245
return
_compilation
.IsEffectivelySealed(type);
3359
return (void*)ObjectToHandle(
_compilation
.GetFieldRvaData(fd));
3641
if (
_compilation
.NodeFactory.Target.IsWasm)
3646
else if (
_compilation
.NodeFactory.Target.IsWindows)
3656
pEEInfoOut.osType = TargetToOs(
_compilation
.NodeFactory.Target);
3661
DefType continuation =
_compilation
.TypeSystemContext.ContinuationType;
3667
DefType asyncHelpers =
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8);
3683
NodeFactory factory =
_compilation
.NodeFactory;
3694
WasmTypeNode typeNode =
_compilation
.NodeFactory.WasmTypeNode(typeArray);
3711
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3754
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3758
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3792
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3830
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3834
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(
3861
return ObjectToHandle(
_compilation
.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap()));
4011
HandleToObject(structHnd),
_compilation
.TypeSystemContext.Target.Architecture);
4058
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
4307
=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !
_compilation
.TypeSystemContext.Target.IsWindows;
4752
switch (
_compilation
.TypeSystemContext.Target.Architecture)
4771
return (uint)node.GetAlignment(
_compilation
.NodeFactory);
4780
TargetArchitecture arch =
_compilation
.TypeSystemContext.Target.Architecture;
4847
return owningMetadataType.Module ==
_compilation
.TypeSystemContext.SystemModule;
4856
flags.InstructionSetFlags.Add(
_compilation
.InstructionSetSupport.OptimisticFlags);
4866
TargetArchitecture targetArchitecture =
_compilation
.TypeSystemContext.Target.Architecture;
4873
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base));
4877
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd));
4881
if (targetArchitecture == TargetArchitecture.ARM && !
_compilation
.TypeSystemContext.Target.IsWindows)
5035
PgoSchemaElem[] pgoResultsSchemas =
_compilation
.ProfileData.GetAllowSynthesis(
_compilation
, methodDesc, out bool isSynthesized)?.SchemaData;
5037
if (pgoResultsSchemas != null && isSynthesized &&
_compilation
.ProfileData.EmbedPgoDataInR2RImage)
5085
instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(
_compilation
.TypeSystemContext.Target.Architecture, instructionSet);
5087
Debug.Assert(!
_compilation
.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet));