128 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)) 134return DelegateCreationInfo.Create(delegateType, target, constrainedType, NodeFactory, followVirtualDispatch); 144return NodeFactory.PInvokeMethodFixup(new PInvokeMethodData((PInvokeLazyFixupField)field)); 148return NodeFactory.ExternVariable(new Utf8String(externField.SymbolName)); 153return NodeFactory.FieldRvaData((EcmaField)field.GetTypicalFieldDefinition()); 159return NodeFactory.PreinitializationManager.HasLazyStaticConstructor(type); 227return !NodeFactory.VTable(type).HasKnownVirtualMethodUse; 232return NodeFactory.DevirtualizationManager.IsEffectivelySealed(type); 237return NodeFactory.DevirtualizationManager.GetImplementingClasses(type); 242return NodeFactory.DevirtualizationManager.IsEffectivelySealed(method); 247return NodeFactory.DevirtualizationManager.ResolveVirtualMethod(declMethod, implType, out devirtualizationDetail); 287if (type.IsGenericDefinition && NodeFactory.DevirtualizationManager.IsGenericDefinitionMethodTableReflectionVisible(type)) 292if (NodeFactory.DevirtualizationManager.CanReferenceConstructedMethodTable(type.NormalizeInstantiation())) 295if (NodeFactory.DevirtualizationManager.CanReferenceMetadataMethodTable(type.NormalizeInstantiation())) 326return NodeFactory.ConstructedTypeSymbol((TypeDesc)targetOfLookup); 328return NodeFactory.MetadataTypeSymbol((TypeDesc)targetOfLookup); 340if (NodeFactory.DevirtualizationManager.CanHaveDynamicInterfaceImplementations(type)) 342return NodeFactory.MaximallyConstructableType(type); 355return NodeFactory.MethodGenericDictionary((MethodDesc)targetOfLookup); 357return NodeFactory.FatFunctionPointer((MethodDesc)targetOfLookup); 359return NodeFactory.RuntimeMethodHandle((MethodDesc)targetOfLookup); 361return NodeFactory.RuntimeFieldHandle((FieldDesc)targetOfLookup); 366return type.IsValueType ? NodeFactory.ExactCallableAddress(ctor) : NodeFactory.CanonicalEntrypoint(ctor); 371return 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); 232return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(lookup.HelperId, lookup.HelperObject, _canonMethod); 237return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(lookup.HelperId, lookup.HelperObject, _canonMethod.OwningType); 542_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.NodeFactory, _canonMethodIL, method); 948instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 953instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1062_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason); 1346_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.NodeFactory, _canonMethodIL, canonField); 1973_dependencies.Add(_compilation.NodeFactory.MethodGenericDictionary(runtimeDeterminedResult), reason);
ILCompiler.RyuJit (82)
Compiler\RyuJitCompilation.cs (2)
107NodeFactory.SetMarkingComplete(); 119ObjectWriter.ObjectWriter.EmitObject(outputFile, nodes, NodeFactory, options, dumper, _logger);
JitInterface\CorInfoImpl.RyuJit.cs (67)
61entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.MethodEntrypoint(asyncResumptionStub)); 361pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(helperId, type)); 480pLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, delegateInfo)); 631return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFast"u8)); 633return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizable"u8)); 635return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastAlign8"u8)); 637return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFinalizableAlign8"u8)); 639return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewFastMisalign"u8)); 644return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewPtrArrayFast"u8)); 646return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFastAlign8"u8)); 648return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpNewArrayFast"u8)); 651return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpStackProbe"u8)); 654return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpGcPoll"u8)); 789return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)); 791return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)); 799&& _compilation.NodeFactory.TypeSystemContext.Target.Architecture != TargetArchitecture.X86) 800return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatchGuarded"u8)); 801return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpInterfaceDispatch"u8)); 803return _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("RhpResolveInterfaceMethodFast"u8)); 820return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8)); 822return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8)); 835entryPoint = _compilation.NodeFactory.ExternFunctionSymbol(new Utf8String(mangledName)); 837entryPoint = _compilation.NodeFactory.MethodEntrypoint(methodDesc); 854pResult = CreateConstLookupToSymbol(_compilation.NodeFactory.MethodEntrypoint(method)); 864stringObject = _compilation.NodeFactory.SerializedStringObject(""); 869stringObject = _compilation.NodeFactory.SerializedStringObject((string)literal); 961RelocType rel = (_compilation.NodeFactory.Target.IsWindows) ? 1072return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType); 1076return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle); 1193return _compilation.NodeFactory.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk); 1280_compilation.NodeFactory.MetadataManager.NoteOverridingMethod(method, directMethod); 1466CreateConstLookupToSymbol(_compilation.NodeFactory.FatFunctionPointer(targetMethod)); 1494_compilation.NodeFactory.StringAllocator(targetMethod) 1530instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 1535instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1614_compilation.NodeFactory.DispatchCell(targetOfLookup 1647_compilation.NodeFactory.DispatchCell(targetMethod 1676pResult->codePointerOrStubLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("NYI_LDVIRTFTN"u8))); 1690_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod)); 1826DictionaryLayoutNode contextLayout = _compilation.NodeFactory.GenericDictionaryLayout( 1852RuntimeMethodHandleNode methodHandleSymbol = _compilation.NodeFactory.RuntimeMethodHandle(method); 1876Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(_compilation.NodeFactory)); 1883int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(_compilation.NodeFactory, methodDesc, owningType); 1890(_additionalDependencies ??= new ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<NodeFactory>.DependencyList()).Add(_compilation.NodeFactory.VirtualMethodUse(methodDesc), "Virtual method call"); 1944externName = _compilation.NodeFactory.NameMangler.NodeMangler.ExternMethod(externName, md); 1946pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(externName)); 1953*ppCookieVal = (IntPtr*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("__security_cookie"u8))); 2089return (int*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("RhpTrapThreads"u8))); 2113fieldOffset += _compilation.NodeFactory.ThreadStaticBaseOffset(mt); 2167helper = _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup( 2173helper = _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup( 2199ISortableSymbolNode index = _compilation.NodeFactory.TypeThreadStaticIndex(field.OwningType); 2223baseAddr = _compilation.NodeFactory.TypeGCStaticsSymbol(field.OwningType); 2228baseAddr = _compilation.NodeFactory.TypeNonGCStaticsSymbol(field.OwningType); 2249_compilation.NodeFactory.ReadyToRunHelper(helperId, field.OwningType)); 2353PreinitializationManager preinitManager = _compilation.NodeFactory.PreinitializationManager; 2375if (value.GetRawData(_compilation.NodeFactory, out object data)) 2477addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2479offset = -NonGCStaticsNode.GetClassConstructorContextSize(_compilation.NodeFactory.Target); 2489addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeGCStaticsSymbol(type)); 2494addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2502pInfo->tlsIndexObject = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternDataSymbol(new Utf8String("_tls_index"u8))); 2503pInfo->tlsRootObject = CreateConstLookupToSymbol(_compilation.NodeFactory.TlsRoot); 2504pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(_compilation.NodeFactory.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow)); 2505pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternFunctionSymbol(new Utf8String("__tls_get_addr"u8)));
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (13)
451_compilation.NodeFactory.Target.MinimumFunctionAlignment : 452_compilation.NodeFactory.Target.OptimumFunctionAlignment; 580CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies, _compilation.NodeFactory, MethodBeingCompiled, methodIL); 1583info->instParamLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ConstructedTypeSymbol(originalImpl.OwningType)); 1974_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, method); 2015_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, field); 3561if (_compilation.NodeFactory.Target.IsWasm) 3566else if (_compilation.NodeFactory.Target.IsWindows) 3576pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3599NodeFactory factory = _compilation.NodeFactory; 4546return (uint)node.GetAlignment(_compilation.NodeFactory);