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