100 references to NodeFactory
ILCompiler.ReadyToRun (100)
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);
403
_dependencyGraph.AddRoot(new Import(
NodeFactory
.EagerImports, instructionSetSupportSig), "Baseline instruction set support");
425
NodeFactory
.SetMarkingComplete();
431
NodeFactory
,
489
EcmaModule inputModule =
NodeFactory
.TypeSystemContext.GetModuleFromPath(inputFile);
527
if (
NodeFactory
.Target.IsWindows &&
NodeFactory
.Format == ReadyToRunContainerFormat.PE)
531
else if (
NodeFactory
.Target.IsApplePlatform &&
NodeFactory
.Format == ReadyToRunContainerFormat.MachO)
630
if (!
NodeFactory
.CompilationModuleGroup.VersionsWithModule(defType.Module))
862
_methodILCache = new ILCache(_methodILCache.ILProvider,
NodeFactory
.CompilationModuleGroup);
870
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = true;
895
NodeFactory
.ManifestMetadataTable._mutableModule.DisableNewTokens = false;
1064
return
NodeFactory
.CopiedFieldRva(field);
JitInterface\CorInfoImpl.ReadyToRun.cs (66)
518
AddResumptionStubFixup(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
520
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
711
if ((_ilBodiesNeeded == null) && _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress > 0)
736
else if (data.Iterations <= _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress)
779
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.
NodeFactory
.CompilationModuleGroup))
820
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.
NodeFactory
.CompilationModuleGroup))
832
(!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
833
_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
840
var resolver = _compilation.
NodeFactory
.Resolver;
851
EntityHandle? handle = _compilation.
NodeFactory
.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
854
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, handle.Value));
866
if (_compilation.
NodeFactory
.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
870
_compilation.
NodeFactory
.WasmInterpreterToR2RThunk(wasmSig),
896
if (_compilation.
NodeFactory
.Target.IsWasm)
1342
return _compilation.
NodeFactory
.GetReadyToRunHelperCell(id);
1349
var entrypoint = _compilation.
NodeFactory
.MethodEntrypoint(
1352
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(method, true, true),
1385
if (methodDesc != null && (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1454
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1456
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1471
if (!(_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1473
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1505
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1507
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(ecmaType))
1509
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1515
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1532
new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, metaTok));
1647
if (!pHasSideEffects && !_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(type))
1792
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.
NodeFactory
.Target.IsWasm)
1855
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
1967
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) &&
1968
!_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod))
2023
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2035
ModuleToken moduleToken = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2173
else if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2175
!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2350
(_compilation.
NodeFactory
.Target.IsWasm &&
2500
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2525
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2594
&& !_compilation.
NodeFactory
.Target.IsWasm)
2605
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2612
_compilation.
NodeFactory
.MethodEntrypoint(
2636
_compilation.
NodeFactory
.DynamicHelperCell(
2643
Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.
NodeFactory
.Target.IsWasm);
2737
return !_compilation.
NodeFactory
.Resolver.GetModuleTokenForType(
2811
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
2837
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3113
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3234
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3239
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3272
if (!_compilation.
NodeFactory
.Target.IsWasm)
3303
_compilation.
NodeFactory
,
3320
if (!_compilation.
NodeFactory
.Target.IsWasm)
3333
relocTarget = _compilation.
NodeFactory
.WasmMethodRelativeVirtualIP(_methodCodeNode);
3348
_compilation.
NodeFactory
.WasmAsyncResumeInfoFixups.AddFixup(location, offset);
3420
|| _compilation.
NodeFactory
.Target.IsWasm)
3459
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3517
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3678
_compilation.
NodeFactory
.MethodEntrypoint(
3699
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3776
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
3790
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3801
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
3808
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3831
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
parent\parent\Common\JitInterface\CorInfoImpl.cs (17)
473
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
474
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
539
_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.
NodeFactory
);
583
_compilation.
NodeFactory
.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
597
Debug.Assert(_compilation.
NodeFactory
.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
598
_compilation.
NodeFactory
.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies);
1516
var resolver = _compilation.
NodeFactory
.Resolver;
2035
var resolver = _compilation.
NodeFactory
.Resolver;
2093
_compilation.
NodeFactory
.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
3637
if (_compilation.
NodeFactory
.Target.IsWasm)
3642
else if (_compilation.
NodeFactory
.Target.IsWindows)
3652
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);
3679
NodeFactory factory = _compilation.
NodeFactory
;
3690
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3754
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3830
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(
4755
return (uint)node.GetAlignment(_compilation.
NodeFactory
);