1 write to _factory
ILCompiler.Compiler (1)
IL\ILImporter.Scanner.cs (1)
98
_factory
= (ILScanNodeFactory)compilation.NodeFactory;
60 references to _factory
ILCompiler.Compiler (60)
IL\ILImporter.Scanner.cs (60)
149
_dependencies.Add(
_factory
.ReadyToRunHelper(ReadyToRunHelperId.GetNonGCStaticBase, method.OwningType), "Owning type cctor");
171
_dependencies.Add(
_factory
.NecessaryTypeSymbol(method.OwningType), reason);
186
_dependencies.Add(
_factory
.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContexts"u8, null)), reason);
187
_dependencies.Add(
_factory
.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContexts"u8, null)), reason);
204
CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _unconditionalDependencies,
_factory
, _canonMethod, _canonMethodIL);
205
CodeBasedDependencyAlgorithm.AddConditionalDependenciesDueToMethodCodePresence(ref conditionalDependencies,
_factory
, _canonMethod);
320
return
_factory
.MethodEntrypointOrTentativeMethod(method);
449
_dependencies.Add(
_factory
.ConstructedTypeSymbol(_compilation.TypeSystemContext.ContinuationType), asyncReason);
454
_dependencies.Add(
_factory
.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureExecutionContext"u8, null)), asyncReason);
455
_dependencies.Add(
_factory
.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContinuationContext"u8, null)), asyncReason);
456
_dependencies.Add(
_factory
.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContextsOnSuspension"u8, null)), asyncReason);
457
_dependencies.Add(
_factory
.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionNoContinuationContext"u8, null)), asyncReason);
458
_dependencies.Add(
_factory
.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionWithContinuationContext"u8, null)), asyncReason);
475
MethodDesc asyncVariantMethod =
_factory
.TypeSystemContext.GetAsyncVariantMethod(method);
476
MethodDesc asyncVariantRuntimeDeterminedMethod =
_factory
.TypeSystemContext.GetAsyncVariantMethod(runtimeDeterminedMethod);
518
_dependencies.Add(
_factory
.ConstructedTypeSymbol(owningType), reason);
545
_dependencies.Add(
_factory
.VTable(method.OwningType), reason);
561
_dependencies.Add(type.IsValueType ?
_factory
.ExactCallableAddress(ctor) :
_factory
.CanonicalEntrypoint(ctor), reason);
589
_dependencies.Add(
_factory
.ConstructedTypeSymbol(method.Instantiation[0]), reason);
655
_factory
.MetadataManager.NoteOverridingMethod(method, directMethod);
767
_dependencies.Add(
_factory
.FatFunctionPointer(targetMethod), reason);
790
_dependencies.Add(
_factory
.StringAllocator(targetMethod), reason);
814
_dependencies.Add(
_factory
.ShadowNonConcreteMethod(concreteMethod), reason);
822
_dependencies.Add(
_factory
.CanonicalEntrypoint(targetMethod), reason);
834
_dependencies.Add(
_factory
.ConstructedTypeSymbol(_constrained), reason);
905
_dependencies.Add(
_factory
.RuntimeMethodHandle(methodToLookup), reason);
918
_dependencies.Add(
_factory
.InterfaceDispatchCell(method), reason);
925
_dependencies.Add(
_factory
.VirtualMethodUse(slotDefiningMethod), reason);
951
_dependencies.Add(
_factory
.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
983
_dependencies.Add(
_factory
.CanonicalEntrypoint(stub), "calli");
1005
if (!
_factory
.MetadataManager.IsReflectionBlocked(typeEqualityCheckType)
1007
condition =
_factory
.TypeMetadata(typeEqualityCheckMetadataType);
1009
condition =
_factory
.MaximallyConstructableType(typeEqualityCheckType);
1020
&& !
_factory
.TypeSystemContext.IsArrayVariantCastable(isinstCheckType))
1022
condition =
_factory
.MaximallyConstructableType(isinstCheckType);
1033
condition =
_factory
.AnalysisCharacteristic(intrinsicMethod.GetName());
1075
_dependencies.Add(
_factory
.NecessaryTypeSymbol(type), "Unbox");
1103
_factory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies,
_factory
, _methodIL, (TypeDesc)_canonMethodIL.GetObject(token));
1116
_dependencies.Add(
_factory
.MaximallyConstructableType(type), reason);
1143
_factory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies,
_factory
, _methodIL, (TypeDesc)_canonMethodIL.GetObject(token));
1167
_factory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies,
_factory
, _methodIL, (MethodDesc)_canonMethodIL.GetObject(token));
1175
_dependencies.Add(
_factory
.RuntimeMethodHandle(method), "ldtoken");
1184
_factory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies,
_factory
, _methodIL, (FieldDesc)_canonMethodIL.GetObject(token));
1192
_dependencies.Add(
_factory
.RuntimeFieldHandle(field), "ldtoken");
1244
fieldToReport =
_factory
.TypeSystemContext.GetFieldForInstantiatedType(fieldToReport.GetTypicalFieldDefinition(), (InstantiatedType)canonFieldOwningType);
1246
_dependencies.Add(
_factory
.NotReadOnlyField(fieldToReport), "Field written outside initializer");
1298
_dependencies.Add(
_factory
.ReadyToRunHelper(helperId, owningType), reason);
1320
_dependencies.Add(
_factory
.SerializedStringObject((string)_methodIL.GetObject(token)), "ldstr");
1380
_factory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies,
_factory
, _methodIL, typeForAccessCheck);
1388
_dependencies.Add(
_factory
.ConstructedTypeSymbol(type), reason);
1409
_factory
.MetadataManager.GetDependenciesDueToAccess(ref _dependencies,
_factory
, _methodIL, (TypeDesc)_canonMethodIL.GetObject(token));
1419
_dependencies.Add(
_factory
.ConstructedTypeSymbol(elementType.MakeArrayType()), "newarr");
1456
_dependencies.Add(
_factory
.NecessaryTypeSymbol(elementType), "ldelema");