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