src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (41)
330ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled);
334Get_CORINFO_METHOD_INFO(MethodBeingCompiled, methodIL, &methodInfo);
1040return MethodBeingCompiled;
1057return MethodBeingCompiled.OwningType;
1074return MethodBeingCompiled.HasInstantiation ? (TypeSystemEntity)MethodBeingCompiled: (TypeSystemEntity)MethodBeingCompiled.OwningType;
1328if (!_compilation.CanInline(MethodBeingCompiled, method))
1353EcmaModule rootModule = (MethodBeingCompiled.OwningType as MetadataType)?.Module as EcmaModule;
1457Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}");
1910MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
1967MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext);
2901ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled);
2918MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method);
2987if (method != null && typeToInit == MethodBeingCompiled.OwningType)
3001if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType)
3009if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor)
4157throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(GetCookieForPInvokeCalliSig)}");
4277_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled);
4298_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled);
4326_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled);
4384if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4772TypeDesc owningType = MethodBeingCompiled.OwningType;
4818if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
4827if (!isFallbackBodyCompilation && !this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method
4829ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled);
4832if (!isFallbackBodyCompilation && (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation)) // No generics involved
4834ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled);
4837if (!isFallbackBodyCompilation && this.MethodBeingCompiled.IsAsync)
4839ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled);
4842if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module)) // Only blittable arguments
4844ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled);
4850if (this.MethodBeingCompiled.IsPInvoke)
4855if (this.MethodBeingCompiled.IsNoOptimization)
4860if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel)
4865if (this.MethodBeingCompiled.IsAsyncCall()
4879if (this.MethodBeingCompiled.Context.Target.Architecture == TargetArchitecture.Wasm32)
5038ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();