111 references to NodeFactory
ILCompiler.ReadyToRun (111)
Compiler\ReadyToRunCodegenCompilation.cs (20)
41public CompilerTypeSystemContext TypeSystemContext => NodeFactory.TypeSystemContext; 64NodeFactory.AttachToDependencyGraph(_dependencyGraph, ilProvider); 71_methodILCache = new ILCache((ReadyToRunILProvider)ilProvider, NodeFactory.CompilationModuleGroup); 115return NodeFactory.CompilationModuleGroup.CanInline(caller, callee); 328if (NodeFactory.Target.Architecture is TargetArchitecture.ARM or TargetArchitecture.ARM64) 419_dependencyGraph.AddRoot(new Import(NodeFactory.EagerImports, instructionSetSupportSig), "Baseline instruction set support"); 441NodeFactory.SetMarkingComplete(); 447NodeFactory, 506EcmaModule inputModule = NodeFactory.TypeSystemContext.GetModuleFromPath(inputFile); 545if (NodeFactory.Target.IsWindows && NodeFactory.Format == ReadyToRunContainerFormat.PE) 549else if (NodeFactory.Target.IsApplePlatform && NodeFactory.Format == ReadyToRunContainerFormat.MachO) 649if (!NodeFactory.CompilationModuleGroup.VersionsWithModule(defType.Module)) 900_methodILCache = new ILCache(_methodILCache.ILProvider, NodeFactory.CompilationModuleGroup); 928NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 982NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1090NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 1115NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1304return NodeFactory.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (75)
531AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 533entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 726_compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 751else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 798if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.NodeFactory.CompilationModuleGroup)) 856if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 868(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 869_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 876var resolver = _compilation.NodeFactory.Resolver; 887EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 890resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 902if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 906_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 965_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 976if (_compilation.NodeFactory.Target.IsWasm) 1089_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(helperMethod, true, true), 1109return _compilation.NodeFactory.CompiledMethodNode(managedHelper); 1456return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1463var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1466_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1479Debug.Assert(_compilation.NodeFactory.Target.IsWasm); 1519if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1588if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1590ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1605if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1607ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1639return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1641if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1643return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1649return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1666new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1781if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1926else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1989if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 2101if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) && 2102!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod)) 2157if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2169ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2307else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2309!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2484(_compilation.NodeFactory.Target.IsWasm && 2651_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2676else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2690if (_compilation.NodeFactory.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8) 2700AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target"); 2758&& !_compilation.NodeFactory.Target.IsWasm) 2769MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2776_compilation.NodeFactory.MethodEntrypoint( 2800_compilation.NodeFactory.DynamicHelperCell( 2807Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2901return !_compilation.NodeFactory.Resolver.GetModuleTokenForType( 2975_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 3001_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3275if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3396*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3401ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3434if (!_compilation.NodeFactory.Target.IsWasm) 3465_compilation.NodeFactory, 3482if (!_compilation.NodeFactory.Target.IsWasm) 3495relocTarget = _compilation.NodeFactory.WasmMethodRelativeVirtualIP(_methodCodeNode); 3510_compilation.NodeFactory.WasmAsyncResumeInfoFixups.AddFixup(location, offset); 3582|| _compilation.NodeFactory.Target.IsWasm) 3607if (_compilation.NodeFactory.Target.IsWasm 3627Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3685if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3860_compilation.NodeFactory.MethodEntrypoint( 3881if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 3958return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 3972if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 3983AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4001if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 4024AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4045_compilation.NodeFactory.WasmClosedStaticRetBufThunk(signature), 4055_compilation.NodeFactory.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (16)
479_compilation.NodeFactory.Target.MinimumFunctionAlignment : 480_compilation.NodeFactory.Target.OptimumFunctionAlignment; 545_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 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); 1520var resolver = _compilation.NodeFactory.Resolver; 2039var resolver = _compilation.NodeFactory.Resolver; 2097_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 3641if (_compilation.NodeFactory.Target.IsWasm) 3646else if (_compilation.NodeFactory.Target.IsWindows) 3656pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3683NodeFactory factory = _compilation.NodeFactory; 3694WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3758_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true), 3834_compilation.NodeFactory.Resolver.GetModuleTokenForMethod( 4771return (uint)node.GetAlignment(_compilation.NodeFactory);