114 references to NodeFactory
ILCompiler.ReadyToRun (114)
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 (77)
530AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 532entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 725_compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 750else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 797if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.NodeFactory.CompilationModuleGroup)) 855if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 867(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 868_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 875var resolver = _compilation.NodeFactory.Resolver; 886EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 889resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 901if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 905_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 964_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 975if (_compilation.NodeFactory.Target.IsWasm) 1088_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(helperMethod, true, true), 1108return _compilation.NodeFactory.CompiledMethodNode(managedHelper); 1455return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1462var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1465_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1478Debug.Assert(_compilation.NodeFactory.Target.IsWasm); 1518if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1587if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1589ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1604if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1606ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1638return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1640if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1642return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1648return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1665new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1780if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1936else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 1992if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 2104if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) && 2105!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod)) 2160if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2172ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2310else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2312!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2487(_compilation.NodeFactory.Target.IsWasm && 2648_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2673else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2687if (_compilation.NodeFactory.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8) 2697AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target"); 2755&& !_compilation.NodeFactory.Target.IsWasm) 2766MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2773_compilation.NodeFactory.MethodEntrypoint( 2797_compilation.NodeFactory.DynamicHelperCell( 2804Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2898return !_compilation.NodeFactory.Resolver.GetModuleTokenForType( 2972_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2998_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3272if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3393*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3398ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3431if (!_compilation.NodeFactory.Target.IsWasm) 3462_compilation.NodeFactory, 3479if (!_compilation.NodeFactory.Target.IsWasm) 3486MethodWithGCInfo method = _compilation.NodeFactory.CompiledMethodNode(targetMethod); 3487relocTarget = _compilation.NodeFactory.WasmMethodFrameIdentity(method); 3503relocTarget = _compilation.NodeFactory.WasmMethodRelativeVirtualIP(_methodCodeNode); 3518_compilation.NodeFactory.WasmAsyncResumeInfoFixups.AddFixup(location, offset); 3590|| _compilation.NodeFactory.Target.IsWasm) 3615if (_compilation.NodeFactory.Target.IsWasm 3635Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3693if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3868_compilation.NodeFactory.MethodEntrypoint( 3889if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 4004return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 4018if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 4029AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4047if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 4070AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4091_compilation.NodeFactory.WasmClosedStaticRetBufThunk(signature), 4101_compilation.NodeFactory.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (17)
508_compilation.NodeFactory.Target.MinimumFunctionAlignment : 509_compilation.NodeFactory.Target.OptimumFunctionAlignment; 559if (_compilation.NodeFactory.Target.IsWasm && _ehClauses is not null) 578_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 608Debug.Assert(_compilation.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed"); 609_compilation.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(_additionalDependencies, _synthesizedPgoDependencies); 1561var resolver = _compilation.NodeFactory.Resolver; 2074var resolver = _compilation.NodeFactory.Resolver; 2132_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 3686if (_compilation.NodeFactory.Target.IsWasm) 3691else if (_compilation.NodeFactory.Target.IsWindows) 3701pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3728NodeFactory factory = _compilation.NodeFactory; 3739WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3803_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true), 3879_compilation.NodeFactory.Resolver.GetModuleTokenForMethod( 4857return (uint)node.GetAlignment(_compilation.NodeFactory);