5 overrides of GetCanonMethodTarget
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Canon\ArrayType.Canon.cs (1)
31public override MethodDesc GetCanonMethodTarget(CanonicalFormKind kind)
parent\parent\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (1)
21public override MethodDesc GetCanonMethodTarget(CanonicalFormKind kind)
parent\parent\Common\TypeSystem\Canon\MethodDelegator.Canon.cs (1)
14public abstract override MethodDesc GetCanonMethodTarget(CanonicalFormKind kind);
parent\parent\Common\TypeSystem\Canon\MethodForInstantiatedType.Canon.cs (1)
14public override MethodDesc GetCanonMethodTarget(CanonicalFormKind kind)
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
58public override MethodDesc GetCanonMethodTarget(CanonicalFormKind kind)
154 references to GetCanonMethodTarget
ILCompiler.Compiler (111)
Compiler\Compilation.cs (1)
488MethodDesc targetMethod = calledMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\Dataflow\HandleCallAction.cs (1)
314_reflectionMarker.Dependencies.Add(_reflectionMarker.Factory.ReflectedMethod(ctorMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Marshal API");
Compiler\DelegateCreationInfo.cs (3)
244MethodDesc targetCanonMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 279targetMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 285targetMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (2)
125caDependencies.Add(factory.ReflectedMethod(constructor.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Attribute constructor"); 242dependencies.Add(factory.ReflectedMethod(setterMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Custom attribute blob");
Compiler\DependencyAnalysis\DelegateTargetVirtualMethodNode.cs (3)
23Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method); 49Debug.Assert(declaration.GetCanonMethodTarget(CanonicalFormKind.Specific) == declaration); 50Debug.Assert(implementation.GetCanonMethodTarget(CanonicalFormKind.Specific) == implementation);
Compiler\DependencyAnalysis\EETypeNode.cs (12)
392MethodDesc canonImpl = impl.GetCanonMethodTarget(CanonicalFormKind.Specific); 410factory.DelegateTargetVirtualMethod(decl.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Slot is a delegate target")); 480MethodDesc defaultIntfMethod = implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 488factory.DelegateTargetVirtualMethod(interfaceMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Interface slot is delegate target")); 497factory.DelegateTargetVirtualMethod(implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), 498factory.DelegateTargetVirtualMethod(interfaceMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), 532MethodDesc defaultIntfMethod = implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 550factory.DelegateTargetVirtualMethod(interfaceMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), 655dependencies.Add(factory.MethodEntrypoint(method.GetCanonMethodTarget(CanonicalFormKind.Specific)), 1009MethodDesc canonImplMethod = implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1023else if (factory.DelegateTargetVirtualMethod(declMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)).Marked) 1078MethodDesc canonFinalizerMethod = finalizerMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ExactMethodInstantiationsEntryNode.cs (1)
22Debug.Assert(!method.GetCanonMethodTarget(CanonicalFormKind.Specific).IsCanonicalMethod(CanonicalFormKind.Any));
Compiler\DependencyAnalysis\FatFunctionPointerNode.cs (2)
26Debug.Assert(methodRepresented.GetCanonMethodTarget(CanonicalFormKind.Specific) != methodRepresented); 69MethodDesc canonMethod = Method.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\GenericDictionaryNode.cs (4)
161factory.MethodEntrypoint(method.GetCanonMethodTarget(CanonicalFormKind.Specific)), 210MethodDesc canonicalTarget = _owningMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 251return factory.GenericDictionaryLayout(_owningMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)); 278Debug.Assert(owningMethod.GetCanonMethodTarget(CanonicalFormKind.Specific) != owningMethod);
Compiler\DependencyAnalysis\GenericLookupResult.cs (3)
661MethodDesc canonMethod = _method.GetCanonMethodTarget(CanonicalFormKind.Specific); 1070MethodDesc canonMethod = _constrainedMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1139if (implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).IsSharedByGenericInstantiations)
Compiler\DependencyAnalysis\GenericMethodsTemplateMap.cs (1)
96Debug.Assert(method == method.GetCanonMethodTarget(CanonicalFormKind.Specific));
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (1)
22Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method);
Compiler\DependencyAnalysis\GvmDispatchCellInfoSectionNode.cs (1)
103MethodDesc canonMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (2)
210int genericContext = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).RequiresInstArg() 260implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).RequiresInstArg())
Compiler\DependencyAnalysis\MethodAssociatedDataNode.cs (1)
31Debug.Assert(methodNode.Method.GetCanonMethodTarget(CanonicalFormKind.Specific) == methodNode.Method);
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (12)
812Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method, "Assert that the canonical method passed in is in standard canonical form"); 953yield return new DependencyListEntry(context.MethodEntrypoint(_type.GetStaticConstructor().GetCanonMethodTarget(CanonicalFormKind.Specific)), "cctor for template"); 1045MethodDesc canonCctorMethod = cctorMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1257method = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 1274method = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 1311MethodDesc canonMethod = _method.GetCanonMethodTarget(CanonicalFormKind.Specific); 1352GenericMethodsTemplateMap.GetTemplateMethodDependencies(ref dependencies, factory, _method.GetCanonMethodTarget(CanonicalFormKind.Specific)); 1436factory.MetadataManager.GetDependenciesDueToLdToken(ref result, factory, _method.GetCanonMethodTarget(CanonicalFormKind.Specific)); 1440result.Add(factory.GVMDependencies(_method.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Potential dynamic GVM call"); 1521MethodDesc canonMethod = _constrainedMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1539var canonConstrainedMethod = _constrainedMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1598GenericMethodsTemplateMap.GetTemplateMethodDependencies(ref dependencies, factory, _method.GetCanonMethodTarget(CanonicalFormKind.Specific));
Compiler\DependencyAnalysis\NodeFactory.cs (5)
1168MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 1177MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 1186MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 1309new ShadowConcreteMethodNode(key, _factory.MethodEntrypoint(key.GetCanonMethodTarget(CanonicalFormKind.Specific))); 1327new ShadowNonConcreteMethodNode(key, _factory.MethodEntrypoint(key.GetCanonMethodTarget(CanonicalFormKind.Specific)));
Compiler\DependencyAnalysis\ReadyToRunGenericHelperNode.cs (2)
231MethodDesc targetMethod = delegateCreationInfo.PossiblyUnresolvedTargetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 276MethodDesc targetMethod = delegateCreationInfo.PossiblyUnresolvedTargetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ReadyToRunHelperNode.cs (2)
80method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method); 163info.PossiblyUnresolvedTargetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific));
Compiler\DependencyAnalysis\ReflectedMethodNode.cs (1)
27Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method);
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (2)
43Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method); 141Debug.Assert(method == method.GetCanonMethodTarget(CanonicalFormKind.Specific));
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
95dependencies.Add(factory.GVMDependencies(slotDefiningMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), "GVM callable reflectable method");
Compiler\DependencyAnalysis\RuntimeMethodHandleNode.cs (1)
57MethodDesc canonMethod = _targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ScannedMethodNode.cs (1)
34Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method);
Compiler\DependencyAnalysis\SealedVTableNode.cs (8)
138if (factory.DelegateTargetVirtualMethod(virtualSlots[i].GetCanonMethodTarget(CanonicalFormKind.Specific)).Marked) 139node = factory.AddressTakenMethodEntrypoint(implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !implMethod.Signature.IsStatic && declType.IsValueType); 141node = factory.MethodEntrypoint(implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !implMethod.Signature.IsStatic && declType.IsValueType); 198if (factory.DelegateTargetVirtualMethod(declMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)).Marked) 199node = factory.AddressTakenMethodEntrypoint(targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !targetMethod.Signature.IsStatic && declType.IsValueType); 201node = factory.MethodEntrypoint(targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !targetMethod.Signature.IsStatic && declType.IsValueType); 217MethodDesc canonImplMethod = implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 233if (factory.DelegateTargetVirtualMethod(declMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)).Marked)
Compiler\DependencyAnalysis\UnboxingStubNode.cs (1)
33Debug.Assert(target.GetCanonMethodTarget(CanonicalFormKind.Specific) == target);
Compiler\DependencyAnalysis\VTableSliceNode.cs (1)
241factory.VirtualMethodUse(method.GetCanonMethodTarget(CanonicalFormKind.Specific)),
Compiler\ILScanner.cs (3)
391MethodDesc targetMethod = methodDictLookup.Method.GetCanonMethodTarget(CanonicalFormKind.Specific); 630_overriddenMethods.Add(baseVtable[i].GetCanonMethodTarget(CanonicalFormKind.Specific)); 729MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\MetadataManager.cs (2)
485factory.NativeLayout.TemplateMethodEntry(method.GetCanonMethodTarget(CanonicalFormKind.Specific)), 869Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method);
Compiler\MultiFileCompilationModuleGroup.cs (1)
55Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) != method);
Compiler\RootingHelpers.cs (1)
189dependencies.Add(factory.ReflectedMethod(method.GetCanonMethodTarget(CanonicalFormKind.Specific)), reason);
Compiler\RootingServiceProvider.cs (2)
29MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 66_rootAdder(_factory.ReflectedMethod(method.GetCanonMethodTarget(CanonicalFormKind.Specific)), reason);
Compiler\SingleFileCompilationModuleGroup.cs (1)
29Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) != method);
Compiler\SingleMethodCompilationModuleGroup.cs (2)
33return method == _method || method == _method.GetCanonMethodTarget(CanonicalFormKind.Specific); 38Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) != method);
Compiler\TypePreinit.cs (1)
3277MethodDesc targetMethod = creationInfo.PossiblyUnresolvedTargetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\UsageBasedMetadataManager.cs (9)
311dependencies.Add(factory.ReflectedMethod(invokeMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Delegate invoke method is always reflectable"); 326dependencies.Add(factory.ReflectedMethod(defaultConstructor.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Array.Initialize needs default constructor"); 535factory.ReflectedMethod(reflectedMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)), 557MethodDesc canonicalMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 576ReflectedMethodNode reflectedMethod = factory.ReflectedMethod(target.GetCanonMethodTarget(CanonicalFormKind.Specific)); 599DelegateTargetVirtualMethodNode targetVirtualMethod = factory.ReflectedDelegateTargetVirtualMethod(target.GetCanonMethodTarget(CanonicalFormKind.Specific)); 634decl.GetCanonMethodTarget(CanonicalFormKind.Specific), 635impl.GetCanonMethodTarget(CanonicalFormKind.Specific)), 716dependencies.Add(factory.ReflectedMethod(method.GetCanonMethodTarget(CanonicalFormKind.Specific)), "Abstract reflectable method");
IL\ILImporter.Scanner.cs (8)
222_compilation.TypeSystemContext.EnsureLoadableMethod(method.GetCanonMethodTarget(CanonicalFormKind.Specific)); 866Debug.Assert(targetOfLookup.GetCanonMethodTarget(CanonicalFormKind.Specific) == targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)); 872else if (directCall && !allowInstParam && targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).RequiresInstArg()) 902targetMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1013methodToLookup.GetCanonMethodTarget(CanonicalFormKind.Specific)); 1134MethodDesc targetMethod = runtimeDeterminedResult.GetCanonMethodTarget(CanonicalFormKind.Specific); 2073MethodDesc targetMethod = runtimeDeterminedResult.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (3)
32Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method); 163MethodDesc canonImpl = implementingMethodInstantiation.GetCanonMethodTarget(CanonicalFormKind.Specific); 243.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (1)
48Debug.Assert(canonicalMethod.Method == method.GetCanonMethodTarget(CanonicalFormKind.Specific));
parent\parent\Common\Compiler\DependencyAnalysis\VirtualMethodUseNode.cs (1)
67MethodDesc canonDecl = _decl.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\Compiler\TypeExtensions.cs (1)
426interfaceMethod = interfaceMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
ILCompiler.ReadyToRun (26)
Compiler\DependencyAnalysis\ArrayInterfaceMethodsNode.cs (1)
67MethodDesc canonHelperMethod = helperMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (2)
64MethodDesc canonImpl = impl.GetCanonMethodTarget(CanonicalFormKind.Specific); 122implMethod = implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ReadyToRun\DelayLoadHelperMethodImport.cs (1)
48MethodDesc canonMethod = _method.Method.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
57MethodDesc canonMethod = Method.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (1)
102method = method.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (4)
136Debug.Assert(method == method.GetCanonMethodTarget(CanonicalFormKind.Specific)); 259MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 270MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific); 665MethodDesc compilableMethod = method.Method.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (1)
407bool useInstantiatingStub = method.Method.GetCanonMethodTarget(CanonicalFormKind.Specific) != method.Method;
Compiler\ReadyToRunCodegenCompilation.cs (1)
261MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific);
Compiler\SingleMethodCompilationModuleGroup.cs (1)
29return (method == _method) || (method == _method.GetCanonMethodTarget(CanonicalFormKind.Specific));
JitInterface\CorInfoImpl.ReadyToRun.cs (4)
1950useInstantiatingStub = originalMethod.OwningType.IsArray || originalMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).RequiresInstMethodDescArg(); 2204MethodDesc canonMethod = (isArrayConstructor ? null : targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)); 2604MethodDesc compilableTarget = nonUnboxingMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 2662MethodDesc canonMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (3)
32Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method); 163MethodDesc canonImpl = implementingMethodInstantiation.GetCanonMethodTarget(CanonicalFormKind.Specific); 243.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (1)
48Debug.Assert(canonicalMethod.Method == method.GetCanonMethodTarget(CanonicalFormKind.Specific));
parent\parent\Common\Compiler\TypeExtensions.cs (1)
426interfaceMethod = interfaceMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1502MethodDesc impl = originalImpl.GetCanonMethodTarget(CanonicalFormKind.Specific); 3736MethodDesc targetMethod = runtimeDeterminedResult.GetCanonMethodTarget(CanonicalFormKind.Specific); 3802MethodDesc targetMethod = runtimeDeterminedResult.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\JitInterface\UnboxingMethodDesc.cs (1)
33MethodDesc realCanonTarget = _wrappedMethod.GetCanonMethodTarget(kind);
ILCompiler.RyuJit (16)
Compiler\DependencyAnalysis\MethodCodeNode.cs (1)
36Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method);
JitInterface\CorInfoImpl.RyuJit.cs (11)
454Debug.Assert(expectedTargetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific) == targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)); 1360&& (!pResult->exactContextNeedsRuntimeLookup || !targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).RequiresInstMethodDescArg())) 1419Debug.Assert(lookupMethod.GetCanonMethodTarget(CanonicalFormKind.Specific) == targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific)); 1434else if (directCall && !allowInstParam && targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific).RequiresInstArg()) 1519targetMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1529targetMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1601targetOfLookup.GetCanonMethodTarget(CanonicalFormKind.Specific)); 1686targetMethod = targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific); 1885methodDesc = methodDesc.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1502MethodDesc impl = originalImpl.GetCanonMethodTarget(CanonicalFormKind.Specific); 3736MethodDesc targetMethod = runtimeDeterminedResult.GetCanonMethodTarget(CanonicalFormKind.Specific); 3802MethodDesc targetMethod = runtimeDeterminedResult.GetCanonMethodTarget(CanonicalFormKind.Specific);
parent\parent\Common\JitInterface\UnboxingMethodDesc.cs (1)
33MethodDesc realCanonTarget = _wrappedMethod.GetCanonMethodTarget(kind);
ILCompiler.TypeSystem (1)
parent\parent\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (1)
28MethodDesc openMethodOnCanonicalizedType = _methodDef.GetCanonMethodTarget(kind);