1 write to _type
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\NonGCStaticsNode.cs (1)
29
_type
= type;
28 references to _type
ILCompiler.Compiler (28)
Compiler\DependencyAnalysis\NonGCStaticsNode.cs (28)
42
else if (_preinitializationManager.IsPreinitialized(
_type
))
51
foreach (FieldDesc field in
_type
.GetFields())
81
sb.Append(nameMangler.NodeMangler.NonGCStatics(
_type
));
93
return GetClassConstructorContextStorageSize(
_type
.Context.Target,
_type
);
118
public bool HasCCtorContext => TypeHasCctorContext(_preinitializationManager,
_type
);
120
public bool HasLazyStaticConstructor => _preinitializationManager.HasLazyStaticConstructor(
_type
);
122
public override bool IsShareable => EETypeNode.IsTypeNodeShareable(
_type
);
124
public MetadataType Type =>
_type
;
152
int fieldAlignment =
_type
.NonGCStaticFieldAlignment.AsInt;
156
public override bool HasConditionalStaticDependencies =>
_type
.ConvertToCanonForm(CanonicalFormKind.Specific) !=
_type
;
164
new CombinedDependencyListEntry(factory.NecessaryTypeSymbol(
_type
),
165
factory.NativeLayout.TemplateTypeLayout(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific)),
176
if (factory.PreinitializationManager.HasEagerStaticConstructor(
_type
))
178
dependencyList.Add(factory.EagerCctorIndirection(
_type
.GetStaticConstructor()), "Eager .cctor");
181
ModuleUseBasedDependencyAlgorithm.AddDependenciesDueToModuleUse(ref dependencyList, factory,
_type
.Module);
197
int classConstructorContextStorageSize = GetClassConstructorContextStorageSize(factory.Target,
_type
);
200
Debug.Assert(classConstructorContextStorageSize >= GetClassConstructorContextSize(
_type
.Context.Target));
203
builder.EmitZeros(classConstructorContextStorageSize - GetClassConstructorContextSize(
_type
.Context.Target));
217
MethodDesc cctorMethod =
_type
.GetStaticConstructor();
226
if (_preinitializationManager.IsPreinitialized(
_type
))
228
TypePreinit.PreinitializationInfo preinitInfo = _preinitializationManager.GetPreinitializationInfo(
_type
);
230
foreach (FieldDesc field in
_type
.GetFields())
245
int pad =
_type
.NonGCStaticFieldSize.AsInt - builder.CountBytes + initialOffset;
251
builder.EmitZeros(
_type
.NonGCStaticFieldSize.AsInt);
263
return comparer.Compare(
_type
, ((NonGCStaticsNode)other).
_type
);