129 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); 234return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(lookup.HelperId, lookup.HelperObject, _canonMethod); 239return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(lookup.HelperId, lookup.HelperObject, _canonMethod.OwningType); 553_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(_dependencies, _compilation.NodeFactory, _canonMethodIL, method); 967instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 972instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1081_dependencies.Add(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason); 1438_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(_dependencies, _compilation.NodeFactory, _canonMethodIL, canonField); 2089_dependencies.Add(_compilation.NodeFactory.MethodGenericDictionary(runtimeDeterminedResult), reason);
ILCompiler.RyuJit (83)
Compiler\RyuJitCompilation.cs (2)
117NodeFactory.SetMarkingComplete(); 129ObjectWriter.ObjectWriter.EmitObject(outputFile, nodes, NodeFactory, options, dumper, _logger);
JitInterface\CorInfoImpl.RyuJit.cs (66)
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); 813return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.ResolveInterfaceMethod); 814return _compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.ResolveInterfaceMethodFast); 825return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_check_icall_fptr"u8)); 827return _compilation.NodeFactory.ExternIndirectFunctionSymbol(new Utf8String("__guard_dispatch_icall_fptr"u8)); 836? _compilation.NodeFactory.ReadyToRunHelper(id) 837: _compilation.NodeFactory.MethodEntrypoint(methodDesc); 852pResult = CreateConstLookupToSymbol(_compilation.NodeFactory.MethodEntrypoint(method)); 862stringObject = _compilation.NodeFactory.SerializedStringObject(""); 867stringObject = _compilation.NodeFactory.SerializedStringObject((string)literal); 959RelocType rel = (_compilation.NodeFactory.Target.IsWindows) ? 1070return _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup(helperId, helperArgument, callerHandle.OwningType); 1074return _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup(helperId, helperArgument, callerHandle); 1191return _compilation.NodeFactory.MethodEntrypointOrTentativeMethod(method, isUnboxingThunk); 1278_compilation.NodeFactory.MetadataManager.NoteOverridingMethod(method, directMethod); 1475CreateConstLookupToSymbol(_compilation.NodeFactory.FatFunctionPointer(targetMethod)); 1503_compilation.NodeFactory.StringAllocator(targetMethod) 1539instParam = _compilation.NodeFactory.MethodGenericDictionary(concreteMethod); 1544instParam = _compilation.NodeFactory.ConstructedTypeSymbol(concreteMethod.OwningType); 1623_compilation.NodeFactory.DispatchCell(targetOfLookup 1661_compilation.NodeFactory.DispatchCell(targetMethod 1705_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelperId.ResolveVirtualFunction, slotDefiningMethod)); 1841DictionaryLayoutNode contextLayout = _compilation.NodeFactory.GenericDictionaryLayout( 1867RuntimeMethodHandleNode methodHandleSymbol = _compilation.NodeFactory.RuntimeMethodHandle(method); 1891Debug.Assert(!methodDesc.CanMethodBeInSealedVTable(_compilation.NodeFactory)); 1898int slot = VirtualMethodSlotHelper.GetVirtualMethodSlot(_compilation.NodeFactory, methodDesc, owningType); 1905_additionalDependencies.Add(_compilation.NodeFactory.VirtualMethodUse(methodDesc), "Virtual method call"); 1957pLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.DirectPInvokeTarget(md)); 1964*ppCookieVal = (IntPtr*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("__security_cookie"u8))); 2094return (int*)ObjectToHandle(_compilation.NodeFactory.ExternVariable(new Utf8String("RhpTrapThreads"u8))); 2118fieldOffset += _compilation.NodeFactory.ThreadStaticBaseOffset(mt); 2172helper = _compilation.NodeFactory.ReadyToRunHelperFromTypeLookup( 2178helper = _compilation.NodeFactory.ReadyToRunHelperFromDictionaryLookup( 2204ISortableSymbolNode index = _compilation.NodeFactory.TypeThreadStaticIndex(field.OwningType); 2228baseAddr = _compilation.NodeFactory.TypeGCStaticsSymbol(field.OwningType); 2233baseAddr = _compilation.NodeFactory.TypeNonGCStaticsSymbol(field.OwningType); 2246_compilation.NodeFactory.ReadyToRunHelper(helperId, field.OwningType)); 2350PreinitializationManager preinitManager = _compilation.NodeFactory.PreinitializationManager; 2372if (value.GetRawData(_compilation.NodeFactory, out object data)) 2474addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2476offset = -NonGCStaticsNode.GetClassConstructorContextSize(_compilation.NodeFactory.Target); 2486addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeGCStaticsSymbol(type)); 2491addr.addr = (void*)ObjectToHandle(_compilation.NodeFactory.TypeNonGCStaticsSymbol(type)); 2499pInfo->tlsIndexObject = CreateConstLookupToSymbol(_compilation.NodeFactory.ExternDataSymbol(new Utf8String("_tls_index"u8))); 2500pInfo->tlsRootObject = CreateConstLookupToSymbol(_compilation.NodeFactory.TlsRoot); 2501pInfo->threadStaticBaseSlow = CreateConstLookupToSymbol(_compilation.NodeFactory.HelperEntrypoint(HelperEntrypoint.GetInlinedThreadStaticBaseSlow)); 2502pInfo->tlsGetAddrFtnPtr = CreateConstLookupToSymbol(_compilation.NodeFactory.ReadyToRunHelper(ReadyToRunHelper.TlsGetAddr));
parent\parent\Common\JitInterface\CorInfoImpl.cs (15)
508_compilation.NodeFactory.Target.MinimumFunctionAlignment : 509_compilation.NodeFactory.Target.OptimumFunctionAlignment; 559if (_compilation.NodeFactory.Target.IsWasm && _ehClauses is not null) 613CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(_additionalDependencies, _compilation.NodeFactory, MethodBeingCompiled, methodIL); 1694info->instParamLookup.constLookup = CreateConstLookupToSymbol(_compilation.NodeFactory.ConstructedTypeSymbol(originalImpl.OwningType)); 2079_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(_additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, method); 2120_compilation.NodeFactory.MetadataManager.GetDependenciesDueToAccess(_additionalDependencies, _compilation.NodeFactory, (MethodIL)methodIL, field); 3686if (_compilation.NodeFactory.Target.IsWasm) 3691else if (_compilation.NodeFactory.Target.IsWindows) 3701pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3728NodeFactory factory = _compilation.NodeFactory; 3739WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 4857return (uint)node.GetAlignment(_compilation.NodeFactory);