76 references to MethodBeingCompiled
ILCompiler.ReadyToRun (76)
JitInterface\CorInfoImpl.ReadyToRun.cs (36)
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) 2557MethodBeingCompiled)); 2596else if (MethodBeingCompiled is AsyncResumptionStub resumptionStub 2815_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2840Debug.Assert(MethodBeingCompiled is not AsyncResumptionStub); 2841_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3464throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(convertPInvokeCalliToCall)}"); 3494MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3496TypeDesc clauseType = (TypeDesc)ResolveTokenInScope(methodIL, MethodBeingCompiled, classToken);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (40)
348ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 352Get_CORINFO_METHOD_INFO(MethodBeingCompiled, methodIL, &methodInfo); 1061return MethodBeingCompiled; 1078return MethodBeingCompiled.OwningType; 1095return MethodBeingCompiled.HasInstantiation ? (TypeSystemEntity)MethodBeingCompiled: (TypeSystemEntity)MethodBeingCompiled.OwningType; 1349if (!_compilation.CanInline(MethodBeingCompiled, method)) 1384EcmaModule rootModule = (MethodBeingCompiled.OwningType as MetadataType)?.Module as EcmaModule; 1488Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}"); 1941MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 1998MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 2894ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 2911MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method); 2980if (method != null && typeToInit == MethodBeingCompiled.OwningType) 2994if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType) 3002if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor) 4294_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled); 4315_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled); 4343_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled); 4401if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4789TypeDesc owningType = MethodBeingCompiled.OwningType; 4835if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4844if (!isFallbackBodyCompilation && !this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method 4846ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled); 4849if (!isFallbackBodyCompilation && (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation)) // No generics involved 4851ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled); 4854if (!isFallbackBodyCompilation && this.MethodBeingCompiled.IsAsync) 4856ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled); 4859if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module)) // Only blittable arguments 4861ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled); 4867if (this.MethodBeingCompiled.IsPInvoke) 4872if (this.MethodBeingCompiled.IsNoOptimization) 4877if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel) 4882if (this.MethodBeingCompiled.IsAsyncCall() 4896if (this.MethodBeingCompiled.Context.Target.Architecture == TargetArchitecture.Wasm32) 5055ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();