79 references to MethodBeingCompiled
ILCompiler.ReadyToRun (79)
JitInterface\CorInfoImpl.ReadyToRun.cs (39)
530MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(MethodBeingCompiled, MethodBeingCompiled.OwningType); 735DeterminismData data = _determinismTable.GetOrCreateValue(MethodBeingCompiled); 749_compilation.Logger.LogMessage($"ERROR: Determinism check compiling method '{MethodBeingCompiled}' failed. Use '{_compilation.GetReproInstructions(MethodBeingCompiled)}' on command line to reproduce the failure."); 828if (ShouldSkipCompilation(_compilation.InstructionSetSupport, MethodBeingCompiled, _compilation)) 831logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it is skipped."); 835if (MethodSignatureIsUnstable(MethodBeingCompiled.Signature, out var _)) 838logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has an non version resilient signature."); 841MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 845logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because IL code could not be found for the method."); 852logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it always throws an exception"); 859logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` was not compiled because it has a non referenceable catch clause"); 863var typicalDef = MethodBeingCompiled.GetTypicalMethodDefinition(); 864if (ILBodyFixupSignature.GetSignatureMethodForCompiledMethod(MethodBeingCompiled) is not null) 868(!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(MethodBeingCompiled) && 869_compilation.NodeFactory.CompilationModuleGroup.CrossModuleInlineable(MethodBeingCompiled))) 879resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(ecmaMethod.Module, ecmaMethod.Handle)); 890resolver.AddModuleTokenForMethod(MethodBeingCompiled, new ModuleToken(_compilation.NodeFactory.ManifestMetadataTable._mutableModule, handle.Value)); 902if (_compilation.NodeFactory.Target.IsWasm && !MethodBeingCompiled.IsUnmanagedCallersOnly) 904WasmSignature wasmSig = WasmLowering.GetSignature(MethodBeingCompiled); 915logger.Writer.WriteLine($"Info: Method `{MethodBeingCompiled}` triggered recompilation to acquire stable tokens for cross module inline."); 1062MethodBeingCompiled : HandleToObject((void*)pTargetMethod.tokenContext)); 1067MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 1092genericContextObject: MethodBeingCompiled); 1469MethodBeingCompiled), 1702&& MethodBeingCompiled.IsCompilerGeneratedILBodyForAsync() 1703&& ((TypeDesc)ResolveTokenInScope(_compilation.GetMethodIL(MethodBeingCompiled), MethodBeingCompiled, (mdToken)classTokenOrOffset)).IsWellKnownType(WellKnownType.Exception)) 2247exactType == MethodBeingCompiled.OwningType) 2721MethodBeingCompiled)); 2760else if (MethodBeingCompiled is AsyncResumptionStub resumptionStub 2979_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, constrainedType); 3004Debug.Assert(MethodBeingCompiled is not AsyncResumptionStub); 3005_compilation.NodeFactory.DetectGenericCycles(MethodBeingCompiled, sharedMethod); 3689throw new RequiresRuntimeJitException($"{MethodBeingCompiled} -> {nameof(convertPInvokeCalliToCall)}"); 3719MethodIL methodIL = _compilation.GetMethodIL(MethodBeingCompiled); 3721TypeDesc clauseType = (TypeDesc)ResolveTokenInScope(methodIL, MethodBeingCompiled, classToken); 3786inlineeModule != (MethodBeingCompiled.OwningType as MetadataType)?.Module &&
parent\parent\Common\JitInterface\CorInfoImpl.cs (40)
348ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 352Get_CORINFO_METHOD_INFO(MethodBeingCompiled, methodIL, &methodInfo); 1099return MethodBeingCompiled; 1116return MethodBeingCompiled.OwningType; 1133return MethodBeingCompiled.HasInstantiation ? (TypeSystemEntity)MethodBeingCompiled: (TypeSystemEntity)MethodBeingCompiled.OwningType; 1387if (!_compilation.CanInline(MethodBeingCompiled, method)) 1422EcmaModule rootModule = (MethodBeingCompiled.OwningType as MetadataType)?.Module as EcmaModule; 1462if (fIsTailPrefix && MethodBeingCompiled.Context.Target.Architecture == TargetArchitecture.Wasm32) 1987MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 2044MethodBeingCompiled : HandleToObject((void*)pResolvedToken.tokenContext); 2940ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 2957MethodDesc md = method == null ? MethodBeingCompiled : HandleToObject(method); 3026if (method != null && typeToInit == MethodBeingCompiled.OwningType) 3040if (typeToInit == typeFromContext(context) || typeToInit == MethodBeingCompiled.OwningType) 3048if (MethodBeingCompiled.OwningType == typeToInit && MethodBeingCompiled.IsStaticConstructor) 4361_methodColdCodeNode = new MethodColdCodeNode(MethodBeingCompiled); 4382_roDataBlob = new MethodReadOnlyDataNode(MethodBeingCompiled); 4410_rwDataBlob = new MethodReadWriteDataNode(MethodBeingCompiled); 4468if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4879TypeDesc owningType = MethodBeingCompiled.OwningType; 4925if (this.MethodBeingCompiled.IsUnmanagedCallersOnly) 4934if (!isFallbackBodyCompilation && !this.MethodBeingCompiled.Signature.IsStatic) // Must be a static method 4936ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled); 4939if (!isFallbackBodyCompilation && (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.HasInstantiation)) // No generics involved 4941ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled); 4944if (!isFallbackBodyCompilation && this.MethodBeingCompiled.IsAsync) 4946ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled); 4949if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module)) // Only blittable arguments 4951ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled); 4957if (this.MethodBeingCompiled.IsPInvoke) 4962if (this.MethodBeingCompiled.IsNoOptimization) 4967if (this.MethodBeingCompiled.Context.Target.Abi == TargetAbi.NativeAotArmel) 4972if (this.MethodBeingCompiled.IsAsyncCall() 4986if (this.MethodBeingCompiled.Context.Target.Architecture == TargetArchitecture.Wasm32) 5149ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan();