77 references to MethodBeingCompiled
ILCompiler.ReadyToRun (77)
JitInterface\CorInfoImpl.ReadyToRun.cs (35)
520MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType); 723DeterminismData data = _determinismTable.GetOrCreateValue(MethodBeingCompiled); 737_compilation.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{_compilation.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure."); 795if (ShouldSkipCompilation(_compilation.InstructionSetSupport, MethodBeingCompiled, _compilation)) 798logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it is skipped."); 802if (MethodSignatureIsUnstable(MethodBeingCompiled.Signature, out var _)) 805logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has an non version resilient signature."); 808MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 812logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because IL code could not be found for the method."); 819logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it always throws an exception"); 826logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has a non referenceable catch clause"); 830var typicalDef = MethodBeingCompiled.GetTypicalMethodDefinition(); 835(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 836_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 846resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(ecmaMethod.Module, ecmaMethod.Handle)); 857resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 869if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 871WasmSignature wasmSig = WasmLowering.GetSignature(MethodBeingCompiled); 882logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` triggered recompilation to acquire stable tokens for cross module inline."); 985MethodBeingCompiled : HandleToObject((void*)pTargetMethod.tokenContext)); 990MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 1363MethodBeingCompiled), 1608&& MethodBeingCompiled.IsCompilerGeneratedILBodyForAsync() 1609&& ((TypeDesc)ResolveTokenInScope(_compilation.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception)) 2146exactType == MethodBeingCompiled.OwningType) 2594MethodBeingCompiled)); 2633else if (MethodBeingCompiled is AsyncResumptionStub resumptionStub 2782_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2807Debug.Assert(MethodBeingCompiled is not AsyncResumptionStub); 2808_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3327MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3329TypeDesc clauseType = (TypeDesc)ResolveTokenInScope(methodIL, MethodBeingCompiled, classToken);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (42)
327ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 331Get_CORINFO_METHOD_INFO(MethodBeingCompiled, methodIL, &methodInfo); 1041return MethodBeingCompiled; 1058return MethodBeingCompiled.OwningType; 1075return MethodBeingCompiled.HasInstantiation ? (TypeSystemEntity)MethodBeingCompiled: (TypeSystemEntity)MethodBeingCompiled.OwningType; 1265if (!_compilation.CanInline(MethodBeingCompiled, method)) 1289EcmaModule 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}"); 1800MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 1857MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 2743ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 2760MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method); 2829if (method != null && typeToInit == MethodBeingCompiled.OwningType) 2843if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType) 2851if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor) 3835throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(GetCookieForPInvokeCalliSig)}"); 3955_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled); 3976_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled); 4004_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled); 4062if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4423TypeDesc owningType = MethodBeingCompiled.OwningType; 4466if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4469if (!this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method 4471ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled); 4474if (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation) // No generics involved 4476ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled); 4479if (this.MethodBeingCompiled.IsAsync) 4481ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled); 4486if (Marshaller.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module, this.MethodBeingCompiled.GetUnmanagedCallersOnlyMethodCallingConventions())) // Only blittable arguments 4488ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled); 4495if (this.MethodBeingCompiled.IsPInvoke) 4500if (this.MethodBeingCompiled.IsNoOptimization) 4505if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel) 4510if (this.MethodBeingCompiled.IsAsyncCall() 4524if (this.MethodBeingCompiled.Context.Target.OperatingSystem == TargetOS.Browser) 4683ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();