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;
1394Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}");
1800MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
1857MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
2743ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled);
2760MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method);
2829if (method != null && typeToInit == MethodBeingCompiled.OwningType)
2843if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType)
2851if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor)
3835throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(GetCookieForPInvokeCalliSig)}");
3955_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled);
3976_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled);
4004_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled);
4062if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4423TypeDesc owningType = MethodBeingCompiled.OwningType;
4466if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4469if (!this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method
4471ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled);
4474if (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation) // No generics involved
4476ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled);
4479if (this.MethodBeingCompiled.IsAsync)
4481ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled);
4486if (Marshaller.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module, this.MethodBeingCompiled.GetUnmanagedCallersOnlyMethodCallingConventions())) // Only blittable arguments
4488ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled);
4495if (this.MethodBeingCompiled.IsPInvoke)
4500if (this.MethodBeingCompiled.IsNoOptimization)
4505if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel)
4510if (this.MethodBeingCompiled.IsAsyncCall()
4524if (this.MethodBeingCompiled.Context.Target.OperatingSystem == TargetOS.Browser)
4683ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();