1 write to _compilation
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
508
_compilation
= compilation;
259 references to _compilation
ILCompiler.ReadyToRun (259)
JitInterface\CorInfoImpl.ReadyToRun.cs (163)
524
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.ResumptionStubEntryPoint(compiledStubNode));
529
MethodDesc asyncResumptionStub =
_compilation
.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType);
530
AddResumptionStubFixup(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
532
entryPoint = (void*)ObjectToHandle(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
725
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress > 0)
747
_compilation
.DeterminismCheckFailed = true;
748
_compilation
.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{
_compilation
.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure.");
750
else if (data.Iterations <=
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress)
763
_compilation
.PrepareForCompilationRetry(_methodCodeNode, _ilBodiesNeeded);
827
if (ShouldSkipCompilation(
_compilation
.InstructionSetSupport, MethodBeingCompiled,
_compilation
))
840
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
855
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL,
_compilation
.NodeFactory.CompilationModuleGroup))
866
if ((methodIL.GetMethodILScopeDefinition() is IEcmaMethodIL &&
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && ecmaMethod.Module == typicalDef.Context.SystemModule) ||
867
(!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
868
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
870
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalDef);
875
var resolver =
_compilation
.NodeFactory.Resolver;
876
if (
_compilation
.CompilationModuleGroup.VersionsWithModule(ecmaMethod.Module))
886
EntityHandle? handle =
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
889
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value));
901
if (
_compilation
.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
905
_compilation
.NodeFactory.WasmInterpreterToR2RThunk(wasmSig),
964
_compilation
.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
975
if (
_compilation
.NodeFactory.Target.IsWasm)
990
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewHelper, type));
1000
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewArr1, type));
1013
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.IsInstanceOf, type));
1026
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.CastClass, type));
1038
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, type));
1066
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
1080
pLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.DelegateCtor(delegateTypeDesc, targetMethod));
1088
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(helperMethod, true, true),
1093
_compilation
.SymbolNodeFactory.EagerReadyToRunMethodEntry(helperMethodWithToken),
1100
_compilation
.TypeSystemContext,
1104
_compilation
.IsDirectManagedHelperEligible(managedHelper))
1106
Debug.Assert(
_compilation
.CompilationModuleGroup.ContainsMethodBody(managedHelper, unboxingStub: false));
1108
return
_compilation
.NodeFactory.CompiledMethodNode(managedHelper);
1455
return
_compilation
.NodeFactory.GetReadyToRunHelperCell(id);
1462
var entrypoint =
_compilation
.NodeFactory.MethodEntrypoint(
1465
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true),
1478
Debug.Assert(
_compilation
.NodeFactory.Target.IsWasm);
1482
MetadataType systemDelegate =
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System"u8, "Delegate"u8);
1518
if (methodDesc != null && (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1587
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1589
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1604
if (!(
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1606
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1638
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1640
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType))
1642
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1648
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1664
ISymbolNode str =
_compilation
.SymbolNodeFactory.StringLiteral(
1665
new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, metaTok));
1671
ISymbolNode stringObject =
_compilation
.SymbolNodeFactory.StringLiteral(
1702
&& ((TypeDesc)ResolveTokenInScope(
_compilation
.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception))
1780
if (!pHasSideEffects && !
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(type))
1921
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.RvaFieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
1936
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) ||
_compilation
.NodeFactory.Target.IsWasm)
1953
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
1956
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
1992
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
1999
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
2007
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
2010
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
2014
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, field.OwningType)
2090
MethodDesc versioningCallerMethod =
_compilation
.TypeSystemContext.IsUnboxingThunk(callerMethod)
2091
?
_compilation
.TypeSystemContext.GetTargetOfUnboxingThunk(callerMethod)
2104
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) &&
2105
!
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod))
2160
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2172
ModuleToken moduleToken =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2176
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(
2310
else if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2312
!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2487
(
_compilation
.NodeFactory.Target.IsWasm &&
2579
return
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type);
2648
_compilation
.NodeFactory.DetectGenericCycles(callerMethod, methodToCall);
2673
else if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType))
2687
if (
_compilation
.NodeFactory.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8)
2697
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target");
2712
_compilation
.SymbolNodeFactory.DispatchCell(
2755
&& !
_compilation
.NodeFactory.Target.IsWasm)
2766
MethodWithGCInfo targetCodeNode =
_compilation
.NodeFactory.CompiledMethodNode(compilableTarget);
2773
_compilation
.NodeFactory.MethodEntrypoint(
2797
_compilation
.NodeFactory.DynamicHelperCell(
2804
Debug.Assert(!pResult->sig.hasTypeArg() ||
_compilation
.NodeFactory.Target.IsWasm);
2826
pResult->instParamLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2835
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2841
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2898
return !
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(
2972
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2998
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3034
ISymbolNode helper =
_compilation
.SymbolNodeFactory.GenericLookupHelper(
3153
Import import = (Import)
_compilation
.SymbolNodeFactory.ContinuationTypeSymbol(act);
3157
if (!
_compilation
.CompilationModuleGroup.VersionsWithType(type))
3196
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3223
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3230
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3263
return !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type) || (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !((MetadataType)type).IsNonVersionable());
3272
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3288
else if (!
_compilation
.IsLayoutFixedInCurrentVersionBubble(pMT))
3296
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3306
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3311
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3314
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3315
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3319
else if (
_compilation
.CompilationModuleGroup.TypeLayoutCompilationUnits(pMT).HasMultipleInexactCompilationUnits)
3336
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3338
else if (
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(pMT.BaseType))
3340
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3343
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3344
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3351
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3358
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3361
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3362
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3370
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldBaseOffset(field.OwningType));
3393
*ppCookieVal = (IntPtr *)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3398
ppIndirection = (void*)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3431
if (!
_compilation
.NodeFactory.Target.IsWasm)
3462
_compilation
.NodeFactory,
3479
if (!
_compilation
.NodeFactory.Target.IsWasm)
3486
MethodWithGCInfo method =
_compilation
.NodeFactory.CompiledMethodNode(targetMethod);
3487
relocTarget =
_compilation
.NodeFactory.WasmMethodFrameIdentity(method);
3503
relocTarget =
_compilation
.NodeFactory.WasmMethodRelativeVirtualIP(_methodCodeNode);
3518
_compilation
.NodeFactory.WasmAsyncResumeInfoFixups.AddFixup(location, offset);
3551
if (!
_compilation
.IsModuleInstrumented(ecmaMethod.Module))
3584
Debug.Assert(
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc));
3590
||
_compilation
.NodeFactory.Target.IsWasm)
3595
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetPInvokeTargetNode(methodWithToken));
3600
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetIndirectPInvokeTargetNode(methodWithToken));
3615
if (
_compilation
.NodeFactory.Target.IsWasm
3616
&& !
_compilation
.CompilationModuleGroup.IsDirectPInvoke(method))
3623
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(method))
3631
stubIL =
_compilation
.GetMethodIL(method);
3635
Debug.Assert(!
_compilation
.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method));
3693
if (
_compilation
.NodeFactory.Target.Architecture == TargetArchitecture.X86)
3712
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
3778
inlineeModule !=
_compilation
.TypeSystemContext.SystemModule &&
3780
(!
_compilation
.CompilationModuleGroup.VersionsWithModule(inlineeModule) ||
3803
MethodIL methodIL =
_compilation
.GetMethodIL(typicalMethod);
3812
else if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(typicalMethod)
3815
Debug.Assert(
_compilation
.CompilationModuleGroup.CrossModuleInlineable(ecmaMethod) ||
3816
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod));
3817
bool needsTokenTranslation = !
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod);
3825
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalMethod);
3859
if (
_compilation
.TypeSystemContext.Target.Architecture != TargetArchitecture.X64)
3868
_compilation
.NodeFactory.MethodEntrypoint(
3889
if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3952
if (type.IsValueType && type.IsTypeDefEquivalent && !
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(type))
3979
CompilationModuleGroup moduleGroup =
_compilation
.CompilationModuleGroup;
4004
return
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method);
4018
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
4029
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4047
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
4070
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4091
_compilation
.NodeFactory.WasmClosedStaticRetBufThunk(signature),
4096
MethodSignature delegateSignature = WasmLowering.RaiseSignature(signature,
_compilation
.TypeSystemContext);
4101
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (96)
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)
508
_compilation
.NodeFactory.Target.MinimumFunctionAlignment :
509
_compilation
.NodeFactory.Target.OptimumFunctionAlignment;
559
if (
_compilation
.NodeFactory.Target.IsWasm && _ehClauses is not null)
578
_methodCodeNode.InitializeInliningInfo(inlineeArray,
_compilation
.NodeFactory);
582
TargetArchitecture architecture =
_compilation
.TypeSystemContext.Target.Architecture;
588
var node =
_compilation
.SymbolNodeFactory.PerMethodInstructionSetSupportFixup(actualSupport);
608
Debug.Assert(
_compilation
.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
609
_compilation
.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(_additionalDependencies, _synthesizedPgoDependencies);
630
InstructionSetSupport baselineSupport =
_compilation
.InstructionSetSupport;
697
return
_compilation
.TypeSystemContext.Target.PointerSize;
1059
if (
_compilation
.TypeSystemContext.Target.Architecture == TargetArchitecture.X86)
1199
if (
_compilation
.IsEffectivelySealed(method.GetUnboxedMethod()))
1204
if (
_compilation
.IsEffectivelySealed(method))
1352
method =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type);
1378
MethodDesc instantiatedMethod =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType);
1381
instantiatedMethod =
_compilation
.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation);
1390
if (!
_compilation
.CanInline(MethodBeingCompiled, method))
1394
MethodIL methodIL = method.IsUnboxingThunk() ? null :
_compilation
.GetMethodIL(method);
1433
var calleeIL =
_compilation
.GetMethodIL(calleeMethod);
1442
if (
_compilation
.CanInline(callerMethod, calleeMethod))
1474
var methodIL =
_compilation
.GetMethodIL(HandleToObject(ftn));
1520
decl =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc);
1524
MethodDesc originalImpl =
_compilation
.ResolveVirtualMethod(decl, objType, out info->detail);
1561
var resolver =
_compilation
.NodeFactory.Resolver;
1577
if (!
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(decl.OwningType))
1679
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.MethodDictionary, originalImplWithToken));
1692
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeDictionary, originalImpl.OwningType));
1702
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout)
1706
ISymbolNode virtualResolutionNode =
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(methodWithTokenDecl, objType, methodWithTokenImpl);
1733
MethodILScope scope = jitInterface.
_compilation
.GetMethodIL(methodWithToken.Method);
1793
MetadataType placeholderType =
_compilation
.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false);
1991
result =
_compilation
.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result);
2052
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition()))
2058
recordToken = (
_compilation
.CompilationModuleGroup.VersionsWithType(owningType) ||
_compilation
.CompilationModuleGroup.CrossModuleInlineableType(owningType)) && owningType is EcmaType;
2066
_compilation
.TypeSystemContext.EnsureLoadableMethod(method);
2074
var resolver =
_compilation
.NodeFactory.Resolver;
2085
?
_compilation
.TypeSystemContext.GetAsyncVariantMethod(method)
2116
_compilation
.TypeSystemContext.EnsureLoadableType(owningClass);
2132
_compilation
.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
2147
_compilation
.TypeSystemContext.EnsureLoadableType(type);
2215
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(result));
2393
if (
_compilation
.IsEffectivelySealed(type))
2409
makeBeforeFieldInit &=
_compilation
.CompilationModuleGroup.VersionsWithType(type);
2472
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
2487
Debug.Assert(
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type));
2503
if (!
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type))
2782
if (!parNode->hasSignificantPadding && !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type))
2919
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
3070
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.Object));
3073
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference));
3076
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle));
3079
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle));
3082
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle));
3085
ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle",
_compilation
.TypeSystemContext.SystemModule);
3089
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.String));
3092
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8));
3095
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Numerics"u8, "Vector`1"u8));
3290
return
_compilation
.IsEffectivelySealed(type);
3404
return (void*)ObjectToHandle(
_compilation
.GetFieldRvaData(fd));
3686
if (
_compilation
.NodeFactory.Target.IsWasm)
3691
else if (
_compilation
.NodeFactory.Target.IsWindows)
3701
pEEInfoOut.osType = TargetToOs(
_compilation
.NodeFactory.Target);
3706
DefType continuation =
_compilation
.TypeSystemContext.ContinuationType;
3712
DefType asyncHelpers =
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8);
3728
NodeFactory factory =
_compilation
.NodeFactory;
3739
WasmTypeNode typeNode =
_compilation
.NodeFactory.WasmTypeNode(typeArray);
3756
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3799
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3803
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3837
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3875
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3879
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(
3906
return ObjectToHandle(
_compilation
.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap()));
4056
HandleToObject(structHnd),
_compilation
.TypeSystemContext.Target.Architecture);
4103
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
4392
=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !
_compilation
.TypeSystemContext.Target.IsWindows;
4838
switch (
_compilation
.TypeSystemContext.Target.Architecture)
4857
return (uint)node.GetAlignment(
_compilation
.NodeFactory);
4866
TargetArchitecture arch =
_compilation
.TypeSystemContext.Target.Architecture;
4933
return owningMetadataType.Module ==
_compilation
.TypeSystemContext.SystemModule;
4942
flags.InstructionSetFlags.Add(
_compilation
.InstructionSetSupport.OptimisticFlags);
4952
TargetArchitecture targetArchitecture =
_compilation
.TypeSystemContext.Target.Architecture;
4959
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base));
4963
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd));
4967
if (targetArchitecture == TargetArchitecture.ARM && !
_compilation
.TypeSystemContext.Target.IsWindows)
5125
PgoSchemaElem[] pgoResultsSchemas =
_compilation
.ProfileData.GetAllowSynthesis(
_compilation
, methodDesc, out bool isSynthesized)?.SchemaData;
5127
if (pgoResultsSchemas != null && isSynthesized &&
_compilation
.ProfileData.EmbedPgoDataInR2RImage)
5175
instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(
_compilation
.TypeSystemContext.Target.Architecture, instructionSet);
5177
Debug.Assert(!
_compilation
.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet));