127 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.ReadyToRunHelper(JitHelper.GetNewObjectHelperForType(type));
Compiler\ILScanner.cs (2)
197? _compilation.NodeFactory.ReadyToRunHelper(key) 198: _compilation.NodeFactory.MethodEntrypoint(methodDesc);
IL\ILImporter.Scanner.cs (15)
102_factory = (ILScanNodeFactory)compilation.NodeFactory; 166_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)), reason); 181_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)), reason); 233return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(lookup.HelperId, lookup.HelperObject, _canonMethod); 238return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(lookup.HelperId, lookup.HelperObject, _canonMethod.OwningType); 552_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.NodeFactory, _canonMethodIL, method); 966instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 971instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1080_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason); 1437_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _dependencies, _compilation.NodeFactory, _canonMethodIL, canonField); 2088_dependencies.Add(_compilation.NodeFactory.MethodGenericDictionary(runtimeDeterminedResult), reason);
ILCompiler.RyuJit (81)
Compiler\RyuJitCompilation.cs (2)
117NodeFactory.SetMarkingComplete(); 129ObjectWriter.ObjectWriter.EmitObject(outputFile, nodes, NodeFactory, options, dumper, _logger);
JitInterface\CorInfoImpl.RyuJit.cs (65)
61entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.MethodEntrypoint(asyncResumptionStub)); 360pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(helperId, type)); 484pLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, delegateInfo)); 640return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFast); 642return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFinalizable); 644return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFastAlign8); 646return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFinalizableAlign8); 648return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewFastMisalign); 653return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewPtrArrayFast); 655return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewArrayFastAlign8); 657return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.NewArrayFast); 660return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.StackProbe); 663return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.GCPoll); 798return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)); 800return _compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)); 808&& _compilation.NodeFactory.TypeSystemContext.Target.Architecture != TargetArchitecture.X86) 809return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.InterfaceDispatchGuarded); 810return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.InterfaceDispatch); 812return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.ResolveInterfaceMethodFast); 823return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8)); 825return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8)); 834? _compilation.NodeFactory.ReadyToRunHelper(id) 835: _compilation.NodeFactory.MethodEntrypoint(methodDesc); 850pResult = CreateConstLookupToSymbol(_compilation.NodeFactory.MethodEntrypoint(method)); 860stringObject = _compilation.NodeFactory.SerializedStringObject(""); 865stringObject = _compilation.NodeFactory.SerializedStringObject((string)literal); 957RelocType rel = (_compilation.NodeFactory.Target.IsWindows) ? 1068return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType); 1072return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle); 1189return _compilation.NodeFactory.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk); 1276_compilation.NodeFactory.MetadataManager.NoteOverridingMethod(method, directMethod); 1473CreateConstLookupToSymbol(_compilation.NodeFactory.FatFunctionPointer(targetMethod)); 1501_compilation.NodeFactory.StringAllocator(targetMethod) 1537instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 1542instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1621_compilation.NodeFactory.DispatchCell(targetOfLookup 1654_compilation.NodeFactory.DispatchCell(targetMethod 1698_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod)); 1834DictionaryLayoutNode contextLayout = _compilation.NodeFactory.GenericDictionaryLayout( 1860RuntimeMethodHandleNode methodHandleSymbol = _compilation.NodeFactory.RuntimeMethodHandle(method); 1884Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(_compilation.NodeFactory)); 1891int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(_compilation.NodeFactory, methodDesc, owningType); 1898(_additionalDependencies ??= new ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<NodeFactory>.DependencyList()).Add(_compilation.NodeFactory.VirtualMethodUse(methodDesc), "Virtual method call"); 1950pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.DirectPInvokeTarget(md)); 1957*ppCookieVal = (IntPtr*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("__security_cookie"u8))); 2093return (int*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("RhpTrapThreads"u8))); 2117fieldOffset += _compilation.NodeFactory.ThreadStaticBaseOffset(mt); 2171helper = _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup( 2177helper = _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup( 2203ISortableSymbolNode index = _compilation.NodeFactory.TypeThreadStaticIndex(field.OwningType); 2227baseAddr = _compilation.NodeFactory.TypeGCStaticsSymbol(field.OwningType); 2232baseAddr = _compilation.NodeFactory.TypeNonGCStaticsSymbol(field.OwningType); 2245_compilation.NodeFactory.ReadyToRunHelper(helperId, field.OwningType)); 2349PreinitializationManager preinitManager = _compilation.NodeFactory.PreinitializationManager; 2371if (value.GetRawData(_compilation.NodeFactory, out object data)) 2473addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2475offset = -NonGCStaticsNode.GetClassConstructorContextSize(_compilation.NodeFactory.Target); 2485addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeGCStaticsSymbol(type)); 2490addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2498pInfo->tlsIndexObject = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternDataSymbol(new Utf8String("_tls_index"u8))); 2499pInfo->tlsRootObject = CreateConstLookupToSymbol(_compilation.NodeFactory.TlsRoot); 2500pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(_compilation.NodeFactory.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow)); 2501pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.TlsGetAddr));
parent\parent\Common\JitInterface\CorInfoImpl.cs (14)
479_compilation.NodeFactory.Target.MinimumFunctionAlignment : 480_compilation.NodeFactory.Target.OptimumFunctionAlignment; 580CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies, _compilation.NodeFactory, MethodBeingCompiled, methodIL); 1653info->instParamLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ConstructedTypeSymbol(originalImpl.OwningType)); 2044_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, method); 2085_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(ref _additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, field); 3641if (_compilation.NodeFactory.Target.IsWasm) 3646else if (_compilation.NodeFactory.Target.IsWindows) 3656pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3683NodeFactory factory = _compilation.NodeFactory; 3694WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 4771return (uint)node.GetAlignment(_compilation.NodeFactory);