53 references to MethodBeingCompiled
ILCompiler.RyuJit (53)
JitInterface\CorInfoImpl.RyuJit.cs (8)
59
MethodDesc asyncResumptionStub = _compilation.TypeSystemContext.GetAsyncResumptionStub(
MethodBeingCompiled
, _compilation.TypeSystemContext.GeneratedAssembly.GetGlobalModuleType());
70
methodIL ??= _compilation.GetMethodIL(
MethodBeingCompiled
);
368
Debug.Assert(
MethodBeingCompiled
.IsSharedByGenericInstantiations);
374
ISymbolNode helper = GetGenericLookupHelper(GetGenericRuntimeLookupKind(
MethodBeingCompiled
), ReadyToRunHelperId.GetNonGCStaticBase, HandleToObject(callerHandle), helperArg);
408
MethodBeingCompiled
: HandleToObject((void*)pTargetMethod.tokenContext);
1318
exactType ==
MethodBeingCompiled
.OwningType &&
1321
!
MethodBeingCompiled
.HasInstantiation)
2205
var target =
MethodBeingCompiled
.Context.Target;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (45)
348
ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific,
MethodBeingCompiled
);
352
Get_CORINFO_METHOD_INFO(
MethodBeingCompiled
, methodIL, &methodInfo);
599
CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(ref _additionalDependencies, _compilation.NodeFactory,
MethodBeingCompiled
, methodIL);
1061
return
MethodBeingCompiled
;
1078
return
MethodBeingCompiled
.OwningType;
1095
return
MethodBeingCompiled
.HasInstantiation ? (TypeSystemEntity)
MethodBeingCompiled
: (TypeSystemEntity)
MethodBeingCompiled
.OwningType;
1349
if (!_compilation.CanInline(
MethodBeingCompiled
, method))
1378
if (calleeMethod.IsAsyncCall() && !
MethodBeingCompiled
.IsAsyncCall())
1384
EcmaModule rootModule = (
MethodBeingCompiled
.OwningType as MetadataType)?.Module as EcmaModule;
1488
Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {
MethodBeingCompiled
} with decl {decl} targeting type {objType}");
1941
MethodBeingCompiled
: HandleToObject((void*)pResolvedToken.tokenContext);
1998
MethodBeingCompiled
: HandleToObject((void*)pResolvedToken.tokenContext);
2901
ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific,
MethodBeingCompiled
);
2918
MethodDesc md = method == null ?
MethodBeingCompiled
: HandleToObject(method);
2987
if (method != null && typeToInit ==
MethodBeingCompiled
.OwningType)
3001
if (typeToInit == typeFromContext(context) || typeToInit ==
MethodBeingCompiled
.OwningType)
3009
if (
MethodBeingCompiled
.OwningType == typeToInit &&
MethodBeingCompiled
.IsStaticConstructor)
3754
ComputeLookup(caller !=
MethodBeingCompiled
, runtimeDeterminedResult, ReadyToRunHelperId.MethodDictionary, caller, ref instArg);
3832
ComputeLookup(caller !=
MethodBeingCompiled
, runtimeDeterminedResult, ReadyToRunHelperId.MethodDictionary,
4322
_roDataBlob = new MethodReadOnlyDataNode(
MethodBeingCompiled
);
4350
_rwDataBlob = new MethodReadWriteDataNode(
MethodBeingCompiled
);
4408
if (this.
MethodBeingCompiled
.IsUnmanagedCallersOnly)
4796
TypeDesc owningType =
MethodBeingCompiled
.OwningType;
4842
if (this.
MethodBeingCompiled
.IsUnmanagedCallersOnly)
4851
if (!isFallbackBodyCompilation && !this.
MethodBeingCompiled
.Signature.IsStatic) // Must be a static method
4853
ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.
MethodBeingCompiled
);
4856
if (!isFallbackBodyCompilation && (this.
MethodBeingCompiled
.HasInstantiation || this.
MethodBeingCompiled
.OwningType.HasInstantiation)) // No generics involved
4858
ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.
MethodBeingCompiled
);
4861
if (!isFallbackBodyCompilation && this.
MethodBeingCompiled
.IsAsync)
4863
ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.
MethodBeingCompiled
);
4866
if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.
MethodBeingCompiled
.Signature, ((MetadataType)this.
MethodBeingCompiled
.OwningType).Module)) // Only blittable arguments
4868
ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.
MethodBeingCompiled
);
4874
if (this.
MethodBeingCompiled
.IsPInvoke)
4879
if (this.
MethodBeingCompiled
.IsNoOptimization)
4884
if (this.
MethodBeingCompiled
.Context.Target.Abi == TargetAbi.NativeAotArmel)
4889
if (this.
MethodBeingCompiled
.IsAsyncCall()
4891
|| (_compilation.TypeSystemContext.IsSpecialUnboxingThunk(this.
MethodBeingCompiled
) && _compilation.TypeSystemContext.GetTargetOfSpecialUnboxingThunk(this.
MethodBeingCompiled
).IsAsyncCall())
4892
|| (_compilation.TypeSystemContext.IsDefaultInterfaceMethodImplementationInstantiationThunk(this.
MethodBeingCompiled
) && _compilation.TypeSystemContext.GetTargetOfDefaultInterfaceMethodImplementationInstantiationThunk(this.
MethodBeingCompiled
).IsAsyncCall())