126 references to NodeFactory
ILCompiler.ReadyToRun (126)
Compiler\DeferredWasmCallProcessor.cs (1)
74private NodeFactory NodeFactory => _compilation.NodeFactory;
Compiler\DeferredWasmCallRewriter.cs (2)
124ObjectNode.ObjectData original = method.GetData(compilation.NodeFactory, relocsOnly: false); 157NodeFactory factory = compilation.NodeFactory;
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); 330if (NodeFactory.Target.Architecture is TargetArchitecture.ARM or TargetArchitecture.ARM64) 426_dependencyGraph.AddRoot(new Import(NodeFactory.EagerImports, instructionSetSupportSig), "Baseline instruction set support"); 448NodeFactory.SetMarkingComplete(); 454NodeFactory, 514EcmaModule inputModule = NodeFactory.TypeSystemContext.GetModuleFromPath(inputFile); 553if (NodeFactory.Target.IsWindows && NodeFactory.Format == ReadyToRunContainerFormat.PE) 557else if (NodeFactory.Target.IsApplePlatform && NodeFactory.Format == ReadyToRunContainerFormat.MachO) 657if (!NodeFactory.CompilationModuleGroup.VersionsWithModule(defType.Module)) 935_methodILCache = new ILCache(_methodILCache.ILProvider, NodeFactory.CompilationModuleGroup); 972NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 1026NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1106NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = true; 1131NodeFactory.ManifestMetadataTable._mutableModule.DisableNewTokens = false; 1320return NodeFactory.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (85)
539AddResumptionStubFixup(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 541entryPoint = (void*)ObjectToHandle(_compilation.NodeFactory.CompiledMethodNode(asyncResumptionStub)); 734_compilation.NodeFactory.OptimizationFlags.DeterminismStress > 0) 759else if (data.Iterations <= _compilation.NodeFactory.OptimizationFlags.DeterminismStress) 806if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.NodeFactory.CompilationModuleGroup)) 864if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.NodeFactory.CompilationModuleGroup)) 876(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 877_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 884var resolver = _compilation.NodeFactory.Resolver; 895EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod); 898resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 910if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 914_compilation.NodeFactory.WasmInterpreterToR2RThunk(wasmSig), 973_compilation.NodeFactory.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method); 984if (_compilation.NodeFactory.Target.IsWasm) 1118_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(helperMethod, true, true), 1138return _compilation.NodeFactory.CompiledMethodNode(managedHelper); 1489return _compilation.NodeFactory.GetReadyToRunHelperCell(id); 1496var entrypoint = _compilation.NodeFactory.MethodEntrypoint( 1499_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(method, true, true), 1512Debug.Assert(_compilation.NodeFactory.Target.IsWasm); 1552if (methodDesc != null && (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(methodDesc) 1621if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType)) 1623ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1638if (!(_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable())) 1640ModuleToken result = _compilation.NodeFactory.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1672return _compilation.NodeFactory.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1674if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(ecmaType)) 1676return _compilation.NodeFactory.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1682return _compilation.NodeFactory.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true); 1699new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, metaTok)); 1759Debug.Assert(!_compilation.NodeFactory.OptimizationFlags.StripDebugInfo); 1780Debug.Assert(!_compilation.NodeFactory.OptimizationFlags.StripDebugInfo); 1816if (!pHasSideEffects && !_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(type)) 1972else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.NodeFactory.Target.IsWasm) 2028if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && 2140if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) && 2141!_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod)) 2196if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(directMethod)) 2208ModuleToken moduleToken = _compilation.NodeFactory.Resolver.GetModuleTokenForMethod(directMethod, false, false); 2346else if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) || 2348!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2523(_compilation.NodeFactory.Target.IsWasm && 2684_compilation.NodeFactory.DetectGenericCycles(callerMethod, methodToCall); 2709else if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(constrainedType)) 2723if (_compilation.NodeFactory.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8) 2733AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target"); 2792&& !_compilation.NodeFactory.Target.IsWasm) 2803MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2822ISymbolNode fallback = _compilation.NodeFactory.MethodEntrypoint( 2837_compilation.NodeFactory.MethodEntrypoint( 2861_compilation.NodeFactory.DynamicHelperCell( 2868Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.NodeFactory.Target.IsWasm); 2962return !_compilation.NodeFactory.Resolver.GetModuleTokenForType( 3036_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 3062_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3338if (!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(callerMethod)) 3459*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie)); 3464ppIndirection = (void*)ObjectToHandle(_compilation.NodeFactory.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads)); 3497if (!_compilation.NodeFactory.Target.IsWasm) 3528_compilation.NodeFactory, 3545if (!_compilation.NodeFactory.Target.IsWasm) 3554: _compilation.NodeFactory.CompiledMethodNode((MethodDesc)targetObject); 3555relocTarget = _compilation.NodeFactory.WasmMethodFrameIdentity(method); 3571relocTarget = _compilation.NodeFactory.WasmMethodRelativeVirtualIP(_methodCodeNode); 3586_compilation.NodeFactory.WasmAsyncResumeInfoFixups.AddFixup(location, offset); 3660|| _compilation.NodeFactory.Target.IsWasm) 3685if (_compilation.NodeFactory.Target.IsWasm 3705Debug.Assert(!_compilation.NodeFactory.CompilationModuleGroup.GeneratesPInvoke(method)); 3763if (_compilation.NodeFactory.Target.Architecture == TargetArchitecture.X86) 3820if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 3859if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 3925if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 3945_compilation.NodeFactory.MethodEntrypoint( 3966if (_compilation.NodeFactory.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva) 4081return _compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(method); 4095if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 4106AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4124if ((callSig != null) && _compilation.NodeFactory.Target.IsWasm) 4147AddAdditionalDependency(_compilation.NodeFactory.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site"); 4169if (_compilation.NodeFactory.Target.IsWasm) 4171MethodFixupSignature.AddVirtualEntryDependencies(_additionalDependencies, _compilation.NodeFactory, HandleToObject(method)); 4178_compilation.NodeFactory.WasmClosedStaticRetBufThunk(signature), 4188_compilation.NodeFactory.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (18)
515_compilation.NodeFactory.Target.MinimumFunctionAlignment : 516_compilation.NodeFactory.Target.OptimumFunctionAlignment; 566if (_compilation.NodeFactory.Target.IsWasm && _ehClauses is not null) 584if (!_compilation.NodeFactory.OptimizationFlags.StripInliningInfo) 597_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.NodeFactory); 627Debug.Assert(_compilation.NodeFactory.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed"); 628_compilation.NodeFactory.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(_additionalDependencies, _synthesizedPgoDependencies); 1591var resolver = _compilation.NodeFactory.Resolver; 2141var resolver = _compilation.NodeFactory.Resolver; 2199_compilation.NodeFactory.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation)); 3753if (_compilation.NodeFactory.Target.IsWasm) 3758else if (_compilation.NodeFactory.Target.IsWindows) 3768pEEInfoOut.osType = TargetToOs(_compilation.NodeFactory.Target); 3795NodeFactory factory = _compilation.NodeFactory; 3806WasmTypeNode typeNode = _compilation.NodeFactory.WasmTypeNode(typeArray); 3870_compilation.NodeFactory.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true), 3946_compilation.NodeFactory.Resolver.GetModuleTokenForMethod( 4951return (uint)node.GetAlignment(_compilation.NodeFactory);