91 references to NodeFactory
ILCompiler.ReadyToRun (91)
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
,
476
EcmaModule inputModule =
NodeFactory
.TypeSystemContext.GetModuleFromPath(inputFile);
514
if (
NodeFactory
.Target.IsWindows &&
NodeFactory
.Format == ReadyToRunContainerFormat.PE)
518
else if (
NodeFactory
.Target.IsApplePlatform &&
NodeFactory
.Format == ReadyToRunContainerFormat.MachO)
617
if (!
NodeFactory
.CompilationModuleGroup.VersionsWithModule(defType.Module))
848
_methodILCache = new ILCache(_methodILCache.ILProvider,
NodeFactory
.CompilationModuleGroup);
854
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
882
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1081
return
NodeFactory
.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (59)
519
AddResumptionStubFixup(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
521
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
712
if ((_ilBodiesNeeded == null) && _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress > 0)
737
else if (data.Iterations <= _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress)
780
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.
NodeFactory
.CompilationModuleGroup))
821
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.
NodeFactory
.CompilationModuleGroup))
833
(!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
834
_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
841
var resolver = _compilation.
NodeFactory
.Resolver;
852
EntityHandle? handle = _compilation.
NodeFactory
.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
855
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, handle.Value));
867
if (_compilation.
NodeFactory
.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
871
_compilation.
NodeFactory
.WasmInterpreterToR2RThunk(wasmSig),
897
if (_compilation.
NodeFactory
.Target.IsWasm)
1345
return _compilation.
NodeFactory
.GetReadyToRunHelperCell(id);
1352
var entrypoint = _compilation.
NodeFactory
.MethodEntrypoint(
1355
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(method, true, true),
1388
if (methodDesc != null && (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1457
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1459
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1474
if (!(_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1476
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1508
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1510
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(ecmaType))
1512
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1518
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1535
new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, metaTok));
1650
if (!pHasSideEffects && !_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(type))
1795
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.
NodeFactory
.Target.IsWasm)
1858
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
1967
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) &&
1968
!_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
2023
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2035
ModuleToken moduleToken = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2166
else if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2168
!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2343
else if (targetMethod.HasInstantiation || _compilation.
NodeFactory
.Target.IsWasm) // WASM doesn't currently support the stub dispatch path
2502
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2527
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2602
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2609
_compilation.
NodeFactory
.MethodEntrypoint(
2633
_compilation.
NodeFactory
.DynamicHelperCell(
2640
Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.
NodeFactory
.Target.IsWasm);
2746
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2772
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3007
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3128
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3133
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3259
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3291
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3452
_compilation.
NodeFactory
.MethodEntrypoint(
3473
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3550
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
3557
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3572
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3596
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
3603
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3639
AddAdditionalDependency(_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);
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);
1450
var resolver = _compilation.
NodeFactory
.Resolver;
1969
var resolver = _compilation.
NodeFactory
.Resolver;
2027
_compilation.
NodeFactory
.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
3561
if (_compilation.
NodeFactory
.Target.IsWasm)
3566
else if (_compilation.
NodeFactory
.Target.IsWindows)
3576
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);
3599
NodeFactory factory = _compilation.
NodeFactory
;
3664
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
4546
return (uint)node.GetAlignment(_compilation.
NodeFactory
);