114 references to NodeFactory
ILCompiler.ReadyToRun (114)
Compiler\ReadyToRunCodegenCompilation.cs (20)
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);
328
if (
NodeFactory
.Target.Architecture is TargetArchitecture.ARM or TargetArchitecture.ARM64)
419
_dependencyGraph.AddRoot(new Import(
NodeFactory
.EagerImports, instructionSetSupportSig), "Baseline instruction set support");
441
NodeFactory
.SetMarkingComplete();
447
NodeFactory
,
506
EcmaModule inputModule =
NodeFactory
.TypeSystemContext.GetModuleFromPath(inputFile);
545
if (
NodeFactory
.Target.IsWindows &&
NodeFactory
.Format == ReadyToRunContainerFormat.PE)
549
else if (
NodeFactory
.Target.IsApplePlatform &&
NodeFactory
.Format == ReadyToRunContainerFormat.MachO)
649
if (!
NodeFactory
.CompilationModuleGroup.VersionsWithModule(defType.Module))
900
_methodILCache = new ILCache(_methodILCache.ILProvider,
NodeFactory
.CompilationModuleGroup);
928
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
982
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1090
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
1115
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1304
return
NodeFactory
.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (77)
530
AddResumptionStubFixup(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
532
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
725
_compilation.
NodeFactory
.OptimizationFlags.DeterminismStress > 0)
750
else if (data.Iterations <= _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress)
797
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.
NodeFactory
.CompilationModuleGroup))
855
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.
NodeFactory
.CompilationModuleGroup))
867
(!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
868
_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
875
var resolver = _compilation.
NodeFactory
.Resolver;
886
EntityHandle? handle = _compilation.
NodeFactory
.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
889
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, handle.Value));
901
if (_compilation.
NodeFactory
.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
905
_compilation.
NodeFactory
.WasmInterpreterToR2RThunk(wasmSig),
964
_compilation.
NodeFactory
.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
975
if (_compilation.
NodeFactory
.Target.IsWasm)
1088
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(helperMethod, true, true),
1108
return _compilation.
NodeFactory
.CompiledMethodNode(managedHelper);
1455
return _compilation.
NodeFactory
.GetReadyToRunHelperCell(id);
1462
var entrypoint = _compilation.
NodeFactory
.MethodEntrypoint(
1465
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(method, true, true),
1478
Debug.Assert(_compilation.
NodeFactory
.Target.IsWasm);
1518
if (methodDesc != null && (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1587
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1589
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1604
if (!(_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1606
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1638
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1640
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(ecmaType))
1642
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1648
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1665
new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, metaTok));
1780
if (!pHasSideEffects && !_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(type))
1936
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.
NodeFactory
.Target.IsWasm)
1992
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
2104
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) &&
2105
!_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod))
2160
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2172
ModuleToken moduleToken = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2310
else if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2312
!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2487
(_compilation.
NodeFactory
.Target.IsWasm &&
2648
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2673
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2687
if (_compilation.
NodeFactory
.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8)
2697
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target");
2755
&& !_compilation.
NodeFactory
.Target.IsWasm)
2766
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2773
_compilation.
NodeFactory
.MethodEntrypoint(
2797
_compilation.
NodeFactory
.DynamicHelperCell(
2804
Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.
NodeFactory
.Target.IsWasm);
2898
return !_compilation.
NodeFactory
.Resolver.GetModuleTokenForType(
2972
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2998
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3272
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3393
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3398
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3431
if (!_compilation.
NodeFactory
.Target.IsWasm)
3462
_compilation.
NodeFactory
,
3479
if (!_compilation.
NodeFactory
.Target.IsWasm)
3486
MethodWithGCInfo method = _compilation.
NodeFactory
.CompiledMethodNode(targetMethod);
3487
relocTarget = _compilation.
NodeFactory
.WasmMethodFrameIdentity(method);
3503
relocTarget = _compilation.
NodeFactory
.WasmMethodRelativeVirtualIP(_methodCodeNode);
3518
_compilation.
NodeFactory
.WasmAsyncResumeInfoFixups.AddFixup(location, offset);
3590
|| _compilation.
NodeFactory
.Target.IsWasm)
3615
if (_compilation.
NodeFactory
.Target.IsWasm
3635
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3693
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3868
_compilation.
NodeFactory
.MethodEntrypoint(
3889
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
4004
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
4018
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
4029
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4047
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
4070
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4091
_compilation.
NodeFactory
.WasmClosedStaticRetBufThunk(signature),
4101
_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (17)
508
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
509
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
559
if (_compilation.
NodeFactory
.Target.IsWasm && _ehClauses is not null)
578
_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.
NodeFactory
);
608
Debug.Assert(_compilation.
NodeFactory
.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
609
_compilation.
NodeFactory
.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(_additionalDependencies, _synthesizedPgoDependencies);
1561
var resolver = _compilation.
NodeFactory
.Resolver;
2074
var resolver = _compilation.
NodeFactory
.Resolver;
2132
_compilation.
NodeFactory
.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
3686
if (_compilation.
NodeFactory
.Target.IsWasm)
3691
else if (_compilation.
NodeFactory
.Target.IsWindows)
3701
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);
3728
NodeFactory factory = _compilation.
NodeFactory
;
3739
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3803
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3879
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(
4857
return (uint)node.GetAlignment(_compilation.
NodeFactory
);