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) 1347return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1354var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1357_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1426if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1491if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1493ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1508if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1510ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1542return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1544if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1546return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1552return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1569new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1684if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1829else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1892if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 2001if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && 2002!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 2057if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2069ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2200else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2202!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2377else if (targetMethod.HasInstantiation || _compilation.NodeFactory.Target.IsWasm) // WASM doesn't currently support the stub dispatch path 2538_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2563else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2638MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2645_compilation.NodeFactory.MethodEntrypoint( 2669_compilation.NodeFactory.DynamicHelperCell( 2779_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2805_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3040if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3142*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3147ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3273Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3305if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3466_compilation.NodeFactory.MethodEntrypoint( 3487if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 3564return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 3571WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3586if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3610AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 3617if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3641AddAdditionalDependency(_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); 1417var resolver = _compilation.NodeFactory.Resolver; 1888var resolver = _compilation.NodeFactory.Resolver; 1954_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);