88 references to NodeFactory
ILCompiler.ReadyToRun (88)
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); 388_dependencyGraph.AddRoot(new Import(NodeFactory.EagerImports, instructionSetSupportSig), "Baseline instruction set support"); 412NodeFactory.SetMarkingComplete(); 418NodeFactory, 470EcmaModule inputModule = NodeFactory.TypeSystemContext.GetModuleFromPath(inputFile); 508if (NodeFactory.Target.IsWindows && NodeFactory.Format == ReadyToRunContainerFormat.PE) 512else if (NodeFactory.Target.IsApplePlatform && NodeFactory.Format == ReadyToRunContainerFormat.MachO) 606if (!NodeFactory.CompilationModuleGroup.VersionsWithModule(defType.Module)) 837_methodILCache = new ILCache(_methodILCache.ILProvider, NodeFactory.CompilationModuleGroup); 843NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 871NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1055return NodeFactory.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (59)
519AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 521entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 720if ((_ilBodiesNeeded == null) && _compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 745else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 788if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.NodeFactory.CompilationModuleGroup)) 829if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 841(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 842_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 849var resolver = _compilation.NodeFactory.Resolver; 860EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 863resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 875if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 879_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 905if (_compilation.NodeFactory.Target.IsWasm) 1353return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1360var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1363_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1432if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1501if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1503ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1518if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1520ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1552return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1554if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1556return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1562return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1579new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1694if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1839else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1902if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 2011if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && 2012!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 2067if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2079ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2210else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2212!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2387else if (targetMethod.HasInstantiation || _compilation.NodeFactory.Target.IsWasm) // WASM doesn't currently support the stub dispatch path 2546_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2571else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2646MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2653_compilation.NodeFactory.MethodEntrypoint( 2677_compilation.NodeFactory.DynamicHelperCell( 2684Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2790_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2816_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3051if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3172*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3177ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3303Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3335if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3496_compilation.NodeFactory.MethodEntrypoint( 3517if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 3594return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 3601WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3616if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3640AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 3647if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3671AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (12)
451_compilation.NodeFactory.Target.MinimumFunctionAlignment : 452_compilation.NodeFactory.Target.OptimumFunctionAlignment; 517_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 561_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 575Debug.Assert(_compilation.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed"); 576_compilation.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies); 1418var resolver = _compilation.NodeFactory.Resolver; 1867var resolver = _compilation.NodeFactory.Resolver; 1925_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 3459if (_compilation.NodeFactory.Target.IsWasm) 3464else if (_compilation.NodeFactory.Target.IsWindows) 3474pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target);