111 references to NodeFactory
ILCompiler.ReadyToRun (111)
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 (75)
531
AddResumptionStubFixup(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
533
entryPoint = (void*)ObjectToHandle(_compilation.
NodeFactory
.CompiledMethodNode(asyncResumptionStub));
726
_compilation.
NodeFactory
.OptimizationFlags.DeterminismStress > 0)
751
else if (data.Iterations <= _compilation.
NodeFactory
.OptimizationFlags.DeterminismStress)
798
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, compilation.
NodeFactory
.CompilationModuleGroup))
856
if (FunctionHasNonReferenceableTypedILCatchClause(methodIL, _compilation.
NodeFactory
.CompilationModuleGroup))
868
(!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) &&
869
_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled)))
876
var resolver = _compilation.
NodeFactory
.Resolver;
887
EntityHandle? handle = _compilation.
NodeFactory
.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
890
resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, handle.Value));
902
if (_compilation.
NodeFactory
.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly)
906
_compilation.
NodeFactory
.WasmInterpreterToR2RThunk(wasmSig),
965
_compilation.
NodeFactory
.DetectGenericCycles(_methodCodeNode.Method, methodNode.Method);
976
if (_compilation.
NodeFactory
.Target.IsWasm)
1089
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(helperMethod, true, true),
1109
return _compilation.
NodeFactory
.CompiledMethodNode(managedHelper);
1456
return _compilation.
NodeFactory
.GetReadyToRunHelperCell(id);
1463
var entrypoint = _compilation.
NodeFactory
.MethodEntrypoint(
1466
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(method, true, true),
1479
Debug.Assert(_compilation.
NodeFactory
.Target.IsWasm);
1519
if (methodDesc != null && (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(methodDesc)
1588
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultMethod.OwningType))
1590
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(resultMethod, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1605
if (!(_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(resultField.OwningType) || resultField.OwningType.IsNonVersionable()))
1607
ModuleToken result = _compilation.
NodeFactory
.Resolver.GetModuleTokenForField(resultField, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1639
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(paramType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1641
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(ecmaType))
1643
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(ecmaType, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1649
return _compilation.
NodeFactory
.Resolver.GetModuleTokenForType(typeDesc, allowDynamicallyCreatedReference: true, throwIfNotFound: true);
1666
new ModuleToken(_compilation.
NodeFactory
.ManifestMetadataTable._mutableModule, metaTok));
1781
if (!pHasSideEffects && !_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(type))
1926
else if (field.OwningType.IsCanonicalSubtype(CanonicalFormKind.Any) || _compilation.
NodeFactory
.Target.IsWasm)
1989
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) &&
2101
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(versioningCallerMethod) &&
2102
!_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(versioningCallerMethod))
2157
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(directMethod))
2169
ModuleToken moduleToken = _compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(directMethod, false, false);
2307
else if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) ||
2309
!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition()))
2484
(_compilation.
NodeFactory
.Target.IsWasm &&
2651
_compilation.
NodeFactory
.DetectGenericCycles(callerMethod, methodToCall);
2676
else if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(constrainedType))
2690
if (_compilation.
NodeFactory
.Target.IsWasm && targetMethod.OwningType.IsDelegate && targetMethod.Name == "Invoke"u8)
2700
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSignature), "R2R-to-interpreter thunk for closed-static delegate target");
2758
&& !_compilation.
NodeFactory
.Target.IsWasm)
2769
MethodWithGCInfo targetCodeNode = _compilation.
NodeFactory
.CompiledMethodNode(compilableTarget);
2776
_compilation.
NodeFactory
.MethodEntrypoint(
2800
_compilation.
NodeFactory
.DynamicHelperCell(
2807
Debug.Assert(!pResult->sig.hasTypeArg() || _compilation.
NodeFactory
.Target.IsWasm);
2901
return !_compilation.
NodeFactory
.Resolver.GetModuleTokenForType(
2975
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, constrainedType);
3001
_compilation.
NodeFactory
.DetectGenericCycles(MethodBeingCompiled, sharedMethod);
3275
if (!_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(callerMethod) && !_compilation.
NodeFactory
.CompilationModuleGroup.CrossModuleInlineable(callerMethod))
3396
*ppCookieVal = (IntPtr *)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.GSCookie));
3401
ppIndirection = (void*)ObjectToHandle(_compilation.
NodeFactory
.GetReadyToRunHelperCell(ReadyToRunHelper.IndirectTrapThreads));
3434
if (!_compilation.
NodeFactory
.Target.IsWasm)
3465
_compilation.
NodeFactory
,
3482
if (!_compilation.
NodeFactory
.Target.IsWasm)
3495
relocTarget = _compilation.
NodeFactory
.WasmMethodRelativeVirtualIP(_methodCodeNode);
3510
_compilation.
NodeFactory
.WasmAsyncResumeInfoFixups.AddFixup(location, offset);
3582
|| _compilation.
NodeFactory
.Target.IsWasm)
3607
if (_compilation.
NodeFactory
.Target.IsWasm
3627
Debug.Assert(!_compilation.
NodeFactory
.CompilationModuleGroup.GeneratesPInvoke(method));
3685
if (_compilation.
NodeFactory
.Target.Architecture == TargetArchitecture.X86)
3860
_compilation.
NodeFactory
.MethodEntrypoint(
3881
if (_compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithType(field.OwningType) && field.HasRva)
3958
return _compilation.
NodeFactory
.CompilationModuleGroup.VersionsWithMethodBody(method);
3972
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
3983
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4001
if ((callSig != null) && _compilation.
NodeFactory
.Target.IsWasm)
4024
AddAdditionalDependency(_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(wasmSig), "R2R-to-interpreter thunk for call site");
4045
_compilation.
NodeFactory
.WasmClosedStaticRetBufThunk(signature),
4055
_compilation.
NodeFactory
.WasmR2RToInterpreterThunk(targetWasmSignature),
parent\parent\Common\JitInterface\CorInfoImpl.cs (16)
479
_compilation.
NodeFactory
.Target.MinimumFunctionAlignment :
480
_compilation.
NodeFactory
.Target.OptimumFunctionAlignment;
545
_methodCodeNode.InitializeInliningInfo(inlineeArray, _compilation.
NodeFactory
);
575
Debug.Assert(_compilation.
NodeFactory
.InstrumentationDataTable != null, "Expected InstrumentationDataTable to be non-null with synthesized PGO data to embed");
576
_compilation.
NodeFactory
.InstrumentationDataTable.EmbedSynthesizedPgoDataForMethods(ref _additionalDependencies, _synthesizedPgoDependencies);
1520
var resolver = _compilation.
NodeFactory
.Resolver;
2039
var resolver = _compilation.
NodeFactory
.Resolver;
2097
_compilation.
NodeFactory
.Resolver.AddModuleTokenForType(type, HandleToModuleToken(ref pResolvedToken, out bool strippedInstantiation));
3641
if (_compilation.
NodeFactory
.Target.IsWasm)
3646
else if (_compilation.
NodeFactory
.Target.IsWindows)
3656
pEEInfoOut.osType = TargetToOs(_compilation.
NodeFactory
.Target);
3683
NodeFactory factory = _compilation.
NodeFactory
;
3694
WasmTypeNode typeNode = _compilation.
NodeFactory
.WasmTypeNode(typeArray);
3758
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(runtimeDeterminedResult, allowDynamicallyCreatedReference: true, throwIfNotFound: true),
3834
_compilation.
NodeFactory
.Resolver.GetModuleTokenForMethod(
4771
return (uint)node.GetAlignment(_compilation.
NodeFactory
);