src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (42)
327ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled);
331Get_CORINFO_METHOD_INFO(MethodBeingCompiled, methodIL, &methodInfo);
1041return MethodBeingCompiled;
1058return MethodBeingCompiled.OwningType;
1075return MethodBeingCompiled.HasInstantiation ? (TypeSystemEntity)MethodBeingCompiled: (TypeSystemEntity)MethodBeingCompiled.OwningType;
1265if (!_compilation.CanInline(MethodBeingCompiled, method))
1289EcmaModule rootModule = (MethodBeingCompiled.OwningType as MetadataType)?.Module as EcmaModule;
1393Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}");
1798MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
1855MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
2741ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled);
2758MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method);
2827if (method != null && typeToInit == MethodBeingCompiled.OwningType)
2841if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType)
2849if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor)
3833throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(GetCookieForPInvokeCalliSig)}");
3953_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled);
3974_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled);
4002_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled);
4060if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4421TypeDesc owningType = MethodBeingCompiled.OwningType;
4467if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4470if (!this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method
4472ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled);
4475if (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation) // No generics involved
4477ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled);
4480if (this.MethodBeingCompiled.IsAsync)
4482ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled);
4487if (Marshaller.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module, this.MethodBeingCompiled.GetUnmanagedCallersOnlyMethodCallingConventions())) // Only blittable arguments
4489ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled);
4496if (this.MethodBeingCompiled.IsPInvoke)
4501if (this.MethodBeingCompiled.IsNoOptimization)
4506if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel)
4511if (this.MethodBeingCompiled.IsAsyncCall()
4525if (this.MethodBeingCompiled.Context.Target.OperatingSystem == TargetOS.Browser)
4684ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();