91 references to NodeFactory
ILCompiler.ReadyToRun (91)
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, 476EcmaModule inputModule = NodeFactory.TypeSystemContext.GetModuleFromPath(inputFile); 514if (NodeFactory.Target.IsWindows && NodeFactory.Format == ReadyToRunContainerFormat.PE) 518else if (NodeFactory.Target.IsApplePlatform && NodeFactory.Format == ReadyToRunContainerFormat.MachO) 617if (!NodeFactory.CompilationModuleGroup.VersionsWithModule(defType.Module)) 848_methodILCache = new ILCache(_methodILCache.ILProvider, NodeFactory.CompilationModuleGroup); 854NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 882NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1081return NodeFactory.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (59)
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())) 2343else if (targetMethod.HasInstantiation || _compilation.NodeFactory.Target.IsWasm) // WASM doesn't currently support the stub dispatch path 2502_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2527else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2602MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2609_compilation.NodeFactory.MethodEntrypoint( 2633_compilation.NodeFactory.DynamicHelperCell( 2640Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2746_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2772_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3007if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3128*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3133ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3259Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3291if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3452_compilation.NodeFactory.MethodEntrypoint( 3473if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 3550return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 3557WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3572if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3596AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 3603if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3639AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (15)
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); 1450var resolver = _compilation.NodeFactory.Resolver; 1969var resolver = _compilation.NodeFactory.Resolver; 2027_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 3561if (_compilation.NodeFactory.Target.IsWasm) 3566else if (_compilation.NodeFactory.Target.IsWindows) 3576pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3599NodeFactory factory = _compilation.NodeFactory; 3664_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true), 4546return (uint)node.GetAlignment(_compilation.NodeFactory);