87 references to NodeFactory
ILCompiler.ReadyToRun (87)
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)) 836_methodILCache = new ILCache(_methodILCache.ILProvider, NodeFactory.CompilationModuleGroup); 842NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 870NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1054return NodeFactory.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (58)
521AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 523entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 714if ((_ilBodiesNeeded == null) && _compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 739else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 782if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.NodeFactory.CompilationModuleGroup)) 823if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 835(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 836_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 843var resolver = _compilation.NodeFactory.Resolver; 854EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 857resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 869if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 873_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 899if (_compilation.NodeFactory.Target.IsWasm) 1350return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1357var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1360_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1429if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1494if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1496ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1511if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1513ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1545return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1547if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1549return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1555return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1572new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1687if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1832else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1895if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 2004if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && 2005!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 2060if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2072ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2203else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2205!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2380else if (targetMethod.HasInstantiation || _compilation.NodeFactory.Target.IsWasm) // WASM doesn't currently support the stub dispatch path 2541_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2566else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2641MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2648_compilation.NodeFactory.MethodEntrypoint( 2672_compilation.NodeFactory.DynamicHelperCell( 2782_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2808_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3043if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3145*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3150ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3276Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3308if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3469_compilation.NodeFactory.MethodEntrypoint( 3490if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 3567return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 3574WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3589if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3613AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 3620if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3644AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (12)
449_compilation.NodeFactory.Target.MinimumFunctionAlignment : 450_compilation.NodeFactory.Target.OptimumFunctionAlignment; 515_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 559_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 573Debug.Assert(_compilation.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed"); 574_compilation.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies); 1418var resolver = _compilation.NodeFactory.Resolver; 1890var resolver = _compilation.NodeFactory.Resolver; 1956_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 3461if (_compilation.NodeFactory.Target.IsWasm) 3466else if (_compilation.NodeFactory.Target.IsWindows) 3476pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target);