97 references to NodeFactory
ILCompiler.ReadyToRun (97)
Compiler\ReadyToRunCodegenCompilation.cs (17)
41public CompilerTypeSystemContext TypeSystemContext => NodeFactory.TypeSystemContext; 64NodeFactory.AttachToDependencyGraph(_dependencyGraph, ilProvider); 71_methodILCache = new ILCache((ReadyToRunILProvider)ilProvider, NodeFactory.CompilationModuleGroup); 115return NodeFactory.CompilationModuleGroup.CanInline(caller, callee); 392_dependencyGraph.AddRoot(new Import(NodeFactory.EagerImports, instructionSetSupportSig), "Baseline instruction set support"); 415NodeFactory.SetMarkingComplete(); 421NodeFactory, 479EcmaModule inputModule = NodeFactory.TypeSystemContext.GetModuleFromPath(inputFile); 517if (NodeFactory.Target.IsWindows && NodeFactory.Format == ReadyToRunContainerFormat.PE) 521else if (NodeFactory.Target.IsApplePlatform && NodeFactory.Format == ReadyToRunContainerFormat.MachO) 620if (!NodeFactory.CompilationModuleGroup.VersionsWithModule(defType.Module)) 851_methodILCache = new ILCache(_methodILCache.ILProvider, NodeFactory.CompilationModuleGroup); 857NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 885NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1100return NodeFactory.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (64)
519AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 521entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 712if ((_ilBodiesNeeded == null) && _compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 737else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 780if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.NodeFactory.CompilationModuleGroup)) 821if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 833(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 834_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 841var resolver = _compilation.NodeFactory.Resolver; 852EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 855resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 867if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 871_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 897if (_compilation.NodeFactory.Target.IsWasm) 1345return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1352var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1355_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1388if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1457if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1459ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1474if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1476ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1508return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1510if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1512return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1518return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1535new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1650if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1795else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1858if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 1967if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && 1968!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 2023if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2035ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2166else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2168!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2342else if (targetMethod.HasInstantiation || _compilation.NodeFactory.Target.IsWasm) // WASM doesn't currently support the stub dispatch path 2504_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2529else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2598&& !_compilation.NodeFactory.Target.IsWasm) 2609MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2616_compilation.NodeFactory.MethodEntrypoint( 2640_compilation.NodeFactory.DynamicHelperCell( 2647Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2741return !_compilation.NodeFactory.Resolver.GetModuleTokenForType( 2815_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2841_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3117if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3238*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3243ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3276if (!_compilation.NodeFactory.Target.IsWasm) 3307_compilation.NodeFactory, 3378|| _compilation.NodeFactory.Target.IsWasm) 3417Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3475if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3636_compilation.NodeFactory.MethodEntrypoint( 3657if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 3734return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 3741WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3756if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3780AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 3787if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3823AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (16)
470_compilation.NodeFactory.Target.MinimumFunctionAlignment : 471_compilation.NodeFactory.Target.OptimumFunctionAlignment; 536_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 580_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 594Debug.Assert(_compilation.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed"); 595_compilation.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies); 1512var resolver = _compilation.NodeFactory.Resolver; 2031var resolver = _compilation.NodeFactory.Resolver; 2089_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 3633if (_compilation.NodeFactory.Target.IsWasm) 3638else if (_compilation.NodeFactory.Target.IsWindows) 3648pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3675NodeFactory factory = _compilation.NodeFactory; 3741_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true), 3817_compilation.NodeFactory.Resolver.GetModuleTokenForMethod( 4719return (uint)node.GetAlignment(_compilation.NodeFactory);