77 references to MethodBeingCompiled
ILCompiler.ReadyToRun (77)
JitInterface\CorInfoImpl.ReadyToRun.cs (35)
518MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType); 729DeterminismData data = _determinismTable.GetOrCreateValue(MethodBeingCompiled); 743_compilation.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{_compilation.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure."); 801if (ShouldSkipCompilation(_compilation.InstructionSetSupport, MethodBeingCompiled, _compilation)) 804logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it is skipped."); 808if (MethodSignatureIsUnstable(MethodBeingCompiled.Signature, out var _)) 811logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has an non version resilient signature."); 814MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 818logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because IL code could not be found for the method."); 825logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it always throws an exception"); 832logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has a non referenceable catch clause"); 836var typicalDef = MethodBeingCompiled.GetTypicalMethodDefinition(); 841(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 842_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 852resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(ecmaMethod.Module, ecmaMethod.Handle)); 863resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 875if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 877WasmSignature wasmSig = WasmLowering.GetSignature(MethodBeingCompiled); 888logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` triggered recompilation to acquire stable tokens for cross module inline."); 991MethodBeingCompiled : HandleToObject((void*)pTargetMethod.tokenContext)); 996MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 1366MethodBeingCompiled), 1615&& MethodBeingCompiled.IsCompilerGeneratedILBodyForAsync() 1616&& ((TypeDesc)ResolveTokenInScope(_compilation.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception)) 2153exactType == MethodBeingCompiled.OwningType) 2599MethodBeingCompiled)); 2638else if (MethodBeingCompiled is AsyncResumptionStub resumptionStub 2790_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2815Debug.Assert(MethodBeingCompiled is not AsyncResumptionStub); 2816_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3354MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3356TypeDesc clauseType = (TypeDesc)ResolveTokenInScope(methodIL, MethodBeingCompiled, classToken);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (42)
329ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 333Get_CORINFO_METHOD_INFO(MethodBeingCompiled, methodIL, &methodInfo); 1041return MethodBeingCompiled; 1058return MethodBeingCompiled.OwningType; 1075return MethodBeingCompiled.HasInstantiation ? (TypeSystemEntity)MethodBeingCompiled: (TypeSystemEntity)MethodBeingCompiled.OwningType; 1265if (!_compilation.CanInline(MethodBeingCompiled, method)) 1290EcmaModule 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}"); 1777MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 1834MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 2739ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 2756MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method); 2825if (method != null && typeToInit == MethodBeingCompiled.OwningType) 2839if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType) 2847if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor) 3886throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(GetCookieForPInvokeCalliSig)}"); 4006_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled); 4027_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled); 4055_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled); 4113if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4475TypeDesc owningType = MethodBeingCompiled.OwningType; 4521if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4524if (!this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method 4526ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled); 4529if (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation) // No generics involved 4531ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled); 4534if (this.MethodBeingCompiled.IsAsync) 4536ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled); 4541if (Marshaller.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module, this.MethodBeingCompiled.GetUnmanagedCallersOnlyMethodCallingConventions())) // Only blittable arguments 4543ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled); 4550if (this.MethodBeingCompiled.IsPInvoke) 4555if (this.MethodBeingCompiled.IsNoOptimization) 4560if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel) 4565if (this.MethodBeingCompiled.IsAsyncCall() 4579if (this.MethodBeingCompiled.Context.Target.OperatingSystem == TargetOS.Browser) 4738ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();