1 write to _compilation
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
495
_compilation
= compilation;
240 references to _compilation
ILCompiler.ReadyToRun (240)
JitInterface\CorInfoImpl.ReadyToRun.cs (144)
512
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.ResumptionStubEntryPoint(compiledStubNode));
517
MethodDesc asyncResumptionStub =
_compilation
.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType);
518
AddResumptionStubFixup(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
520
entryPoint = (void*)ObjectToHandle(
_compilation
.NodeFactory.CompiledMethodNode(asyncResumptionStub));
711
if ((_ilBodiesNeeded == null) &&
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress > 0)
733
_compilation
.DeterminismCheckFailed = true;
734
_compilation
.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{
_compilation
.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure.");
736
else if (data.Iterations <=
_compilation
.NodeFactory.OptimizationFlags.DeterminismStress)
746
_compilation
.PrepareForCompilationRetry(_methodCodeNode, _ilBodiesNeeded);
792
if (ShouldSkipCompilation(
_compilation
.InstructionSetSupport, MethodBeingCompiled,
_compilation
))
805
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
820
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL,
_compilation
.NodeFactory.CompilationModuleGroup))
831
if ((methodIL.GetMethodILScopeDefinition() is IEcmaMethodIL &&
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && ecmaMethod.Module == typicalDef.Context.SystemModule) ||
832
(!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
833
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
835
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalDef);
840
var resolver =
_compilation
.NodeFactory.Resolver;
841
if (
_compilation
.CompilationModuleGroup.VersionsWithModule(ecmaMethod.Module))
851
EntityHandle? handle =
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
854
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value));
866
if (
_compilation
.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
870
_compilation
.NodeFactory.WasmInterpreterToR2RThunk(wasmSig),
896
if (
_compilation
.NodeFactory.Target.IsWasm)
911
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewHelper, type));
921
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.NewArr1, type));
934
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.IsInstanceOf, type));
947
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.CastClass, type));
959
pLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, type));
987
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
1001
pLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.DelegateCtor(delegateTypeDesc, targetMethod));
1342
return
_compilation
.NodeFactory.GetReadyToRunHelperCell(id);
1349
var entrypoint =
_compilation
.NodeFactory.MethodEntrypoint(
1352
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true),
1385
if (methodDesc != null && (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1454
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1456
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1471
if (!(
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1473
ModuleToken result =
_compilation
.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1505
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1507
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType))
1509
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1515
return
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1531
ISymbolNode str =
_compilation
.SymbolNodeFactory.StringLiteral(
1532
new ModuleToken(
_compilation
.NodeFactory.ManifestMetadataTable._mutableModule, metaTok));
1538
ISymbolNode stringObject =
_compilation
.SymbolNodeFactory.StringLiteral(
1569
&& ((TypeDesc)ResolveTokenInScope(
_compilation
.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception))
1647
if (!pHasSideEffects && !
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(type))
1784
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.RvaFieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
1792
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) ||
_compilation
.NodeFactory.Target.IsWasm)
1809
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
1812
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
1855
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
1862
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldAddress(ComputeFieldWithToken(field, ref pResolvedToken)));
1870
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && (fieldOffset <= FieldFixupSignature.MaxCheckableOffset))
1873
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
1877
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(helperId, field.OwningType)
1953
MethodDesc versioningCallerMethod =
_compilation
.TypeSystemContext.IsUnboxingThunk(callerMethod)
1954
?
_compilation
.TypeSystemContext.GetTargetOfUnboxingThunk(callerMethod)
1967
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) &&
1968
!
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod))
2023
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2035
ModuleToken moduleToken =
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2039
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(
2173
else if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2175
!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2350
(
_compilation
.NodeFactory.Target.IsWasm &&
2429
ISymbolNode node =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type);
2500
_compilation
.NodeFactory.DetectGenericCycles(callerMethod, methodToCall);
2525
else if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType))
2551
_compilation
.SymbolNodeFactory.DispatchCell(
2594
&& !
_compilation
.NodeFactory.Target.IsWasm)
2605
MethodWithGCInfo targetCodeNode =
_compilation
.NodeFactory.CompiledMethodNode(compilableTarget);
2612
_compilation
.NodeFactory.MethodEntrypoint(
2636
_compilation
.NodeFactory.DynamicHelperCell(
2643
Debug.Assert(!pResult->sig.hasTypeArg() ||
_compilation
.NodeFactory.Target.IsWasm);
2665
pResult->instParamLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2674
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2680
instParamLookup =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
2737
return !
_compilation
.NodeFactory.Resolver.GetModuleTokenForType(
2811
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2837
_compilation
.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
2873
ISymbolNode helper =
_compilation
.SymbolNodeFactory.GenericLookupHelper(
2992
Import import = (Import)
_compilation
.SymbolNodeFactory.ContinuationTypeSymbol(act);
2996
if (!
_compilation
.CompilationModuleGroup.VersionsWithType(type))
2999
Import typeHandleImport = (Import)
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, type);
3035
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3041
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3064
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3071
symbolNode =
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3104
return !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type) || (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !((MetadataType)type).IsNonVersionable());
3113
if (!
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !
_compilation
.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3129
else if (!
_compilation
.IsLayoutFixedInCurrentVersionBubble(pMT))
3137
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3147
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3152
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3155
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3156
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3160
else if (
_compilation
.CompilationModuleGroup.TypeLayoutCompilationUnits(pMT).HasMultipleInexactCompilationUnits)
3177
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3179
else if (
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(pMT.BaseType))
3181
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3184
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3185
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3192
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3199
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout && !callerMethod.IsNonVersionable() && (pResult->offset <= FieldFixupSignature.MaxCheckableOffset))
3202
if (
_compilation
.CompilationModuleGroup.VersionsWithType(field.OwningType)) // Only verify versions with types
3203
AddPrecodeFixup(
_compilation
.SymbolNodeFactory.CheckFieldOffset(ComputeFieldWithToken(field, ref pResolvedToken)));
3211
pResult->fieldLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.FieldBaseOffset(field.OwningType));
3234
*ppCookieVal = (IntPtr *)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3239
ppIndirection = (void*)ObjectToHandle(
_compilation
.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3272
if (!
_compilation
.NodeFactory.Target.IsWasm)
3303
_compilation
.NodeFactory,
3320
if (!
_compilation
.NodeFactory.Target.IsWasm)
3333
relocTarget =
_compilation
.NodeFactory.WasmMethodRelativeVirtualIP(_methodCodeNode);
3348
_compilation
.NodeFactory.WasmAsyncResumeInfoFixups.AddFixup(location, offset);
3381
if (!
_compilation
.IsModuleInstrumented(ecmaMethod.Module))
3414
Debug.Assert(
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc));
3420
||
_compilation
.NodeFactory.Target.IsWasm)
3425
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetPInvokeTargetNode(methodWithToken));
3430
pLookup.addr = (void*)ObjectToHandle(
_compilation
.SymbolNodeFactory.GetIndirectPInvokeTargetNode(methodWithToken));
3447
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(method))
3455
stubIL =
_compilation
.GetMethodIL(method);
3459
Debug.Assert(!
_compilation
.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method));
3517
if (
_compilation
.NodeFactory.Target.Architecture == TargetArchitecture.X86)
3536
MethodIL methodIL =
_compilation
.GetMethodIL(MethodBeingCompiled);
3613
MethodIL methodIL =
_compilation
.GetMethodIL(typicalMethod);
3622
else if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(typicalMethod)
3625
Debug.Assert(
_compilation
.CompilationModuleGroup.CrossModuleInlineable(ecmaMethod) ||
3626
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod));
3627
bool needsTokenTranslation = !
_compilation
.CompilationModuleGroup.IsNonVersionableWithILTokensThatDoNotNeedTranslation(ecmaMethod);
3635
ISymbolNode ilBodyNode =
_compilation
.SymbolNodeFactory.CheckILBodyFixupSignature(typicalMethod);
3669
if (
_compilation
.TypeSystemContext.Target.Architecture != TargetArchitecture.X64)
3678
_compilation
.NodeFactory.MethodEntrypoint(
3699
if (
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3762
if (type.IsValueType && type.IsTypeDefEquivalent && !
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(type))
3776
return
_compilation
.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method);
3790
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
3801
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
3808
if ((callSig != null) &&
_compilation
.NodeFactory.Target.IsWasm)
3831
AddAdditionalDependency(
_compilation
.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
parent\parent\Common\JitInterface\CorInfoImpl.cs (96)
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)
473
_compilation
.NodeFactory.Target.MinimumFunctionAlignment :
474
_compilation
.NodeFactory.Target.OptimumFunctionAlignment;
539
_methodCodeNode.InitializeInliningInfo(inlineeArray,
_compilation
.NodeFactory);
542
var baselineSupport =
_compilation
.InstructionSetSupport;
561
TargetArchitecture architecture =
_compilation
.TypeSystemContext.Target.Architecture;
567
var node =
_compilation
.SymbolNodeFactory.PerMethodInstructionSetSupportFixup(actualSupport);
583
_compilation
.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
597
Debug.Assert(
_compilation
.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
598
_compilation
.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies);
662
return
_compilation
.TypeSystemContext.Target.PointerSize;
1022
if (
_compilation
.TypeSystemContext.Target.Architecture == TargetArchitecture.X86)
1162
if (
_compilation
.IsEffectivelySealed(method.GetUnboxedMethod()))
1167
if (
_compilation
.IsEffectivelySealed(method))
1315
method =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type);
1341
MethodDesc instantiatedMethod =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType);
1344
instantiatedMethod =
_compilation
.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation);
1353
if (!
_compilation
.CanInline(MethodBeingCompiled, method))
1357
MethodIL methodIL = method.IsUnboxingThunk() ? null :
_compilation
.GetMethodIL(method);
1396
var calleeIL =
_compilation
.GetMethodIL(calleeMethod);
1405
if (
_compilation
.CanInline(callerMethod, calleeMethod))
1429
var methodIL =
_compilation
.GetMethodIL(HandleToObject(ftn));
1475
decl =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc);
1479
MethodDesc originalImpl =
_compilation
.ResolveVirtualMethod(decl, objType, out info->detail);
1516
var resolver =
_compilation
.NodeFactory.Resolver;
1532
if (!
_compilation
.CompilationModuleGroup.VersionsWithTypeReference(decl.OwningType))
1634
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.MethodDictionary, originalImplWithToken));
1647
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeDictionary, originalImpl.OwningType));
1657
if (
_compilation
.SymbolNodeFactory.VerifyTypeAndFieldLayout)
1661
ISymbolNode virtualResolutionNode =
_compilation
.SymbolNodeFactory.CheckVirtualFunctionOverride(methodWithTokenDecl, objType, methodWithTokenImpl);
1688
MethodILScope scope = jitInterface.
_compilation
.GetMethodIL(methodWithToken.Method);
1748
MetadataType placeholderType =
_compilation
.TypeSystemContext.SystemModule.GetType("System"u8, "SZGenericArrayEnumerator`1"u8, throwIfNotFound: false);
1952
result =
_compilation
.TypeSystemContext.GetAsyncVariantMethod((MethodDesc)result);
2013
if (!
_compilation
.CompilationModuleGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition()))
2019
recordToken = (
_compilation
.CompilationModuleGroup.VersionsWithType(owningType) ||
_compilation
.CompilationModuleGroup.CrossModuleInlineableType(owningType)) && owningType is EcmaType;
2027
_compilation
.TypeSystemContext.EnsureLoadableMethod(method);
2035
var resolver =
_compilation
.NodeFactory.Resolver;
2046
?
_compilation
.TypeSystemContext.GetAsyncVariantMethod(method)
2077
_compilation
.TypeSystemContext.EnsureLoadableType(owningClass);
2093
_compilation
.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
2108
_compilation
.TypeSystemContext.EnsureLoadableType(type);
2176
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(result));
2344
if (
_compilation
.IsEffectivelySealed(type))
2360
makeBeforeFieldInit &=
_compilation
.CompilationModuleGroup.VersionsWithType(type);
2423
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
2438
Debug.Assert(
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type));
2454
if (!
_compilation
.IsInheritanceChainLayoutFixedInCurrentVersionBubble(type))
2733
if (!parNode->hasSignificantPadding && !
_compilation
.IsLayoutFixedInCurrentVersionBubble(type))
2870
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
3021
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.Object));
3024
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.TypedReference));
3027
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeTypeHandle));
3030
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeFieldHandle));
3033
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.RuntimeMethodHandle));
3036
ThrowHelper.ThrowTypeLoadException("System", "RuntimeArgumentHandle",
_compilation
.TypeSystemContext.SystemModule);
3040
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(WellKnownType.String));
3043
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System"u8, "RuntimeType"u8));
3046
return ObjectToHandle(
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Numerics"u8, "Vector`1"u8));
3241
return
_compilation
.IsEffectivelySealed(type);
3355
return (void*)ObjectToHandle(
_compilation
.GetFieldRvaData(fd));
3637
if (
_compilation
.NodeFactory.Target.IsWasm)
3642
else if (
_compilation
.NodeFactory.Target.IsWindows)
3652
pEEInfoOut.osType = TargetToOs(
_compilation
.NodeFactory.Target);
3657
DefType continuation =
_compilation
.TypeSystemContext.ContinuationType;
3663
DefType asyncHelpers =
_compilation
.TypeSystemContext.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8);
3679
NodeFactory factory =
_compilation
.NodeFactory;
3690
WasmTypeNode typeNode =
_compilation
.NodeFactory.WasmTypeNode(typeArray);
3707
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3750
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3754
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3788
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3826
_compilation
.SymbolNodeFactory.CreateReadyToRunHelper(
3830
_compilation
.NodeFactory.Resolver.GetModuleTokenForMethod(
3857
return ObjectToHandle(
_compilation
.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap()));
4007
HandleToObject(structHnd),
_compilation
.TypeSystemContext.Target.Architecture);
4054
ISymbolNode node =
_compilation
.SymbolNodeFactory.CheckTypeLayout(type);
4291
=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !
_compilation
.TypeSystemContext.Target.IsWindows;
4736
switch (
_compilation
.TypeSystemContext.Target.Architecture)
4755
return (uint)node.GetAlignment(
_compilation
.NodeFactory);
4764
TargetArchitecture arch =
_compilation
.TypeSystemContext.Target.Architecture;
4831
return owningMetadataType.Module ==
_compilation
.TypeSystemContext.SystemModule;
4840
flags.InstructionSetFlags.Add(
_compilation
.InstructionSetSupport.OptimisticFlags);
4850
TargetArchitecture targetArchitecture =
_compilation
.TypeSystemContext.Target.Architecture;
4857
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.X86_X86Base));
4861
Debug.Assert(
_compilation
.InstructionSetSupport.IsInstructionSetSupported(InstructionSet.ARM64_AdvSimd));
4865
if (targetArchitecture == TargetArchitecture.ARM && !
_compilation
.TypeSystemContext.Target.IsWindows)
5019
PgoSchemaElem[] pgoResultsSchemas =
_compilation
.ProfileData.GetAllowSynthesis(
_compilation
, methodDesc, out bool isSynthesized)?.SchemaData;
5021
if (pgoResultsSchemas != null && isSynthesized &&
_compilation
.ProfileData.EmbedPgoDataInR2RImage)
5069
instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(
_compilation
.TypeSystemContext.Target.Architecture, instructionSet);
5071
Debug.Assert(!
_compilation
.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet));