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); 1360MethodBeingCompiled), 1605&& MethodBeingCompiled.IsCompilerGeneratedILBodyForAsync() 1606&& ((TypeDesc)ResolveTokenInScope(_compilation.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception)) 2143exactType == MethodBeingCompiled.OwningType) 2591MethodBeingCompiled)); 2630else if (MethodBeingCompiled is AsyncResumptionStub resumptionStub 2779_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 2804Debug.Assert(MethodBeingCompiled is not AsyncResumptionStub); 2805_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3324MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3326TypeDesc 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; 1393Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}"); 1798MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 1855MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 2741ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 2758MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method); 2827if (method != null && typeToInit == MethodBeingCompiled.OwningType) 2841if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType) 2849if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor) 3833throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(GetCookieForPInvokeCalliSig)}"); 3953_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled); 3974_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled); 4002_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled); 4060if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4421TypeDesc owningType = MethodBeingCompiled.OwningType; 4467if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4470if (!this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method 4472ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled); 4475if (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation) // No generics involved 4477ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled); 4480if (this.MethodBeingCompiled.IsAsync) 4482ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled); 4487if (Marshaller.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module, this.MethodBeingCompiled.GetUnmanagedCallersOnlyMethodCallingConventions())) // Only blittable arguments 4489ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled); 4496if (this.MethodBeingCompiled.IsPInvoke) 4501if (this.MethodBeingCompiled.IsNoOptimization) 4506if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel) 4511if (this.MethodBeingCompiled.IsAsyncCall() 4525if (this.MethodBeingCompiled.Context.Target.OperatingSystem == TargetOS.Browser) 4684ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();