2 instantiations of Status
ILCompiler.Compiler (2)
Compiler\TypePreinit.cs (2)
3684return new Status($"Method '{method}', opcode '{opcode}' {detail ?? ""}"); 3689return new Status($"Method '{method}': {detail}");
102 references to Status
ILCompiler.Compiler (102)
Compiler\TypePreinit.cs (102)
91Status status; 100status = Status.Fail(type.GetStaticConstructor(), ex.Message); 133Status status = nestedPreinit.TryScanMethod(type.GetStaticConstructor(), null, recursionProtect, ref instructionCounter, out Value _); 156private Status TryScanMethod(MethodDesc method, Value[] parameters, Stack<MethodDesc> recursionProtect, ref int instructionCounter, out Value returnValue) 162return Status.Fail(method, "Extern method"); 168private Status TryScanMethod(MethodIL methodIL, Value[] parameters, Stack<MethodDesc> recursionProtect, ref int instructionCounter, out Value returnValue) 173return Status.Fail(methodIL.OwningMethod, "Recursion"); 184return Status.Fail(methodIL.OwningMethod, "Finally regions"); 216return Status.Fail(methodIL.OwningMethod, "Instruction limit"); 285return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 291return Status.Fail(methodIL.OwningMethod, opcode, "Array out of bounds"); 296return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 343return Status.Success; 360return Status.Fail(methodIL.OwningMethod, opcode, "Store into other static"); 365return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 370return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 377return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 384return Status.Fail(methodIL.OwningMethod, opcode, "Value with no external representation"); 401return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 407return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 417return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported RVA static"); 432return Status.Fail(methodIL.OwningMethod, opcode, "Nested cctor failed to preinit"); 436return Status.Fail(methodIL.OwningMethod, opcode); 447return Status.Fail(methodIL.OwningMethod, opcode, "Load from other non-initonly static"); 459return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported byref"); 481return Status.Fail(methodIL.OwningMethod, opcode, "Did not resolve constraint"); 489return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 500return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 505return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 518return Status.Fail(methodIL.OwningMethod, opcode); 526Status callResult = TryScanMethod(method, methodParams, recursionProtect, ref instructionCounter, out retVal); 549return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 559return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 564return Status.Fail(methodIL.OwningMethod, opcode, "Not a class or struct"); 575return Status.Fail(methodIL.OwningMethod, opcode, "Finalizable class"); 581return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 586return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 602return Status.Fail(methodIL.OwningMethod, opcode, "Unverifiable delegate creation"); 618return Status.Fail(methodIL.OwningMethod, opcode, "Open/closed static/instance delegate mismatch"); 623return Status.Fail(methodIL.OwningMethod, opcode, "Delegate with fat pointer"); 635return Status.Fail(methodIL.OwningMethod, opcode, "Can't make `this`"); 677return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 682Status ctorCallResult = TryScanMethod(ctor, ctorParameters, recursionProtect, ref instructionCounter, out _); 709return Status.Fail(methodIL.OwningMethod, ILOpcode.localloc); 721return Status.Fail(methodIL.OwningMethod, opcode, "Static field with stfld"); 729return Status.Fail(methodIL.OwningMethod, opcode, "Reference field"); 734return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 740return Status.Fail(methodIL.OwningMethod, opcode, "Not settable"); 752return Status.Fail(methodIL.OwningMethod, opcode); 760return Status.Fail(methodIL.OwningMethod, opcode); 775return Status.Fail(methodIL.OwningMethod, opcode); 780return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 788return Status.Fail(methodIL.OwningMethod, opcode); 860return Status.Fail(methodIL.OwningMethod, opcode); 904return Status.Fail(methodIL.OwningMethod, opcode); 951return Status.Fail(methodIL.OwningMethod, opcode); 956return Status.Fail(methodIL.OwningMethod, opcode); 987return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1008return Status.Fail(methodIL.OwningMethod, opcode); 1016return Status.Fail(methodIL.OwningMethod, ILOpcode.constrained); 1073return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1103return Status.Fail(methodIL.OwningMethod, opcode); 1125return Status.Fail(methodIL.OwningMethod, opcode); 1185return Status.Fail(methodIL.OwningMethod, opcode); 1249return Status.Fail(methodIL.OwningMethod, opcode); 1333return Status.Fail(methodIL.OwningMethod, opcode); 1346return Status.Fail(methodIL.OwningMethod, opcode); 1359return Status.Fail(methodIL.OwningMethod, opcode); 1366return Status.Fail(methodIL.OwningMethod, opcode); 1370return Status.Fail(methodIL.OwningMethod, opcode); 1392return Status.Fail(methodIL.OwningMethod, opcode); 1412return Status.Fail(methodIL.OwningMethod, opcode); 1438return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1442return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1464return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1468return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1490return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1532return Status.Fail(methodIL.OwningMethod, "Byref math with unsupported byref"); 1536return Status.Fail(methodIL.OwningMethod, "Out of range byref access"); 1542return Status.Fail(methodIL.OwningMethod, opcode); 1556return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1588return Status.Fail(methodIL.OwningMethod, opcode); 1600return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1604return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1642return Status.Fail(methodIL.OwningMethod, opcode); 1654return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1660return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1664return Status.Fail(methodIL.OwningMethod, opcode, "Foreign array"); 1680return Status.Fail(methodIL.OwningMethod, opcode); 1683return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 1689return Status.Fail(methodIL.OwningMethod, opcode); 1746return Status.Fail(methodIL.OwningMethod, "Ldind from unsupported byref"); 1787return Status.Fail(methodIL.OwningMethod, "Stind into usupported byref"); 1790return Status.Fail(methodIL.OwningMethod, "Byref doesn't support storing value"); 1811return Status.Fail(methodIL.OwningMethod, opcode); 1816return Status.Fail(methodIL.OwningMethod, "initblk of unsupported byref"); 1820return Status.Fail(methodIL.OwningMethod, opcode); 1827return Status.Fail(methodIL.OwningMethod, opcode); 1832return Status.Fail(methodIL.OwningMethod, "Control fell through"); 3673public static Status Success => default; 3682public static Status Fail(MethodDesc method, ILOpcode opcode, string detail = null) 3687public static Status Fail(MethodDesc method, string detail)