2 instantiations of Status
ILCompiler.Compiler (2)
Compiler\TypePreinit.cs (2)
3736return new Status($"Method '{method}', opcode '{opcode}' {detail ?? ""}"); 3741return new Status($"Method '{method}': {detail}");
103 references to Status
ILCompiler.Compiler (103)
Compiler\TypePreinit.cs (103)
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"); 361return Status.Success; 378return Status.Fail(methodIL.OwningMethod, opcode, "Store into other static"); 383return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 388return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 395return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 402return Status.Fail(methodIL.OwningMethod, opcode, "Value with no external representation"); 419return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 425return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 435return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported RVA static"); 450return Status.Fail(methodIL.OwningMethod, opcode, "Nested cctor failed to preinit"); 454return Status.Fail(methodIL.OwningMethod, opcode); 465return Status.Fail(methodIL.OwningMethod, opcode, "Load from other non-initonly static"); 477return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported byref"); 499return Status.Fail(methodIL.OwningMethod, opcode, "Did not resolve constraint"); 507return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 518return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 523return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 536return Status.Fail(methodIL.OwningMethod, opcode); 544Status callResult = TryScanMethod(method, methodParams, recursionProtect, ref instructionCounter, out retVal); 567return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 577return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 582return Status.Fail(methodIL.OwningMethod, opcode, "Not a class or struct"); 593return Status.Fail(methodIL.OwningMethod, opcode, "Finalizable class"); 599return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 604return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 620return Status.Fail(methodIL.OwningMethod, opcode, "Unverifiable delegate creation"); 636return Status.Fail(methodIL.OwningMethod, opcode, "Open/closed static/instance delegate mismatch"); 641return Status.Fail(methodIL.OwningMethod, opcode, "Delegate with fat pointer"); 653return Status.Fail(methodIL.OwningMethod, opcode, "Can't make `this`"); 695return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 700Status ctorCallResult = TryScanMethod(ctor, ctorParameters, recursionProtect, ref instructionCounter, out _); 727return Status.Fail(methodIL.OwningMethod, ILOpcode.localloc); 739return Status.Fail(methodIL.OwningMethod, opcode, "Static field with stfld"); 747return Status.Fail(methodIL.OwningMethod, opcode, "Reference field"); 752return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 758return Status.Fail(methodIL.OwningMethod, opcode, "Not settable"); 770return Status.Fail(methodIL.OwningMethod, opcode); 778return Status.Fail(methodIL.OwningMethod, opcode); 793return Status.Fail(methodIL.OwningMethod, opcode); 798return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 806return Status.Fail(methodIL.OwningMethod, opcode); 878return Status.Fail(methodIL.OwningMethod, opcode); 922return Status.Fail(methodIL.OwningMethod, opcode); 969return Status.Fail(methodIL.OwningMethod, opcode); 974return Status.Fail(methodIL.OwningMethod, opcode); 1005return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1026return Status.Fail(methodIL.OwningMethod, opcode); 1034return Status.Fail(methodIL.OwningMethod, ILOpcode.constrained); 1091return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1121return Status.Fail(methodIL.OwningMethod, opcode); 1143return Status.Fail(methodIL.OwningMethod, opcode); 1203return Status.Fail(methodIL.OwningMethod, opcode); 1267return Status.Fail(methodIL.OwningMethod, opcode); 1351return Status.Fail(methodIL.OwningMethod, opcode); 1364return Status.Fail(methodIL.OwningMethod, opcode); 1377return Status.Fail(methodIL.OwningMethod, opcode); 1384return Status.Fail(methodIL.OwningMethod, opcode); 1388return Status.Fail(methodIL.OwningMethod, opcode); 1410return Status.Fail(methodIL.OwningMethod, opcode); 1430return Status.Fail(methodIL.OwningMethod, opcode); 1456return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1460return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1482return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1486return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1508return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1550return Status.Fail(methodIL.OwningMethod, "Byref math with unsupported byref"); 1554return Status.Fail(methodIL.OwningMethod, "Out of range byref access"); 1560return Status.Fail(methodIL.OwningMethod, opcode); 1574return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1606return Status.Fail(methodIL.OwningMethod, opcode); 1618return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1622return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1660return Status.Fail(methodIL.OwningMethod, opcode); 1672return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1678return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1682return Status.Fail(methodIL.OwningMethod, opcode, "Foreign array"); 1698return Status.Fail(methodIL.OwningMethod, opcode); 1701return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 1704return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 1710return Status.Fail(methodIL.OwningMethod, opcode); 1767return Status.Fail(methodIL.OwningMethod, "Ldind from unsupported byref"); 1795return Status.Fail(methodIL.OwningMethod, "Stind into usupported byref"); 1798return Status.Fail(methodIL.OwningMethod, "Byref doesn't support storing value"); 1819return Status.Fail(methodIL.OwningMethod, opcode); 1824return Status.Fail(methodIL.OwningMethod, "initblk of unsupported byref"); 1828return Status.Fail(methodIL.OwningMethod, opcode); 1835return Status.Fail(methodIL.OwningMethod, opcode); 1840return Status.Fail(methodIL.OwningMethod, "Control fell through"); 3725public static Status Success => default; 3734public static Status Fail(MethodDesc method, ILOpcode opcode, string detail = null) 3739public static Status Fail(MethodDesc method, string detail)