7 overrides of IsVirtual
ILCompiler.Compiler (2)
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (1)
755
public override bool
IsVirtual
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
211
public override bool
IsVirtual
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
91
public override bool
IsVirtual
parent\parent\Common\TypeSystem\Common\MethodDelegator.cs (1)
35
public override bool
IsVirtual
=> _wrappedMethod.IsVirtual;
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
84
public override bool
IsVirtual
parent\parent\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
229
public override bool
IsVirtual
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
36
public override bool
IsVirtual
=> _typicalMethodDef.IsVirtual;
71 references to IsVirtual
ILCompiler.Compiler (36)
Compiler\Compilation.cs (1)
483
Debug.Assert(calledMethod.HasInstantiation && calledMethod.
IsVirtual
);
Compiler\CompilerTypeSystemContext.Aot.cs (2)
238
if (!virtualOnly || syntheticMethod.
IsVirtual
)
247
if (!virtualOnly || syntheticMethod.
IsVirtual
)
Compiler\Dataflow\FlowAnnotations.cs (1)
250
return method.
IsVirtual
|| annotation.ParameterAnnotations != null;
Compiler\DelegateCreationInfo.cs (2)
248
if (followVirtualDispatch && targetMethod.
IsVirtual
)
269
if (followVirtualDispatch && targetMethod.
IsVirtual
)
Compiler\DependencyAnalysis\EETypeNode.cs (1)
478
Debug.Assert(!implMethod.
IsVirtual
);
Compiler\DependencyAnalysis\GenericLookupResult.cs (1)
704
Debug.Assert(method.
IsVirtual
);
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (1)
27
Debug.Assert(method.
IsVirtual
|| (method.Signature.IsStatic && !method.IsAbstract));
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (1)
104
Debug.Assert(declMethod.
IsVirtual
);
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (3)
647
if (method.
IsVirtual
)
1438
if (_method.
IsVirtual
&& _method.HasInstantiation && !_method.IsGenericMethodDefinition && !_method.OwningType.IsGenericDefinition)
1519
if (_constrainedMethod.
IsVirtual
&& _constrainedMethod.HasInstantiation)
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
42
if (!method.
IsVirtual
)
Compiler\DependencyAnalysis\RuntimeMethodHandleNode.cs (1)
54
&& _targetMethod.HasInstantiation && _targetMethod.
IsVirtual
)
Compiler\DependencyAnalysis\VariantInterfaceMethodUseNode.cs (2)
29
Debug.Assert(decl.
IsVirtual
);
97
Debug.Assert(calledMethod.
IsVirtual
);
Compiler\DependencyAnalysis\VTableSliceNode.cs (1)
198
Debug.Assert(virtualMethod.
IsVirtual
);
Compiler\ILScanner.cs (1)
486
if (node is IMethodBodyNode { Method.
IsVirtual
: true, Method.HasInstantiation: false } virtualMethodBody)
Compiler\LazyGenericsPolicy.cs (1)
23
return method.
IsVirtual
|| method.HasCustomAttribute("System.Runtime.CompilerServices", "ForceLazyDictionaryAttribute");
Compiler\MetadataManager.cs (1)
624
if (target.
IsVirtual
)
Compiler\SubstitutedILProvider.cs (3)
743
if (opcode == ILOpcode.callvirt && callee.
IsVirtual
)
815
&& ((opcode != ILOpcode.callvirt && !method.Signature.IsStatic) || !method.
IsVirtual
))
820
if (((opcode != ILOpcode.callvirt && !method.Signature.IsStatic) || !method.
IsVirtual
)
Compiler\TypePreinit.cs (1)
528
if (!owningType.IsValueType && (method.
IsVirtual
|| methodParams[0] == null))
Compiler\UsageBasedMetadataManager.cs (2)
597
if (target.
IsVirtual
)
624
Debug.Assert(decl.
IsVirtual
IL\ILImporter.Scanner.cs (3)
808
Debug.Assert(targetMethod.
IsVirtual
&& targetMethod.OwningType.IsInterface);
984
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.
IsVirtual
&& _constrained != null);
993
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.
IsVirtual
&& _constrained != null);
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
34
Debug.Assert(method.
IsVirtual
);
parent\parent\Common\Compiler\DependencyAnalysis\VirtualMethodUseNode.cs (1)
31
Debug.Assert(decl.
IsVirtual
);
parent\parent\Common\Compiler\DevirtualizationManager.cs (1)
58
Debug.Assert(declMethod.
IsVirtual
);
parent\parent\Common\Compiler\MethodExtensions.cs (1)
177
if (!method.
IsVirtual
)
parent\parent\Common\Compiler\TypeExtensions.cs (1)
601
else if (genInterfaceMethod.
IsVirtual
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
290
if (!interfaceMethod.
IsVirtual
ILCompiler.ReadyToRun (24)
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (1)
129
if (implMethod.
IsVirtual
&& !implMethod.IsFinal && !implMethod.OwningType.IsInterface)
Compiler\DependencyAnalysis\ReadyToRun\DelegateCtorSignature.cs (1)
46
if (_targetMethod.Method.
IsVirtual
&& _targetMethod.Method.Signature.IsStatic)
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (2)
79
Method.
IsVirtual
&&
99
Method.
IsVirtual
&&
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (3)
388
if (!methodDecl.
IsVirtual
)
407
if (isStatic && methodBody.
IsVirtual
)
413
if (!isStatic && !methodBody.
IsVirtual
)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (3)
167
&& method.
IsVirtual
258
Debug.Assert(method.
IsVirtual
);
268
Debug.Assert(method.
IsVirtual
);
Compiler\ReadyToRunCodegenCompilation.cs (1)
104
if (callee.
IsVirtual
)
Compiler\ReadyToRunVisibilityRootProvider.cs (1)
90
if (!anyMethodImplRecordsForMethod && !method.
IsVirtual
)
JitInterface\CorInfoImpl.ReadyToRun.cs (5)
1980
bool isStaticVirtual = (originalMethod.Signature.IsStatic && originalMethod.
IsVirtual
);
2162
devirt = !targetMethod.
IsVirtual
;
2192
devirt = !targetMethod.
IsVirtual
|| targetMethod.IsFinal || targetMethod.OwningType.IsSealed();
2521
else if (!originalMethod.
IsVirtual
&& originalMethod.Context.GetWellKnownType(WellKnownType.Object) == originalMethod.OwningType)
3059
&& md.
IsVirtual
)
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
34
Debug.Assert(method.
IsVirtual
);
parent\parent\Common\Compiler\DependencyAnalysis\VirtualMethodUseNode.cs (1)
31
Debug.Assert(decl.
IsVirtual
);
parent\parent\Common\Compiler\DevirtualizationManager.cs (1)
58
Debug.Assert(declMethod.
IsVirtual
);
parent\parent\Common\Compiler\MethodExtensions.cs (1)
177
if (!method.
IsVirtual
)
parent\parent\Common\Compiler\TypeExtensions.cs (1)
601
else if (genInterfaceMethod.
IsVirtual
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
1152
if (method.
IsVirtual
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
290
if (!interfaceMethod.
IsVirtual
ILCompiler.RyuJit (6)
JitInterface\CorInfoImpl.RyuJit.cs (5)
403
Debug.Assert(targetMethod.
IsVirtual
&& targetMethod.Signature.IsStatic
841
if (method.
IsVirtual
&&
1338
Debug.Assert(targetMethod.
IsVirtual
&& targetMethod.OwningType.IsInterface);
1557
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.
IsVirtual
&& constrainedType != null);
1565
Debug.Assert(targetMethod.OwningType.IsInterface && targetMethod.
IsVirtual
&& constrainedType != null);
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
1152
if (method.
IsVirtual
)
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
95
return _methodDef.
IsVirtual
;
parent\parent\Common\TypeSystem\Common\MethodDelegator.cs (1)
35
public override bool IsVirtual => _wrappedMethod.
IsVirtual
;
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
88
return _typicalMethodDef.
IsVirtual
;
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (1)
515
if (method.
IsVirtual
)
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
36
public override bool IsVirtual => _typicalMethodDef.
IsVirtual
;