120 references to NodeFactory
ILCompiler.Compiler (45)
Compiler\Compilation.cs (29)
33
public CompilerTypeSystemContext TypeSystemContext =>
NodeFactory
.TypeSystemContext;
57
NodeFactory
.AttachToDependencyGraph(_dependencyGraph);
109
return
NodeFactory
.DevirtualizationManager.CanReferenceConstructedMethodTable(type.NormalizeInstantiation());
114
return
NodeFactory
.DevirtualizationManager.CanReferenceConstructedTypeOrCanonicalFormOfType(type.NormalizeInstantiation());
122
if (followVirtualDispatch &&
NodeFactory
.DevirtualizationManager.IsEffectivelySealed(target))
128
return DelegateCreationInfo.Create(delegateType, target, constrainedType,
NodeFactory
, followVirtualDispatch);
138
return
NodeFactory
.PInvokeMethodFixup(new PInvokeMethodData((PInvokeLazyFixupField)field));
142
return
NodeFactory
.ExternVariable(new Utf8String(externField.SymbolName));
147
return
NodeFactory
.FieldRvaData((EcmaField)field.GetTypicalFieldDefinition());
153
return
NodeFactory
.PreinitializationManager.HasLazyStaticConstructor(type);
221
return !
NodeFactory
.VTable(type).HasKnownVirtualMethodUse;
226
return
NodeFactory
.DevirtualizationManager.IsEffectivelySealed(type);
231
return
NodeFactory
.DevirtualizationManager.GetImplementingClasses(type);
236
return
NodeFactory
.DevirtualizationManager.IsEffectivelySealed(method);
241
return
NodeFactory
.DevirtualizationManager.ResolveVirtualMethod(declMethod, implType, out devirtualizationDetail);
281
if (type.IsGenericDefinition &&
NodeFactory
.DevirtualizationManager.IsGenericDefinitionMethodTableReflectionVisible(type))
286
if (
NodeFactory
.DevirtualizationManager.CanReferenceConstructedMethodTable(type.NormalizeInstantiation()))
289
if (
NodeFactory
.DevirtualizationManager.CanReferenceMetadataMethodTable(type.NormalizeInstantiation()))
320
return
NodeFactory
.ConstructedTypeSymbol((TypeDesc)targetOfLookup);
322
return
NodeFactory
.MetadataTypeSymbol((TypeDesc)targetOfLookup);
334
if (
NodeFactory
.DevirtualizationManager.CanHaveDynamicInterfaceImplementations(type))
336
return
NodeFactory
.MaximallyConstructableType(type);
349
return
NodeFactory
.MethodGenericDictionary((MethodDesc)targetOfLookup);
351
return
NodeFactory
.FatFunctionPointer((MethodDesc)targetOfLookup);
353
return
NodeFactory
.RuntimeMethodHandle((MethodDesc)targetOfLookup);
355
return
NodeFactory
.RuntimeFieldHandle((FieldDesc)targetOfLookup);
360
return type.IsValueType ?
NodeFactory
.ExactCallableAddress(ctor) :
NodeFactory
.CanonicalEntrypoint(ctor);
365
return
NodeFactory
.ExternFunctionSymbol(new Utf8String(JitHelper.GetNewObjectHelperForType(type)));
Compiler\ILScanner.cs (2)
203
entryPoint = _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String(mangledName));
205
entryPoint = _compilation.
NodeFactory
.MethodEntrypoint(methodDesc);
IL\ILImporter.Scanner.cs (14)
98
_factory = (ILScanNodeFactory)compilation.
NodeFactory
;
162
_dependencies.Add(_compilation.
NodeFactory
.MethodEntrypoint(_compilation.
NodeFactory
.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)), reason);
177
_dependencies.Add(_compilation.
NodeFactory
.MethodEntrypoint(_compilation.
NodeFactory
.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)), reason);
217
return _compilation.
NodeFactory
.ReadyToRunHelperFromDictionaryLookup(lookup.HelperId, lookup.HelperObject, _canonMethod);
222
return _compilation.
NodeFactory
.ReadyToRunHelperFromTypeLookup(lookup.HelperId, lookup.HelperObject, _canonMethod.OwningType);
427
_compilation.
NodeFactory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.
NodeFactory
, _canonMethodIL, method);
447
_dependencies.Add(_compilation.
NodeFactory
.MethodEntrypoint(resumptionStub), asyncReason);
850
instParam = _compilation.
NodeFactory
.MethodGenericDictionary(concreteMethod);
855
instParam = _compilation.
NodeFactory
.ConstructedTypeSymbol(concreteMethod.OwningType);
1226
_compilation.
NodeFactory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.
NodeFactory
, _canonMethodIL, canonField);
ILCompiler.RyuJit (75)
Compiler\RyuJitCompilation.cs (2)
107
NodeFactory
.SetMarkingComplete();
119
ObjectWriter.ObjectWriter.EmitObject(outputFile, nodes,
NodeFactory
, options, dumper, _logger);
JitInterface\CorInfoImpl.RyuJit.cs (63)
61
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.MethodEntrypoint(asyncResumptionStub));
337
pLookup = CreateConstLookupToSymbol(_compilation.
NodeFactory
.ReadyToRunHelper(helperId, type));
456
pLookup.constLookup = CreateConstLookupToSymbol(_compilation.
NodeFactory
.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, delegateInfo));
610
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewFast"u8));
612
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewFinalizable"u8));
614
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewFastAlign8"u8));
616
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewFinalizableAlign8"u8));
618
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewFastMisalign"u8));
623
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewPtrArrayFast"u8));
625
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewArrayFastAlign8"u8));
627
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpNewArrayFast"u8));
630
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpStackProbe"u8));
633
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpGcPoll"u8));
768
return _compilation.
NodeFactory
.MethodEntrypoint(_compilation.
NodeFactory
.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null));
770
return _compilation.
NodeFactory
.MethodEntrypoint(_compilation.
NodeFactory
.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null));
776
return _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("RhpResolveInterfaceMethodFast"u8));
793
return _compilation.
NodeFactory
.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8));
795
return _compilation.
NodeFactory
.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8));
808
entryPoint = _compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String(mangledName));
810
entryPoint = _compilation.
NodeFactory
.MethodEntrypoint(methodDesc);
827
pResult = CreateConstLookupToSymbol(_compilation.
NodeFactory
.MethodEntrypoint(method));
868
stringObject = _compilation.
NodeFactory
.SerializedStringObject("");
873
stringObject = _compilation.
NodeFactory
.SerializedStringObject((string)literal);
965
RelocType rel = (_compilation.
NodeFactory
.Target.IsWindows) ?
1076
return _compilation.
NodeFactory
.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType);
1080
return _compilation.
NodeFactory
.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle);
1197
return _compilation.
NodeFactory
.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk);
1284
_compilation.
NodeFactory
.MetadataManager.NoteOverridingMethod(method, directMethod);
1470
CreateConstLookupToSymbol(_compilation.
NodeFactory
.FatFunctionPointer(targetMethod));
1498
_compilation.
NodeFactory
.StringAllocator(targetMethod)
1534
instParam = _compilation.
NodeFactory
.MethodGenericDictionary(concreteMethod);
1539
instParam = _compilation.
NodeFactory
.ConstructedTypeSymbol(concreteMethod.OwningType);
1633
_compilation.
NodeFactory
.InterfaceDispatchCell(targetMethod
1662
pResult->codePointerOrStubLookup.constLookup = CreateConstLookupToSymbol(_compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("NYI_LDVIRTFTN"u8)));
1676
_compilation.
NodeFactory
.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod));
1814
DictionaryLayoutNode contextLayout = _compilation.
NodeFactory
.GenericDictionaryLayout(
1840
RuntimeMethodHandleNode methodHandleSymbol = _compilation.
NodeFactory
.RuntimeMethodHandle(method);
1864
Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(_compilation.
NodeFactory
));
1871
int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(_compilation.
NodeFactory
, methodDesc, owningType);
1878
(_additionalDependencies ??= new ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<NodeFactory>.DependencyList()).Add(_compilation.
NodeFactory
.VirtualMethodUse(methodDesc), "Virtual method call");
1932
externName = _compilation.
NodeFactory
.NameMangler.NodeMangler.ExternMethod(externName, md);
1934
pLookup = CreateConstLookupToSymbol(_compilation.
NodeFactory
.ExternFunctionSymbol(externName));
1941
*ppCookieVal = (IntPtr*)ObjectToHandle(_compilation.
NodeFactory
.ExternVariable(new Utf8String("__security_cookie"u8)));
2077
return (int*)ObjectToHandle(_compilation.
NodeFactory
.ExternVariable(new Utf8String("RhpTrapThreads"u8)));
2101
fieldOffset += _compilation.
NodeFactory
.ThreadStaticBaseOffset(mt);
2155
helper = _compilation.
NodeFactory
.ReadyToRunHelperFromTypeLookup(
2161
helper = _compilation.
NodeFactory
.ReadyToRunHelperFromDictionaryLookup(
2187
ISortableSymbolNode index = _compilation.
NodeFactory
.TypeThreadStaticIndex(field.OwningType);
2211
baseAddr = _compilation.
NodeFactory
.TypeGCStaticsSymbol(field.OwningType);
2216
baseAddr = _compilation.
NodeFactory
.TypeNonGCStaticsSymbol(field.OwningType);
2237
_compilation.
NodeFactory
.ReadyToRunHelper(helperId, field.OwningType));
2341
PreinitializationManager preinitManager = _compilation.
NodeFactory
.PreinitializationManager;
2363
if (value.GetRawData(_compilation.
NodeFactory
, out object data))
2465
addr.addr = (void*)ObjectToHandle(_compilation.
NodeFactory
.TypeNonGCStaticsSymbol(type));
2467
offset = -NonGCStaticsNode.GetClassConstructorContextSize(_compilation.
NodeFactory
.Target);
2477
addr.addr = (void*)ObjectToHandle(_compilation.
NodeFactory
.TypeGCStaticsSymbol(type));
2482
addr.addr = (void*)ObjectToHandle(_compilation.
NodeFactory
.TypeNonGCStaticsSymbol(type));
2490
pInfo->tlsIndexObject = CreateConstLookupToSymbol(_compilation.
NodeFactory
.ExternDataSymbol(new Utf8String("_tls_index"u8)));
2491
pInfo->tlsRootObject = CreateConstLookupToSymbol(_compilation.
NodeFactory
.TlsRoot);
2492
pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(_compilation.
NodeFactory
.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow));
2493
pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(_compilation.
NodeFactory
.ExternFunctionSymbol(new Utf8String("__tls_get_addr"u8)));
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (10)
449
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
450
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
578
CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies, _compilation.
NodeFactory
, MethodBeingCompiled, methodIL);
1895
_compilation.
NodeFactory
.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.
NodeFactory
, (MethodIL)methodIL, method);
1944
_compilation.
NodeFactory
.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.
NodeFactory
, (MethodIL)methodIL, field);
3461
if (_compilation.
NodeFactory
.Target.IsWasm)
3466
else if (_compilation.
NodeFactory
.Target.IsWindows)
3476
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);