126 references to NodeFactory
ILCompiler.ReadyToRun (126)
Compiler\DeferredWasmCallProcessor.cs (1)
74
private NodeFactory NodeFactory => _compilation.
NodeFactory
;
Compiler\DeferredWasmCallRewriter.cs (2)
124
ObjectNode.ObjectData original = method.GetData(compilation.
NodeFactory
, relocsOnly: false);
157
NodeFactory factory = compilation.
NodeFactory
;
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);
330
if (
NodeFactory
.Target.Architecture is TargetArchitecture.ARM or TargetArchitecture.ARM64)
426
_dependencyGraph.AddRoot(new Import(
NodeFactory
.EagerImports, instructionSetSupportSig), "Baseline instruction set support");
448
NodeFactory
.SetMarkingComplete();
454
NodeFactory
,
514
EcmaModule inputModule =
NodeFactory
.TypeSystemContext.GetModuleFromPath(inputFile);
553
if (
NodeFactory
.Target.IsWindows &&
NodeFactory
.Format == ReadyToRunContainerFormat.PE)
557
else if (
NodeFactory
.Target.IsApplePlatform &&
NodeFactory
.Format == ReadyToRunContainerFormat.MachO)
657
if (!
NodeFactory
.CompilationModuleGroup.VersionsWithModule(defType.Module))
935
_methodILCache = new ILCache(_methodILCache.ILProvider,
NodeFactory
.CompilationModuleGroup);
972
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
1026
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1106
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
1131
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1320
return
NodeFactory
.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (85)
539
AddResumptionStubFixup(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
541
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
734
_compilation.
NodeFactory
.OptimizationFlags.DeterminismStress > 0)
759
else if (data.Iterations <= _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress)
806
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.
NodeFactory
.CompilationModuleGroup))
864
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.
NodeFactory
.CompilationModuleGroup))
876
(!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
877
_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
884
var resolver = _compilation.
NodeFactory
.Resolver;
895
EntityHandle? handle = _compilation.
NodeFactory
.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
898
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, handle.Value));
910
if (_compilation.
NodeFactory
.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
914
_compilation.
NodeFactory
.WasmInterpreterToR2RThunk(wasmSig),
973
_compilation.
NodeFactory
.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
984
if (_compilation.
NodeFactory
.Target.IsWasm)
1118
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(helperMethod, true, true),
1138
return _compilation.
NodeFactory
.CompiledMethodNode(managedHelper);
1489
return _compilation.
NodeFactory
.GetReadyToRunHelperCell(id);
1496
var entrypoint = _compilation.
NodeFactory
.MethodEntrypoint(
1499
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(method, true, true),
1512
Debug.Assert(_compilation.
NodeFactory
.Target.IsWasm);
1552
if (methodDesc != null && (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1621
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1623
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1638
if (!(_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1640
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1672
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1674
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(ecmaType))
1676
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1682
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1699
new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, metaTok));
1759
Debug.Assert(!_compilation.
NodeFactory
.OptimizationFlags.StripDebugInfo);
1780
Debug.Assert(!_compilation.
NodeFactory
.OptimizationFlags.StripDebugInfo);
1816
if (!pHasSideEffects && !_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(type))
1972
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.
NodeFactory
.Target.IsWasm)
2028
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
2140
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) &&
2141
!_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod))
2196
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2208
ModuleToken moduleToken = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2346
else if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2348
!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2523
(_compilation.
NodeFactory
.Target.IsWasm &&
2684
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2709
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2723
if (_compilation.
NodeFactory
.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8)
2733
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target");
2792
&& !_compilation.
NodeFactory
.Target.IsWasm)
2803
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2822
ISymbolNode fallback = _compilation.
NodeFactory
.MethodEntrypoint(
2837
_compilation.
NodeFactory
.MethodEntrypoint(
2861
_compilation.
NodeFactory
.DynamicHelperCell(
2868
Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.
NodeFactory
.Target.IsWasm);
2962
return !_compilation.
NodeFactory
.Resolver.GetModuleTokenForType(
3036
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
3062
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3338
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3459
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3464
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3497
if (!_compilation.
NodeFactory
.Target.IsWasm)
3528
_compilation.
NodeFactory
,
3545
if (!_compilation.
NodeFactory
.Target.IsWasm)
3554
: _compilation.
NodeFactory
.CompiledMethodNode((MethodDesc)targetObject);
3555
relocTarget = _compilation.
NodeFactory
.WasmMethodFrameIdentity(method);
3571
relocTarget = _compilation.
NodeFactory
.WasmMethodRelativeVirtualIP(_methodCodeNode);
3586
_compilation.
NodeFactory
.WasmAsyncResumeInfoFixups.AddFixup(location, offset);
3660
|| _compilation.
NodeFactory
.Target.IsWasm)
3685
if (_compilation.
NodeFactory
.Target.IsWasm
3705
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3763
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3820
if (!_compilation.
NodeFactory
.OptimizationFlags.StripInliningInfo)
3859
if (!_compilation.
NodeFactory
.OptimizationFlags.StripInliningInfo)
3925
if (!_compilation.
NodeFactory
.OptimizationFlags.StripInliningInfo)
3945
_compilation.
NodeFactory
.MethodEntrypoint(
3966
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
4081
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
4095
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
4106
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4124
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
4147
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4169
if (_compilation.
NodeFactory
.Target.IsWasm)
4171
MethodFixupSignature.AddVirtualEntryDependencies(_additionalDependencies, _compilation.
NodeFactory
, HandleToObject(method));
4178
_compilation.
NodeFactory
.WasmClosedStaticRetBufThunk(signature),
4188
_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (18)
515
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
516
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
566
if (_compilation.
NodeFactory
.Target.IsWasm && _ehClauses is not null)
584
if (!_compilation.
NodeFactory
.OptimizationFlags.StripInliningInfo)
597
_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.
NodeFactory
);
627
Debug.Assert(_compilation.
NodeFactory
.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
628
_compilation.
NodeFactory
.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(_additionalDependencies, _synthesizedPgoDependencies);
1591
var resolver = _compilation.
NodeFactory
.Resolver;
2141
var resolver = _compilation.
NodeFactory
.Resolver;
2199
_compilation.
NodeFactory
.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
3753
if (_compilation.
NodeFactory
.Target.IsWasm)
3758
else if (_compilation.
NodeFactory
.Target.IsWindows)
3768
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);
3795
NodeFactory factory = _compilation.
NodeFactory
;
3806
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3870
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3946
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(
4951
return (uint)node.GetAlignment(_compilation.
NodeFactory
);