76 references to MethodBeingCompiled
ILCompiler.ReadyToRun (76)
JitInterface\CorInfoImpl.ReadyToRun.cs (35)
518MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType); 721DeterminismData data = _determinismTable.GetOrCreateValue(MethodBeingCompiled); 735_compilation.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{_compilation.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure."); 793if (ShouldSkipCompilation(_compilation.InstructionSetSupport, MethodBeingCompiled, _compilation)) 796logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it is skipped."); 800if (MethodSignatureIsUnstable(MethodBeingCompiled.Signature, out var _)) 803logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has an non version resilient signature."); 806MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 810logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because IL code could not be found for the method."); 817logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it always throws an exception"); 824logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has a non referenceable catch clause"); 828var typicalDef = MethodBeingCompiled.GetTypicalMethodDefinition(); 833(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 834_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 844resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(ecmaMethod.Module, ecmaMethod.Handle)); 855resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 867if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 869WasmSignature wasmSig = WasmLowering.GetSignature(MethodBeingCompiled); 880logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` triggered recompilation to acquire stable tokens for cross module inline."); 983MethodBeingCompiled : HandleToObject((void*)pTargetMethod.tokenContext)); 988MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 1358MethodBeingCompiled), 1571&& MethodBeingCompiled.IsCompilerGeneratedILBodyForAsync() 1572&& ((TypeDesc)ResolveTokenInScope(_compilation.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception)) 2109exactType == MethodBeingCompiled.OwningType) 2555MethodBeingCompiled)); 2594else if (MethodBeingCompiled is AsyncResumptionStub resumptionStub 2746_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2771Debug.Assert(MethodBeingCompiled is not AsyncResumptionStub); 2772_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3310MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3312TypeDesc clauseType = (TypeDesc)ResolveTokenInScope(methodIL, MethodBeingCompiled, classToken);
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();