1 write to _compilation
ILCompiler.RyuJit (1)
JitInterface\CorInfoImpl.RyuJit.cs (1)
46
_compilation
= compilation;
190 references to _compilation
ILCompiler.RyuJit (190)
JitInterface\CorInfoImpl.RyuJit.cs (110)
59
MethodDesc asyncResumptionStub =
_compilation
.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled,
_compilation
.TypeSystemContext.GeneratedAssembly.GetGlobalModuleType());
61
entryPoint = (void*)ObjectToHandle(
_compilation
.NodeFactory.MethodEntrypoint(asyncResumptionStub));
70
methodIL ??=
_compilation
.GetMethodIL(MethodBeingCompiled);
281
if (
_compilation
.NeedsRuntimeLookup(helperId, entity))
283
GenericDictionaryLookup genericLookup =
_compilation
.ComputeGenericLookup(callerHandle, helperId, entity);
337
ISymbolNode constLookup =
_compilation
.ComputeConstantLookup(helperId, entity);
360
pLookup = CreateConstLookupToSymbol(
_compilation
.NodeFactory.ReadyToRunHelper(helperId, type));
435
targetOfLookup =
_compilation
.TypeSystemContext.GetMethodForRuntimeDeterminedType(directMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)constrainedType);
437
targetOfLookup =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(directMethod.GetTypicalMethodDefinition(), (InstantiatedType)constrainedType);
461
DelegateCreationInfo delegateInfo =
_compilation
.GetDelegateCtor(delegateTypeDesc, targetMethod, constrainedType, isLdvirtftn);
484
pLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, delegateInfo));
640
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFast);
642
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFinalizable);
644
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFastAlign8);
646
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFinalizableAlign8);
648
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFastMisalign);
653
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewPtrArrayFast);
655
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewArrayFastAlign8);
657
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewArrayFast);
660
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.StackProbe);
663
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.GCPoll);
798
return
_compilation
.NodeFactory.MethodEntrypoint(
_compilation
.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null));
800
return
_compilation
.NodeFactory.MethodEntrypoint(
_compilation
.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null));
806
if ((
_compilation
._compilationOptions & RyuJitCompilationOptions.ControlFlowGuardAnnotations) != 0
808
&&
_compilation
.NodeFactory.TypeSystemContext.Target.Architecture != TargetArchitecture.X86)
809
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.InterfaceDispatchGuarded);
810
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.InterfaceDispatch);
812
return
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.ResolveInterfaceMethodFast);
823
return
_compilation
.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8));
825
return
_compilation
.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8));
831
MethodDesc methodDesc = JitHelper.GetEntryPoint(
_compilation
.TypeSystemContext, id);
834
?
_compilation
.NodeFactory.ReadyToRunHelper(id)
835
:
_compilation
.NodeFactory.MethodEntrypoint(methodDesc);
850
pResult = CreateConstLookupToSymbol(
_compilation
.NodeFactory.MethodEntrypoint(method));
860
stringObject =
_compilation
.NodeFactory.SerializedStringObject("");
865
stringObject =
_compilation
.NodeFactory.SerializedStringObject((string)literal);
955
var typeSymbol =
_compilation
.NecessaryTypeSymbolIfPossible(type);
957
RelocType rel = (
_compilation
.NodeFactory.Target.IsWindows) ?
1060
_debugInfo =
_compilation
.GetDebugInfo(methodIL);
1068
return
_compilation
.NodeFactory.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType);
1072
return
_compilation
.NodeFactory.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle);
1092
||
_compilation
.TypeSystemContext.IsGenericArrayInterfaceType(type))
1166
if (elementType.GetElementSize().AsInt ==
_compilation
.TypeSystemContext.Target.PointerSize)
1186
_compilation
.DetectGenericCycles(methodIL.OwningMethod, method);
1189
return
_compilation
.NodeFactory.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk);
1276
_compilation
.NodeFactory.MetadataManager.NoteOverridingMethod(method, directMethod);
1364
canDevirt =
_compilation
.IsEffectivelySealed(targetMethod);
1411
lookupMethod =
_compilation
.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)runtimeDeterminedConstrainedType);
1413
lookupMethod =
_compilation
.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)runtimeDeterminedConstrainedType);
1473
CreateConstLookupToSymbol(
_compilation
.NodeFactory.FatFunctionPointer(targetMethod));
1486
targetMethod =
_compilation
.ExpandIntrinsicForCallsite(targetMethod, methodIL.OwningMethod);
1501
_compilation
.NodeFactory.StringAllocator(targetMethod)
1537
instParam =
_compilation
.NodeFactory.MethodGenericDictionary(concreteMethod);
1542
instParam =
_compilation
.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType);
1579
if (!
_compilation
.NeedsRuntimeLookup(constrainedHelperId, constrainedCallInfo))
1599
MethodDesc targetOfLookup =
_compilation
.GetTargetOfGenericVirtualMethodCall((MethodDesc)GetRuntimeDeterminedObjectForToken(ref pResolvedToken));
1601
_compilation
.DetectGenericCycles(
1621
_compilation
.NodeFactory.DispatchCell(targetOfLookup
1654
_compilation
.NodeFactory.DispatchCell(targetMethod
1698
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod));
1728
ISymbolNode typeHandleSymbol =
_compilation
.NecessaryTypeSymbolIfPossible(type);
1834
DictionaryLayoutNode contextLayout =
_compilation
.NodeFactory.GenericDictionaryLayout(
1843
helperId =
_compilation
.GetLdTokenHelperForType(td);
1860
RuntimeMethodHandleNode methodHandleSymbol =
_compilation
.NodeFactory.RuntimeMethodHandle(method);
1878
int pointerSize =
_compilation
.TypeSystemContext.Target.PointerSize;
1884
Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(
_compilation
.NodeFactory));
1891
int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(
_compilation
.NodeFactory, methodDesc, owningType);
1897
if (
_compilation
.NeedsSlotUseTracking(owningType))
1898
(_additionalDependencies ??= new ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<NodeFactory>.DependencyList()).Add(
_compilation
.NodeFactory.VirtualMethodUse(methodDesc), "Virtual method call");
1950
pLookup = CreateConstLookupToSymbol(
_compilation
.NodeFactory.DirectPInvokeTarget(md));
1957
*ppCookieVal = (IntPtr*)ObjectToHandle(
_compilation
.NodeFactory.ExternVariable(new Utf8String("__security_cookie"u8)));
1990
if (
_compilation
.HasLazyStaticConstructor(owningType) && !((MetadataType)owningType).IsBeforeFieldInit)
2010
MethodDesc stub =
_compilation
.PInvokeILProvider.GetCalliStub(
2023
if (
_compilation
.GetMethodIL(method) is Internal.IL.Stubs.PInvokeILStubMethodIL stub)
2047
if (
_compilation
.TypeSystemContext.Target.Architecture == TargetArchitecture.ARM)
2093
return (int*)ObjectToHandle(
_compilation
.NodeFactory.ExternVariable(new Utf8String("RhpTrapThreads"u8)));
2117
fieldOffset +=
_compilation
.NodeFactory.ThreadStaticBaseOffset(mt);
2131
ISymbolNode node =
_compilation
.GetFieldRvaData(field);
2136
if (
_compilation
.HasLazyStaticConstructor(field.OwningType))
2171
helper =
_compilation
.NodeFactory.ReadyToRunHelperFromTypeLookup(
2177
helper =
_compilation
.NodeFactory.ReadyToRunHelperFromDictionaryLookup(
2203
ISortableSymbolNode index =
_compilation
.NodeFactory.TypeThreadStaticIndex(field.OwningType);
2209
if (
_compilation
.HasLazyStaticConstructor(field.OwningType))
2227
baseAddr =
_compilation
.NodeFactory.TypeGCStaticsSymbol(field.OwningType);
2232
baseAddr =
_compilation
.NodeFactory.TypeNonGCStaticsSymbol(field.OwningType);
2236
if (
_compilation
.HasLazyStaticConstructor(field.OwningType))
2245
_compilation
.NodeFactory.ReadyToRunHelper(helperId, field.OwningType));
2254
if (
_compilation
.IsInitOnly(field))
2278
if (
_compilation
.TypeSystemContext.IsArrayVariantCastable(type))
2285
return !
_compilation
.CanReferenceConstructedTypeOrCanonicalFormOfType(type)
2286
&& (type == canonType || !
_compilation
.CanReferenceConstructedMethodTable(canonType));
2308
if (
_compilation
.IsEffectivelySealed(type))
2314
TypeDesc[] implClasses =
_compilation
.GetImplementingClasses(type);
2342
if (!field.IsThreadStatic &&
_compilation
.IsInitOnly(field) && field.OwningType is MetadataType owningType)
2349
PreinitializationManager preinitManager =
_compilation
.NodeFactory.PreinitializationManager;
2355
int targetPtrSize =
_compilation
.TypeSystemContext.Target.PointerSize;
2371
if (value.GetRawData(
_compilation
.NodeFactory, out object data))
2420
int strDataOffset =
_compilation
.TypeSystemContext.Target.PointerSize + sizeof(int); // 12 on 64bit
2447
return ObjectToHandle(
_compilation
.NecessaryRuntimeTypeIfPossible(type));
2473
addr.addr = (void*)ObjectToHandle(
_compilation
.NodeFactory.TypeNonGCStaticsSymbol(type));
2475
offset = -NonGCStaticsNode.GetClassConstructorContextSize(
_compilation
.NodeFactory.Target);
2485
addr.addr = (void*)ObjectToHandle(
_compilation
.NodeFactory.TypeGCStaticsSymbol(type));
2490
addr.addr = (void*)ObjectToHandle(
_compilation
.NodeFactory.TypeNonGCStaticsSymbol(type));
2498
pInfo->tlsIndexObject = CreateConstLookupToSymbol(
_compilation
.NodeFactory.ExternDataSymbol(new Utf8String("_tls_index"u8)));
2499
pInfo->tlsRootObject = CreateConstLookupToSymbol(
_compilation
.NodeFactory.TlsRoot);
2500
pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(
_compilation
.NodeFactory.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow));
2501
pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(
_compilation
.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.TlsGetAddr));
parent\parent\Common\JitInterface\CorInfoImpl.cs (80)
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;
580
CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies,
_compilation
.NodeFactory, MethodBeingCompiled, methodIL);
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);
1653
info->instParamLookup.constLookup = CreateConstLookupToSymbol(
_compilation
.NodeFactory.ConstructedTypeSymbol(originalImpl.OwningType));
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);
2031
_compilation
.TypeSystemContext.EnsureLoadableMethod(method);
2044
_compilation
.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies,
_compilation
.NodeFactory, (MethodIL)methodIL, method);
2050
?
_compilation
.TypeSystemContext.GetAsyncVariantMethod(method)
2081
_compilation
.TypeSystemContext.EnsureLoadableType(owningClass);
2085
_compilation
.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies,
_compilation
.NodeFactory, (MethodIL)methodIL, field);
2112
_compilation
.TypeSystemContext.EnsureLoadableType(type);
2151
if (
_compilation
.IsFatPointerCandidate(methodIL.OwningMethod, methodSig))
2180
return ObjectToHandle(
_compilation
.TypeSystemContext.GetWellKnownType(result));
2348
if (
_compilation
.IsEffectivelySealed(type))
2925
!
_compilation
.HasLazyStaticConstructor(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;
3792
CompilerTypeSystemContext context =
_compilation
.TypeSystemContext;
3861
return ObjectToHandle(
_compilation
.TypeSystemContext.GetContinuationType(gcMapBuilder.ToGCMap()));
4011
HandleToObject(structHnd),
_compilation
.TypeSystemContext.Target.Architecture);
4307
=> (chunk.flags & CorJitAllocMemFlag.CORJIT_ALLOCMEM_HAS_POINTERS_TO_CODE) != 0 && !
_compilation
.TypeSystemContext.Target.IsWindows;
4446
var target =
_compilation
.TypeSystemContext.Target;
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)
4936
|| (
_compilation
.TypeSystemContext.IsSpecialUnboxingThunk(this.MethodBeingCompiled) &&
_compilation
.TypeSystemContext.GetTargetOfSpecialUnboxingThunk(this.MethodBeingCompiled).IsAsyncCall())
4937
|| (
_compilation
.TypeSystemContext.IsDefaultInterfaceMethodImplementationInstantiationThunk(this.MethodBeingCompiled) &&
_compilation
.TypeSystemContext.GetTargetOfDefaultInterfaceMethodImplementationInstantiationThunk(this.MethodBeingCompiled).IsAsyncCall())
5045
PgoSchemaElem[] pgoResultsSchemas =
_compilation
.ProfileData[methodDesc]?.SchemaData;
5056
,
_compilation
.CanReferenceConstructedMethodTable
5151
instructionSet = InstructionSetFlags.ConvertToImpliedInstructionSetForVectorInstructionSets(
_compilation
.TypeSystemContext.Target.Architecture, instructionSet);
5153
Debug.Assert(!
_compilation
.InstructionSetSupport.NonSpecifiableFlags.HasInstructionSet(instructionSet));
5155
return supportEnabled ?
_compilation
.InstructionSetSupport.IsInstructionSetSupported(instructionSet) : false;