87 references to NodeFactory
ILCompiler.ReadyToRun (87)
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))
836
_methodILCache = new ILCache(_methodILCache.ILProvider,
NodeFactory
.CompilationModuleGroup);
842
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
870
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1054
return
NodeFactory
.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (58)
521
AddResumptionStubFixup(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
523
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
714
if ((_ilBodiesNeeded == null) && _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress > 0)
739
else if (data.Iterations <= _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress)
782
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.
NodeFactory
.CompilationModuleGroup))
823
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.
NodeFactory
.CompilationModuleGroup))
835
(!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
836
_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
843
var resolver = _compilation.
NodeFactory
.Resolver;
854
EntityHandle? handle = _compilation.
NodeFactory
.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
857
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, handle.Value));
869
if (_compilation.
NodeFactory
.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
873
_compilation.
NodeFactory
.WasmInterpreterToR2RThunk(wasmSig),
899
if (_compilation.
NodeFactory
.Target.IsWasm)
1347
return _compilation.
NodeFactory
.GetReadyToRunHelperCell(id);
1354
var entrypoint = _compilation.
NodeFactory
.MethodEntrypoint(
1357
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(method, true, true),
1426
if (methodDesc != null && (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1491
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1493
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1508
if (!(_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1510
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1542
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1544
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(ecmaType))
1546
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1552
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1569
new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, metaTok));
1684
if (!pHasSideEffects && !_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(type))
1829
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.
NodeFactory
.Target.IsWasm)
1892
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
2001
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) &&
2002
!_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
2057
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2069
ModuleToken moduleToken = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2200
else if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2202
!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2377
else if (targetMethod.HasInstantiation || _compilation.
NodeFactory
.Target.IsWasm) // WASM doesn't currently support the stub dispatch path
2538
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2563
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2638
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2645
_compilation.
NodeFactory
.MethodEntrypoint(
2669
_compilation.
NodeFactory
.DynamicHelperCell(
2779
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2805
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3040
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3142
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3147
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3273
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3305
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3466
_compilation.
NodeFactory
.MethodEntrypoint(
3487
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3564
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
3571
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3586
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3610
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
3617
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3641
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (12)
449
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
450
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
515
_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.
NodeFactory
);
559
_compilation.
NodeFactory
.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
573
Debug.Assert(_compilation.
NodeFactory
.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
574
_compilation.
NodeFactory
.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies);
1417
var resolver = _compilation.
NodeFactory
.Resolver;
1888
var resolver = _compilation.
NodeFactory
.Resolver;
1954
_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);