3 types derived from Import
ILCompiler.ReadyToRun (3)
Compiler\DependencyAnalysis\ReadyToRun\DelayLoadHelperImport.cs (1)
17public class DelayLoadHelperImport : Import
Compiler\DependencyAnalysis\ReadyToRun\PrecodeHelperImport.cs (1)
13public class PrecodeHelperImport : Import
Compiler\DependencyAnalysis\ReadyToRun\StringImport.cs (1)
8public class StringImport : Import
8 instantiations of Import
ILCompiler.ReadyToRun (8)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (5)
452return new Import(EagerImports, new ReadyToRunHelperSignature(helperId)); 1260ModuleImport = new Import(EagerImports, new ReadyToRunHelperSignature( 1266InjectStringThunksImport = new Import(EagerImports, new InjectStringThunksSignature()); 1270Import personalityRoutineImport = new Import(EagerImports, new ReadyToRunHelperSignature( 1276Import filterFuncletPersonalityRoutineImport = new Import(EagerImports, new ReadyToRunHelperSignature(
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (2)
83return new Import( 455return new Import(_codegenNodeFactory.EagerImports, signature);
Compiler\ReadyToRunCodegenCompilation.cs (1)
426_dependencyGraph.AddRoot(new Import(NodeFactory.EagerImports, instructionSetSupportSig), "Baseline instruction set support");
153 references to Import
ILCompiler.ReadyToRun (153)
Compiler\DeferredWasmCallProcessor.cs (4)
63private readonly HashSet<Import> _fixupScratch = new(); 331var eagerFixups = new HashSet<Import>(); 358foreach (Import fixup in method.GetGuaranteedPrecodeFixups(_fixupScratch)) 382foreach (Import fixup in eagerFixups)
Compiler\DeferredWasmCallRewriter.cs (2)
94Import import = useDirectCall 95? (Import)(isEager
Compiler\DependencyAnalysis\ImportReferenceProvider.cs (4)
21public Import GetImportToType(TypeDesc type, ModuleDesc moduleRequiringImport = null) 31public Import GetImportToModule(ModuleDesc module) 45Import typeImport = GetImportToModule(module); 52Import typeImport = GetImportToType(type, module);
Compiler\DependencyAnalysis\ReadyToRun\Import.cs (3)
41if (factory.DeferredImportPlacement is List<Import> imports) 110Import otherNode = (Import)other;
Compiler\DependencyAnalysis\ReadyToRun\ImportSectionNode.cs (2)
14private class ImportTable : ArrayOfEmbeddedDataNode<Import> 74public void AddImport(NodeFactory factory, Import import)
Compiler\DependencyAnalysis\ReadyToRun\ImportThunk.cs (1)
28private readonly Import _helperCell;
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (8)
61public IReadOnlyList<Import> ReferencedImports => _imports; 63List<Import> _imports = new List<Import>(); 108Import typeHandleImport = (Import)_symbolFactory.CreateReadyToRunHelper(ReadyToRunHelperId.TypeHandle, handle.AsType); 152Import methodHandleImport = (Import)_symbolFactory.CreateReadyToRunHelper(ReadyToRunHelperId.MethodHandle, tok); 206foreach (Import imp in pgoEmitter.ReferencedImports)
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (25)
59private Import[] _guaranteedPrecodeFixups; 199internal Import[] GuaranteedPrecodeFixups => Volatile.Read(ref _guaranteedPrecodeFixups); 203internal void FinalizePrecodeFixups(HashSet<Import> scratch = null) 210HashSet<Import> coveredFixups = scratch ?? new HashSet<Import>(); 216fixup is Import import && 224internal Import[] GetGuaranteedPrecodeFixups(HashSet<Import> scratch) 226Import[] guarantees = GuaranteedPrecodeFixups; 235Import[] seed = CollectCoveredPrecodeFixups(scratch); 238if (fixup is Import import) 250guarantees = new Import[scratch.Count]; 261private Import[] CollectCoveredPrecodeFixups(HashSet<Import> coveredFixups) 274Import[] seed = Array.Empty<Import>(); 285if (dependency.Node is Import { Table.IsEager: true } import) 299Import[] targetFixups = target.GuaranteedPrecodeFixups; 300foreach (Import fixup in targetFixups) 317private static void CollectModuleEagerFixups(ObjectData data, HashSet<Import> fixups, bool includeDataReferences = true) 323if (relocation.Target is Import { Table.IsEager: true } import) 342internal void ApplyModuleEagerFixups(HashSet<Import> fixups) 349fixup is Import import && 402Import fixupCell = (Import)node;
Compiler\DependencyAnalysis\ReadyToRun\SignatureEmbeddedPointerIndirectionNode.cs (2)
13private readonly Import _import; 15public SignatureEmbeddedPointerIndirectionNode(Import import, Signature signature)
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (1)
20private readonly Import _helperCell;
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (1)
29private readonly Import _helperCell;
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (10)
84internal List<Import> DeferredImportPlacement { get; set; } 88List<Import> imports = DeferredImportPlacement; 90foreach (Import import in imports) 450_constructedHelpers = new NodeCache<ReadyToRunHelper, Import>(helperId => 622public Import ModuleImport; 655public Import InjectStringThunksImport; 674private NodeCache<ReadyToRunHelper, Import> _constructedHelpers; 678public Import GetReadyToRunHelperCell(ReadyToRunHelper helperId) 1270Import personalityRoutineImport = new Import(EagerImports, new ReadyToRunHelperSignature( 1276Import filterFuncletPersonalityRoutineImport = new Import(EagerImports, new ReadyToRunHelperSignature(
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (80)
65_importStrings = new NodeCache<ModuleToken, Import>(key => 75_r2rHelpers = new NodeCache<ReadyToRunHelperKey, Import>(CreateReadyToRunHelper); 77_eagerReadyToRunMethodEntries = new NodeCache<MethodWithToken, Import>(method => 92_precodeReadyToRunMethodEntries = new NodeCache<MethodWithToken, Import>(method => 102_instructionSetSupportFixups = new NodeCache<string, Import>(key => 109_resumptionStubEntryPointFixups = new NodeCache<MethodWithGCInfo, Import>(key => 116_fieldAddressCache = new NodeCache<FieldWithToken, Import>(key => 126_fieldOffsetCache = new NodeCache<FieldWithToken, Import>(key => 134_fieldBaseOffsetCache = new NodeCache<TypeDesc, Import>(key => 142_rvaFieldAddressCache = new NodeCache<FieldWithToken, Import>(key => 150_checkFieldOffsetCache = new NodeCache<FieldWithToken, Import>(key => 158_dispatchCells = new NodeCache<MethodAndCallSite, Import>(cellKey => 173_delegateCtors = new NodeCache<TypeAndMethod, Import>(ctorKey => 191_checkTypeLayoutCache = new NodeCache<TypeDesc, Import>(key => 199_virtualFunctionOverrideCache = new NodeCache<VirtualResolutionFixupSignature, Import>(key => 204_ilBodyFixupsCache = new NodeCache<ILBodyFixupSignature, Import>(key => new PrecodeHelperImport(_codegenNodeFactory.ILBodyPrecodeImports, key)); 206_genericLookupHelpers = new NodeCache<GenericLookupKey, Import>(key => 221_pInvokeTargetNodes = new NodeCache<PInvokeTargetKey, Import>(key => 239_ecmaModuleFixupCache = new NodeCache<IEcmaModule, Import>(key => 254private NodeCache<ModuleToken, Import> _importStrings; 256public Import StringLiteral(ModuleToken moduleToken) 288private NodeCache<ReadyToRunHelperKey, Import> _r2rHelpers; 290private Import CreateReadyToRunHelper(ReadyToRunHelperKey key) 344public Import CreateReadyToRunHelper(ReadyToRunHelperId id, object target) 349private NodeCache<MethodWithToken, Import> _eagerReadyToRunMethodEntries; 350private NodeCache<MethodWithToken, Import> _precodeReadyToRunMethodEntries; 351private NodeCache<string, Import> _instructionSetSupportFixups; 352private NodeCache<MethodWithGCInfo, Import> _resumptionStubEntryPointFixups; 354public Import EagerReadyToRunMethodEntry(MethodWithToken method) 359public Import PrecodeReadyToRunMethodEntry(MethodWithToken method) 364public Import PerMethodInstructionSetSupportFixup(InstructionSetSupport instructionSetSupport) 370private Import CreateNewHelper(TypeDesc type) 379private Import CreateNewArrayHelper(ArrayType type) 388private Import CreateGCStaticBaseHelper(TypeDesc type) 397private Import CreateNonGCStaticBaseHelper(TypeDesc type) 406private Import CreateThreadGcStaticBaseHelper(TypeDesc type) 415private Import CreateThreadNonGcStaticBaseHelper(TypeDesc type) 424private Import CreateIsInstanceOfHelper(TypeDesc type) 433private Import CreateCastClassHelper(TypeDesc type) 442private Import CreateTypeHandleHelper(TypeDesc type) 463private Import CreateDeclaringTypeHandleHelper(MethodWithToken method) 473private Import CreateMethodHandleHelper(MethodWithToken method) 485private Import CreateFieldHandleHelper(FieldWithToken field) 492private Import CreateCctorTrigger(TypeDesc type) 501private Import CreateTypeDictionary(TypeDesc type) 509private Import CreateMethodDictionary(MethodWithToken method) 519private NodeCache<FieldWithToken, Import> _fieldAddressCache; 521public Import FieldAddress(FieldWithToken fieldWithToken) 526private NodeCache<FieldWithToken, Import> _fieldOffsetCache; 528public Import FieldOffset(FieldWithToken fieldWithToken) 533private NodeCache<FieldWithToken, Import> _checkFieldOffsetCache; 535public Import CheckFieldOffset(FieldWithToken fieldWithToken) 540private NodeCache<TypeDesc, Import> _fieldBaseOffsetCache; 542public Import FieldBaseOffset(TypeDesc typeDesc) 547private NodeCache<FieldWithToken, Import> _rvaFieldAddressCache; 549public Import RvaFieldAddress(FieldWithToken fieldWithToken) 554private NodeCache<MethodAndCallSite, Import> _dispatchCells = new NodeCache<MethodAndCallSite, Import>(); 556public Import DispatchCell(MethodWithToken method, MethodDesc callingMethod) 562private NodeCache<TypeAndMethod, Import> _delegateCtors = new NodeCache<TypeAndMethod, Import>(); 564public Import DelegateCtor(TypeDesc delegateType, MethodWithToken method) 575private NodeCache<TypeDesc, Import> _checkTypeLayoutCache; 577public Import CheckTypeLayout(TypeDesc type) 582private NodeCache<VirtualResolutionFixupSignature, Import> _virtualFunctionOverrideCache; 584public Import CheckVirtualFunctionOverride(MethodWithToken declMethod, TypeDesc implType, MethodWithToken implMethod, bool checkOnly = false) 592private NodeCache<ILBodyFixupSignature, Import> _ilBodyFixupsCache; 593public Import CheckILBodyFixupSignature(MethodDesc method) 601private NodeCache<IEcmaModule, Import> _ecmaModuleFixupCache; 602public Import ModuleLookup(IEcmaModule module) 686private NodeCache<GenericLookupKey, Import> _genericLookupHelpers; 688public Import GenericLookupHelper( 743private Import GenericLookupTypeHelper( 767private Import GenericLookupFieldHelper( 777private Import GenericLookupMethodHelper( 814private NodeCache<PInvokeTargetKey, Import> _pInvokeTargetNodes = new NodeCache<PInvokeTargetKey, Import>(); 816public Import GetIndirectPInvokeTargetNode(MethodWithToken methodWithToken) 821public Import GetPInvokeTargetNode(MethodWithToken methodWithToken) 826internal Import ResumptionStubEntryPoint(MethodWithGCInfo resumptionStub)
Compiler\ReadyToRunCodegenCompilation.cs (1)
1089if (fixup is Import { Signature: ReadyToRunInstructionSetSupportSignature })
Compiler\ReadyToRunCodegenCompilationBuilder.cs (1)
406factory.DeferredImportPlacement = deferredWasmCalls ? new List<Import>() : null;
JitInterface\CorInfoImpl.ReadyToRun.cs (7)
499private readonly HashSet<Import> _precodeFixupScratch = new(); 522if (relocTarget is Import { Table.IsEager: false, EmitPrecode: true } import) 2601Import typeHandle = GetTypeHandleImport(type); 2613private Import GetTypeHandleImport(TypeDesc type) 3221Import import = (Import)_compilation.SymbolNodeFactory.ContinuationTypeSymbol(act); 3226Import typeHandleImport = GetTypeHandleImport(type);
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
608var node = _compilation.SymbolNodeFactory.PerMethodInstructionSetSupportFixup(actualSupport);