2 instantiations of Status
ILCompiler.Compiler (2)
Compiler\TypePreinit.cs (2)
3727return new Status($"Method '{method}', opcode '{opcode}' {detail ?? ""}"); 3732return new Status($"Method '{method}': {detail}");
102 references to Status
ILCompiler.Compiler (102)
Compiler\TypePreinit.cs (102)
92Status status; 101status = Status.Fail(type.GetStaticConstructor(), ex.Message); 134Status status = nestedPreinit.TryScanMethod(type.GetStaticConstructor(), null, recursionProtect, ref instructionCounter, out Value _); 167private Status TryScanMethod(MethodDesc method, Value[] parameters, Stack<MethodDesc> recursionProtect, ref int instructionCounter, out Value returnValue) 173return Status.Fail(method, "Extern method"); 179private Status TryScanMethod(MethodIL methodIL, Value[] parameters, Stack<MethodDesc> recursionProtect, ref int instructionCounter, out Value returnValue) 184return Status.Fail(methodIL.OwningMethod, "Recursion"); 195return Status.Fail(methodIL.OwningMethod, "Finally regions"); 227return Status.Fail(methodIL.OwningMethod, "Instruction limit"); 296return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 302return Status.Fail(methodIL.OwningMethod, opcode, "Array out of bounds"); 307return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 354return Status.Success; 371return Status.Fail(methodIL.OwningMethod, opcode, "Store into other static"); 376return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 381return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 388return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 395return Status.Fail(methodIL.OwningMethod, opcode, "Value with no external representation"); 412return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 418return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 428return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported RVA static"); 443return Status.Fail(methodIL.OwningMethod, opcode, "Nested cctor failed to preinit"); 447return Status.Fail(methodIL.OwningMethod, opcode); 458return Status.Fail(methodIL.OwningMethod, opcode, "Load from other non-initonly static"); 470return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported byref"); 492return Status.Fail(methodIL.OwningMethod, opcode, "Did not resolve constraint"); 500return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 511return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 516return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 529return Status.Fail(methodIL.OwningMethod, opcode); 537Status callResult = TryScanMethod(method, methodParams, recursionProtect, ref instructionCounter, out retVal); 560return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 570return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 575return Status.Fail(methodIL.OwningMethod, opcode, "Not a class or struct"); 586return Status.Fail(methodIL.OwningMethod, opcode, "Finalizable class"); 592return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 597return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 613return Status.Fail(methodIL.OwningMethod, opcode, "Unverifiable delegate creation"); 629return Status.Fail(methodIL.OwningMethod, opcode, "Open/closed static/instance delegate mismatch"); 634return Status.Fail(methodIL.OwningMethod, opcode, "Delegate with fat pointer"); 646return Status.Fail(methodIL.OwningMethod, opcode, "Can't make `this`"); 688return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 693Status ctorCallResult = TryScanMethod(ctor, ctorParameters, recursionProtect, ref instructionCounter, out _); 720return Status.Fail(methodIL.OwningMethod, ILOpcode.localloc); 732return Status.Fail(methodIL.OwningMethod, opcode, "Static field with stfld"); 740return Status.Fail(methodIL.OwningMethod, opcode, "Reference field"); 745return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 751return Status.Fail(methodIL.OwningMethod, opcode, "Not settable"); 763return Status.Fail(methodIL.OwningMethod, opcode); 771return Status.Fail(methodIL.OwningMethod, opcode); 786return Status.Fail(methodIL.OwningMethod, opcode); 791return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 799return Status.Fail(methodIL.OwningMethod, opcode); 871return Status.Fail(methodIL.OwningMethod, opcode); 915return Status.Fail(methodIL.OwningMethod, opcode); 962return Status.Fail(methodIL.OwningMethod, opcode); 967return Status.Fail(methodIL.OwningMethod, opcode); 998return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1019return Status.Fail(methodIL.OwningMethod, opcode); 1027return Status.Fail(methodIL.OwningMethod, ILOpcode.constrained); 1084return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1114return Status.Fail(methodIL.OwningMethod, opcode); 1136return Status.Fail(methodIL.OwningMethod, opcode); 1196return Status.Fail(methodIL.OwningMethod, opcode); 1260return Status.Fail(methodIL.OwningMethod, opcode); 1344return Status.Fail(methodIL.OwningMethod, opcode); 1357return Status.Fail(methodIL.OwningMethod, opcode); 1370return Status.Fail(methodIL.OwningMethod, opcode); 1377return Status.Fail(methodIL.OwningMethod, opcode); 1381return Status.Fail(methodIL.OwningMethod, opcode); 1403return Status.Fail(methodIL.OwningMethod, opcode); 1423return Status.Fail(methodIL.OwningMethod, opcode); 1449return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1453return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1475return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1479return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1501return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1543return Status.Fail(methodIL.OwningMethod, "Byref math with unsupported byref"); 1547return Status.Fail(methodIL.OwningMethod, "Out of range byref access"); 1553return Status.Fail(methodIL.OwningMethod, opcode); 1567return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1599return Status.Fail(methodIL.OwningMethod, opcode); 1611return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1615return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1653return Status.Fail(methodIL.OwningMethod, opcode); 1665return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1671return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1675return Status.Fail(methodIL.OwningMethod, opcode, "Foreign array"); 1691return Status.Fail(methodIL.OwningMethod, opcode); 1694return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 1700return Status.Fail(methodIL.OwningMethod, opcode); 1757return Status.Fail(methodIL.OwningMethod, "Ldind from unsupported byref"); 1798return Status.Fail(methodIL.OwningMethod, "Stind into usupported byref"); 1801return Status.Fail(methodIL.OwningMethod, "Byref doesn't support storing value"); 1822return Status.Fail(methodIL.OwningMethod, opcode); 1827return Status.Fail(methodIL.OwningMethod, "initblk of unsupported byref"); 1831return Status.Fail(methodIL.OwningMethod, opcode); 1838return Status.Fail(methodIL.OwningMethod, opcode); 1843return Status.Fail(methodIL.OwningMethod, "Control fell through"); 3716public static Status Success => default; 3725public static Status Fail(MethodDesc method, ILOpcode opcode, string detail = null) 3730public static Status Fail(MethodDesc method, string detail)