src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (41)
329ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled);
333Get_CORINFO_METHOD_INFO(MethodBeingCompiled, methodIL, &methodInfo);
1039return MethodBeingCompiled;
1056return MethodBeingCompiled.OwningType;
1073return MethodBeingCompiled.HasInstantiation ? (TypeSystemEntity)MethodBeingCompiled: (TypeSystemEntity)MethodBeingCompiled.OwningType;
1297if (!_compilation.CanInline(MethodBeingCompiled, method))
1322EcmaModule rootModule = (MethodBeingCompiled.OwningType as MetadataType)?.Module as EcmaModule;
1426Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}");
1879MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
1936MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
2841ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled);
2858MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method);
2927if (method != null && typeToInit == MethodBeingCompiled.OwningType)
2941if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType)
2949if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor)
4015throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(GetCookieForPInvokeCalliSig)}");
4135_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled);
4156_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled);
4184_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled);
4242if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4616TypeDesc owningType = MethodBeingCompiled.OwningType;
4662if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4671if (!isFallbackBodyCompilation && !this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method
4673ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled);
4676if (!isFallbackBodyCompilation && (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation)) // No generics involved
4678ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled);
4681if (!isFallbackBodyCompilation && this.MethodBeingCompiled.IsAsync)
4683ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled);
4686if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module)) // Only blittable arguments
4688ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled);
4694if (this.MethodBeingCompiled.IsPInvoke)
4699if (this.MethodBeingCompiled.IsNoOptimization)
4704if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel)
4709if (this.MethodBeingCompiled.IsAsyncCall()
4723if (this.MethodBeingCompiled.Context.Target.Architecture == TargetArchitecture.Wasm32)
4882ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();