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