1 write to ConstrainedType
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
157
ConstrainedType
= constrainedType;
32 references to ConstrainedType
ILCompiler.ReadyToRun (32)
Compiler\DependencyAnalysis\ReadyToRun\DelegateCtorSignature.cs (1)
50
needsInstantiatingStub |= (_targetMethod.Method.OwningType.HasInstantiation || _methodToken.
ConstrainedType
!= null);
Compiler\DependencyAnalysis\ReadyToRun\GenericLookupSignature.cs (2)
156
if (_methodArgument.
ConstrainedType
!= null)
159
sb.Append(nameMangler.GetMangledTypeName(_methodArgument.
ConstrainedType
));
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (8)
39
if (method.
ConstrainedType
!= null && !method.
ConstrainedType
.IsRuntimeDeterminedSubtype)
40
compilerContext.EnsureLoadableType(method.
ConstrainedType
);
50
public TypeDesc ConstrainedType => _method.
ConstrainedType
;
52
public bool NeedsInstantiationArg => _method.
ConstrainedType
?.IsCanonicalSubtype(CanonicalFormKind.Any) ?? false;
94
&& _method.
ConstrainedType
== null && fixupKind == ReadyToRunFixupKind.MethodEntry)
121
method = new MethodWithToken(method.Method, factory.SignatureContext.GetModuleTokenForMethod(method.Method), method.
ConstrainedType
, unboxing: _method.Unboxing, null);
127
method = new MethodWithToken(method.Method, factory.SignatureContext.GetModuleTokenForMethod(method.Method), method.
ConstrainedType
, unboxing: _method.Unboxing, null);
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (3)
436
if (method.
ConstrainedType
!= null)
451
if (method.
ConstrainedType
!= null)
453
EmitTypeSignature(method.
ConstrainedType
, context);
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (2)
528
TypeAndMethod key = new TypeAndMethod(method.
ConstrainedType
, method, isInstantiatingStub, isPrecodeImportRequired, isJumpableImportRequired);
617
TypeAndMethod key = new TypeAndMethod(method.
ConstrainedType
, method, isInstantiatingStub, false, false);
Compiler\RuntimeDeterminedTypeHelper.cs (3)
134
&& Equals(methodWithToken1.
ConstrainedType
, methodWithToken2.
ConstrainedType
)
201
return unchecked(GetHashCode(method.Method) + 31 * GetHashCode(method.OwningType) + 97 * GetHashCode(method.
ConstrainedType
));
JitInterface\CorInfoImpl.ReadyToRun.cs (13)
339
return Method.GetHashCode() ^ unchecked(17 * Token.GetHashCode()) ^ unchecked(39 * (
ConstrainedType
?.GetHashCode() ?? 0));
350
&&
ConstrainedType
== methodWithToken.
ConstrainedType
360
if (
ConstrainedType
!= null)
363
sb.Append(nameMangler.GetMangledTypeName(
ConstrainedType
));
385
if (
ConstrainedType
!= null)
388
debuggingName.Append(
ConstrainedType
.ToString());
404
if (
ConstrainedType
!= null || other.
ConstrainedType
!= null)
406
if (
ConstrainedType
== null)
408
else if (other.
ConstrainedType
== null)
411
result = comparer.Compare(
ConstrainedType
, other.
ConstrainedType
);