124 references to NodeFactory
ILCompiler.Compiler (46)
Compiler\Compilation.cs (29)
33public CompilerTypeSystemContext TypeSystemContext => NodeFactory.TypeSystemContext; 57NodeFactory.AttachToDependencyGraph(_dependencyGraph); 109return NodeFactory.DevirtualizationManager.CanReferenceConstructedMethodTable(type.NormalizeInstantiation()); 114return NodeFactory.DevirtualizationManager.CanReferenceConstructedTypeOrCanonicalFormOfType(type.NormalizeInstantiation()); 122if (followVirtualDispatch && NodeFactory.DevirtualizationManager.IsEffectivelySealed(target)) 128return DelegateCreationInfo.Create(delegateType, target, constrainedType, NodeFactory, followVirtualDispatch); 138return NodeFactory.PInvokeMethodFixup(new PInvokeMethodData((PInvokeLazyFixupField)field)); 142return NodeFactory.ExternVariable(new Utf8String(externField.SymbolName)); 147return NodeFactory.FieldRvaData((EcmaField)field.GetTypicalFieldDefinition()); 153return NodeFactory.PreinitializationManager.HasLazyStaticConstructor(type); 221return !NodeFactory.VTable(type).HasKnownVirtualMethodUse; 226return NodeFactory.DevirtualizationManager.IsEffectivelySealed(type); 231return NodeFactory.DevirtualizationManager.GetImplementingClasses(type); 236return NodeFactory.DevirtualizationManager.IsEffectivelySealed(method); 241return NodeFactory.DevirtualizationManager.ResolveVirtualMethod(declMethod, implType, out devirtualizationDetail); 281if (type.IsGenericDefinition && NodeFactory.DevirtualizationManager.IsGenericDefinitionMethodTableReflectionVisible(type)) 286if (NodeFactory.DevirtualizationManager.CanReferenceConstructedMethodTable(type.NormalizeInstantiation())) 289if (NodeFactory.DevirtualizationManager.CanReferenceMetadataMethodTable(type.NormalizeInstantiation())) 320return NodeFactory.ConstructedTypeSymbol((TypeDesc)targetOfLookup); 322return NodeFactory.MetadataTypeSymbol((TypeDesc)targetOfLookup); 334if (NodeFactory.DevirtualizationManager.CanHaveDynamicInterfaceImplementations(type)) 336return NodeFactory.MaximallyConstructableType(type); 349return NodeFactory.MethodGenericDictionary((MethodDesc)targetOfLookup); 351return NodeFactory.FatFunctionPointer((MethodDesc)targetOfLookup); 353return NodeFactory.RuntimeMethodHandle((MethodDesc)targetOfLookup); 355return NodeFactory.RuntimeFieldHandle((FieldDesc)targetOfLookup); 360return type.IsValueType ? NodeFactory.ExactCallableAddress(ctor) : NodeFactory.CanonicalEntrypoint(ctor); 365return NodeFactory.ExternFunctionSymbol(new Utf8String(JitHelper.GetNewObjectHelperForType(type)));
Compiler\ILScanner.cs (2)
203entryPoint = _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String(mangledName)); 205entryPoint = _compilation.NodeFactory.MethodEntrypoint(methodDesc);
IL\ILImporter.Scanner.cs (15)
101_factory = (ILScanNodeFactory)compilation.NodeFactory; 165_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)), reason); 180_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)), reason); 220return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(lookup.HelperId, lookup.HelperObject, _canonMethod); 225return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(lookup.HelperId, lookup.HelperObject, _canonMethod.OwningType); 453_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.NodeFactory, _canonMethodIL, method); 859instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 864instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 973_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason); 1257_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.NodeFactory, _canonMethodIL, canonField); 1838_dependencies.Add(_compilation.NodeFactory.MethodGenericDictionary(runtimeDeterminedResult), reason);
ILCompiler.RyuJit (78)
Compiler\RyuJitCompilation.cs (2)
107NodeFactory.SetMarkingComplete(); 119ObjectWriter.ObjectWriter.EmitObject(outputFile, nodes, NodeFactory, options, dumper, _logger);
JitInterface\CorInfoImpl.RyuJit.cs (66)
61entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.MethodEntrypoint(asyncResumptionStub)); 342pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(helperId, type)); 461pLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, delegateInfo)); 612return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFast"u8)); 614return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizable"u8)); 616return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastAlign8"u8)); 618return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizableAlign8"u8)); 620return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastMisalign"u8)); 625return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewPtrArrayFast"u8)); 627return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFastAlign8"u8)); 629return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFast"u8)); 632return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpStackProbe"u8)); 635return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpGcPoll"u8)); 770return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)); 772return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)); 780&& _compilation.NodeFactory.TypeSystemContext.Target.Architecture != TargetArchitecture.X86) 781return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatchGuarded"u8)); 782return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatch"u8)); 784return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpResolveInterfaceMethodFast"u8)); 801return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8)); 803return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8)); 816entryPoint = _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String(mangledName)); 818entryPoint = _compilation.NodeFactory.MethodEntrypoint(methodDesc); 835pResult = CreateConstLookupToSymbol(_compilation.NodeFactory.MethodEntrypoint(method)); 876stringObject = _compilation.NodeFactory.SerializedStringObject(""); 881stringObject = _compilation.NodeFactory.SerializedStringObject((string)literal); 973RelocType rel = (_compilation.NodeFactory.Target.IsWindows) ? 1084return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType); 1088return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle); 1205return _compilation.NodeFactory.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk); 1292_compilation.NodeFactory.MetadataManager.NoteOverridingMethod(method, directMethod); 1478CreateConstLookupToSymbol(_compilation.NodeFactory.FatFunctionPointer(targetMethod)); 1506_compilation.NodeFactory.StringAllocator(targetMethod) 1542instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 1547instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1641_compilation.NodeFactory.InterfaceDispatchCell(targetMethod 1670pResult->codePointerOrStubLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("NYI_LDVIRTFTN"u8))); 1684_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod)); 1820DictionaryLayoutNode contextLayout = _compilation.NodeFactory.GenericDictionaryLayout( 1846RuntimeMethodHandleNode methodHandleSymbol = _compilation.NodeFactory.RuntimeMethodHandle(method); 1870Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(_compilation.NodeFactory)); 1877int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(_compilation.NodeFactory, methodDesc, owningType); 1884(_additionalDependencies ??= new ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<NodeFactory>.DependencyList()).Add(_compilation.NodeFactory.VirtualMethodUse(methodDesc), "Virtual method call"); 1938externName = _compilation.NodeFactory.NameMangler.NodeMangler.ExternMethod(externName, md); 1940pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(externName)); 1947*ppCookieVal = (IntPtr*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("__security_cookie"u8))); 2083return (int*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("RhpTrapThreads"u8))); 2107fieldOffset += _compilation.NodeFactory.ThreadStaticBaseOffset(mt); 2161helper = _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup( 2167helper = _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup( 2193ISortableSymbolNode index = _compilation.NodeFactory.TypeThreadStaticIndex(field.OwningType); 2217baseAddr = _compilation.NodeFactory.TypeGCStaticsSymbol(field.OwningType); 2222baseAddr = _compilation.NodeFactory.TypeNonGCStaticsSymbol(field.OwningType); 2243_compilation.NodeFactory.ReadyToRunHelper(helperId, field.OwningType)); 2347PreinitializationManager preinitManager = _compilation.NodeFactory.PreinitializationManager; 2369if (value.GetRawData(_compilation.NodeFactory, out object data)) 2471addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2473offset = -NonGCStaticsNode.GetClassConstructorContextSize(_compilation.NodeFactory.Target); 2483addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeGCStaticsSymbol(type)); 2488addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2496pInfo->tlsIndexObject = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternDataSymbol(new Utf8String("_tls_index"u8))); 2497pInfo->tlsRootObject = CreateConstLookupToSymbol(_compilation.NodeFactory.TlsRoot); 2498pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(_compilation.NodeFactory.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow)); 2499pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("__tls_get_addr"u8)));
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (10)
451_compilation.NodeFactory.Target.MinimumFunctionAlignment : 452_compilation.NodeFactory.Target.OptimumFunctionAlignment; 580CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies, _compilation.NodeFactory, MethodBeingCompiled, methodIL); 1872_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, method); 1913_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, field); 3459if (_compilation.NodeFactory.Target.IsWasm) 3464else if (_compilation.NodeFactory.Target.IsWindows) 3474pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target);