2 instantiations of Status
ILCompiler.Compiler (2)
Compiler\TypePreinit.cs (2)
3737return new Status($"Method '{method}', opcode '{opcode}' {detail ?? ""}"); 3742return new Status($"Method '{method}': {detail}");
103 references to Status
ILCompiler.Compiler (103)
Compiler\TypePreinit.cs (103)
94Status status; 103status = Status.Fail(type.GetStaticConstructor(), ex.Message); 136Status status = nestedPreinit.TryScanMethod(type.GetStaticConstructor(), null, recursionProtect, ref instructionCounter, out Value _); 169private Status TryScanMethod(MethodDesc method, Value[] parameters, Stack<MethodDesc> recursionProtect, ref int instructionCounter, out Value returnValue) 175return Status.Fail(method, "Extern method"); 181private Status TryScanMethod(MethodIL methodIL, Value[] parameters, Stack<MethodDesc> recursionProtect, ref int instructionCounter, out Value returnValue) 186return Status.Fail(methodIL.OwningMethod, "Recursion"); 197return Status.Fail(methodIL.OwningMethod, "Finally regions"); 229return Status.Fail(methodIL.OwningMethod, "Instruction limit"); 298return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 304return Status.Fail(methodIL.OwningMethod, opcode, "Array out of bounds"); 309return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 363return Status.Success; 380return Status.Fail(methodIL.OwningMethod, opcode, "Store into other static"); 385return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 390return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 397return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 404return Status.Fail(methodIL.OwningMethod, opcode, "Value with no external representation"); 421return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported static"); 427return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 437return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported RVA static"); 452return Status.Fail(methodIL.OwningMethod, opcode, "Nested cctor failed to preinit"); 456return Status.Fail(methodIL.OwningMethod, opcode); 467return Status.Fail(methodIL.OwningMethod, opcode, "Load from other non-initonly static"); 479return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported byref"); 501return Status.Fail(methodIL.OwningMethod, opcode, "Did not resolve constraint"); 509return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 520return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 525return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 538return Status.Fail(methodIL.OwningMethod, opcode); 546Status callResult = TryScanMethod(method, methodParams, recursionProtect, ref instructionCounter, out retVal); 569return Status.Fail(methodIL.OwningMethod, opcode, "Cannot inline"); 579return Status.Fail(methodIL.OwningMethod, opcode, "Static constructor"); 584return Status.Fail(methodIL.OwningMethod, opcode, "Not a class or struct"); 595return Status.Fail(methodIL.OwningMethod, opcode, "Finalizable class"); 601return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 606return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 622return Status.Fail(methodIL.OwningMethod, opcode, "Unverifiable delegate creation"); 638return Status.Fail(methodIL.OwningMethod, opcode, "Open/closed static/instance delegate mismatch"); 643return Status.Fail(methodIL.OwningMethod, opcode, "Delegate with fat pointer"); 655return Status.Fail(methodIL.OwningMethod, opcode, "Can't make `this`"); 697return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 702Status ctorCallResult = TryScanMethod(ctor, ctorParameters, recursionProtect, ref instructionCounter, out _); 729return Status.Fail(methodIL.OwningMethod, ILOpcode.localloc); 741return Status.Fail(methodIL.OwningMethod, opcode, "Static field with stfld"); 749return Status.Fail(methodIL.OwningMethod, opcode, "Reference field"); 754return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 760return Status.Fail(methodIL.OwningMethod, opcode, "Not settable"); 772return Status.Fail(methodIL.OwningMethod, opcode); 780return Status.Fail(methodIL.OwningMethod, opcode); 795return Status.Fail(methodIL.OwningMethod, opcode); 800return Status.Fail(methodIL.OwningMethod, opcode, "Needs dataflow analysis"); 808return Status.Fail(methodIL.OwningMethod, opcode); 880return Status.Fail(methodIL.OwningMethod, opcode); 924return Status.Fail(methodIL.OwningMethod, opcode); 971return Status.Fail(methodIL.OwningMethod, opcode); 976return Status.Fail(methodIL.OwningMethod, opcode); 1007return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1028return Status.Fail(methodIL.OwningMethod, opcode); 1036return Status.Fail(methodIL.OwningMethod, ILOpcode.constrained); 1093return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1123return Status.Fail(methodIL.OwningMethod, opcode); 1145return Status.Fail(methodIL.OwningMethod, opcode); 1205return Status.Fail(methodIL.OwningMethod, opcode); 1269return Status.Fail(methodIL.OwningMethod, opcode); 1353return Status.Fail(methodIL.OwningMethod, opcode); 1366return Status.Fail(methodIL.OwningMethod, opcode); 1379return Status.Fail(methodIL.OwningMethod, opcode); 1386return Status.Fail(methodIL.OwningMethod, opcode); 1390return Status.Fail(methodIL.OwningMethod, opcode); 1412return Status.Fail(methodIL.OwningMethod, opcode); 1432return Status.Fail(methodIL.OwningMethod, opcode); 1458return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1462return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1484return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1488return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1510return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1552return Status.Fail(methodIL.OwningMethod, "Byref math with unsupported byref"); 1556return Status.Fail(methodIL.OwningMethod, "Out of range byref access"); 1562return Status.Fail(methodIL.OwningMethod, opcode); 1576return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1608return Status.Fail(methodIL.OwningMethod, opcode); 1620return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1624return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1662return Status.Fail(methodIL.OwningMethod, opcode); 1674return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1680return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1684return Status.Fail(methodIL.OwningMethod, opcode, "Foreign array"); 1700return Status.Fail(methodIL.OwningMethod, opcode); 1703return Status.Fail(methodIL.OwningMethod, opcode, "GC pointers"); 1706return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 1712return Status.Fail(methodIL.OwningMethod, opcode); 1769return Status.Fail(methodIL.OwningMethod, "Ldind from unsupported byref"); 1797return Status.Fail(methodIL.OwningMethod, "Stind into usupported byref"); 1800return Status.Fail(methodIL.OwningMethod, "Byref doesn't support storing value"); 1821return Status.Fail(methodIL.OwningMethod, opcode); 1826return Status.Fail(methodIL.OwningMethod, "initblk of unsupported byref"); 1830return Status.Fail(methodIL.OwningMethod, opcode); 1837return Status.Fail(methodIL.OwningMethod, opcode); 1842return Status.Fail(methodIL.OwningMethod, "Control fell through"); 3726public static Status Success => default; 3735public static Status Fail(MethodDesc method, ILOpcode opcode, string detail = null) 3740public static Status Fail(MethodDesc method, string detail)