88 references to NodeFactory
ILCompiler.ReadyToRun (88)
Compiler\ReadyToRunCodegenCompilation.cs (17)
41
public CompilerTypeSystemContext TypeSystemContext =>
NodeFactory
.TypeSystemContext;
64
NodeFactory
.AttachToDependencyGraph(_dependencyGraph, ilProvider);
71
_methodILCache = new ILCache((ReadyToRunILProvider)ilProvider,
NodeFactory
.CompilationModuleGroup);
115
return
NodeFactory
.CompilationModuleGroup.CanInline(caller, callee);
388
_dependencyGraph.AddRoot(new Import(
NodeFactory
.EagerImports, instructionSetSupportSig), "Baseline instruction set support");
412
NodeFactory
.SetMarkingComplete();
418
NodeFactory
,
470
EcmaModule inputModule =
NodeFactory
.TypeSystemContext.GetModuleFromPath(inputFile);
508
if (
NodeFactory
.Target.IsWindows &&
NodeFactory
.Format == ReadyToRunContainerFormat.PE)
512
else if (
NodeFactory
.Target.IsApplePlatform &&
NodeFactory
.Format == ReadyToRunContainerFormat.MachO)
606
if (!
NodeFactory
.CompilationModuleGroup.VersionsWithModule(defType.Module))
837
_methodILCache = new ILCache(_methodILCache.ILProvider,
NodeFactory
.CompilationModuleGroup);
843
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
871
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1055
return
NodeFactory
.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (59)
519
AddResumptionStubFixup(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
521
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
720
if ((_ilBodiesNeeded == null) && _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress > 0)
745
else if (data.Iterations <= _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress)
788
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.
NodeFactory
.CompilationModuleGroup))
829
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.
NodeFactory
.CompilationModuleGroup))
841
(!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
842
_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
849
var resolver = _compilation.
NodeFactory
.Resolver;
860
EntityHandle? handle = _compilation.
NodeFactory
.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
863
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, handle.Value));
875
if (_compilation.
NodeFactory
.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
879
_compilation.
NodeFactory
.WasmInterpreterToR2RThunk(wasmSig),
905
if (_compilation.
NodeFactory
.Target.IsWasm)
1353
return _compilation.
NodeFactory
.GetReadyToRunHelperCell(id);
1360
var entrypoint = _compilation.
NodeFactory
.MethodEntrypoint(
1363
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(method, true, true),
1432
if (methodDesc != null && (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1501
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1503
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1518
if (!(_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1520
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1552
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1554
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(ecmaType))
1556
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1562
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1579
new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, metaTok));
1694
if (!pHasSideEffects && !_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(type))
1839
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.
NodeFactory
.Target.IsWasm)
1902
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
2011
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) &&
2012
!_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
2067
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2079
ModuleToken moduleToken = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2210
else if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2212
!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2387
else if (targetMethod.HasInstantiation || _compilation.
NodeFactory
.Target.IsWasm) // WASM doesn't currently support the stub dispatch path
2546
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2571
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2646
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2653
_compilation.
NodeFactory
.MethodEntrypoint(
2677
_compilation.
NodeFactory
.DynamicHelperCell(
2684
Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.
NodeFactory
.Target.IsWasm);
2790
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2816
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3051
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3172
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3177
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3303
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3335
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3496
_compilation.
NodeFactory
.MethodEntrypoint(
3517
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3594
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
3601
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3616
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3640
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
3647
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3671
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (12)
451
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
452
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
517
_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.
NodeFactory
);
561
_compilation.
NodeFactory
.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
575
Debug.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);
1418
var resolver = _compilation.
NodeFactory
.Resolver;
1867
var resolver = _compilation.
NodeFactory
.Resolver;
1925
_compilation.
NodeFactory
.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
3459
if (_compilation.
NodeFactory
.Target.IsWasm)
3464
else if (_compilation.
NodeFactory
.Target.IsWindows)
3474
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);