96 references to NodeFactory
ILCompiler.ReadyToRun (96)
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);
391
_dependencyGraph.AddRoot(new Import(
NodeFactory
.EagerImports, instructionSetSupportSig), "Baseline instruction set support");
415
NodeFactory
.SetMarkingComplete();
421
NodeFactory
,
479
EcmaModule inputModule =
NodeFactory
.TypeSystemContext.GetModuleFromPath(inputFile);
517
if (
NodeFactory
.Target.IsWindows &&
NodeFactory
.Format == ReadyToRunContainerFormat.PE)
521
else if (
NodeFactory
.Target.IsApplePlatform &&
NodeFactory
.Format == ReadyToRunContainerFormat.MachO)
620
if (!
NodeFactory
.CompilationModuleGroup.VersionsWithModule(defType.Module))
851
_methodILCache = new ILCache(_methodILCache.ILProvider,
NodeFactory
.CompilationModuleGroup);
857
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
885
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1096
return
NodeFactory
.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (63)
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()))
2342
else if (targetMethod.HasInstantiation || _compilation.
NodeFactory
.Target.IsWasm) // WASM doesn't currently support the stub dispatch path
2501
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2526
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2595
&& !_compilation.
NodeFactory
.Target.IsWasm)
2606
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2613
_compilation.
NodeFactory
.MethodEntrypoint(
2637
_compilation.
NodeFactory
.DynamicHelperCell(
2644
Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.
NodeFactory
.Target.IsWasm);
2750
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2776
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3011
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3132
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3137
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3170
if (!_compilation.
NodeFactory
.Target.IsWasm)
3201
_compilation.
NodeFactory
,
3272
|| _compilation.
NodeFactory
.Target.IsWasm)
3311
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3343
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3504
_compilation.
NodeFactory
.MethodEntrypoint(
3525
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3602
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
3609
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3624
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3648
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
3655
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3691
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (16)
452
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
453
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
518
_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.
NodeFactory
);
562
_compilation.
NodeFactory
.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
576
Debug.Assert(_compilation.
NodeFactory
.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
577
_compilation.
NodeFactory
.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies);
1481
var resolver = _compilation.
NodeFactory
.Resolver;
2000
var resolver = _compilation.
NodeFactory
.Resolver;
2058
_compilation.
NodeFactory
.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
3621
if (_compilation.
NodeFactory
.Target.IsWasm)
3626
else if (_compilation.
NodeFactory
.Target.IsWindows)
3636
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);
3659
NodeFactory factory = _compilation.
NodeFactory
;
3725
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3801
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(
4702
return (uint)node.GetAlignment(_compilation.
NodeFactory
);