2 instantiations of Status
ILCompiler.Compiler (2)
Compiler\TypePreinit.cs (2)
3743return new Status($"Method '{method}', opcode '{opcode}' {detail ?? ""}"); 3748return 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); 978return Status.Fail(methodIL.OwningMethod, opcode); 983return Status.Fail(methodIL.OwningMethod, opcode); 1014return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1035return Status.Fail(methodIL.OwningMethod, opcode); 1043return Status.Fail(methodIL.OwningMethod, ILOpcode.constrained); 1100return Status.Fail(methodIL.OwningMethod, opcode, "Unsupported store"); 1130return Status.Fail(methodIL.OwningMethod, opcode); 1152return Status.Fail(methodIL.OwningMethod, opcode); 1212return Status.Fail(methodIL.OwningMethod, opcode); 1276return Status.Fail(methodIL.OwningMethod, opcode); 1360return Status.Fail(methodIL.OwningMethod, opcode); 1373return Status.Fail(methodIL.OwningMethod, opcode); 1386return Status.Fail(methodIL.OwningMethod, opcode); 1393return Status.Fail(methodIL.OwningMethod, opcode); 1397return Status.Fail(methodIL.OwningMethod, opcode); 1419return Status.Fail(methodIL.OwningMethod, opcode); 1439return Status.Fail(methodIL.OwningMethod, opcode); 1465return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1469return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1491return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1495return Status.Fail(methodIL.OwningMethod, opcode, "Overflow"); 1517return Status.Fail(methodIL.OwningMethod, opcode, "Division by zero"); 1559return Status.Fail(methodIL.OwningMethod, "Byref math with unsupported byref"); 1563return Status.Fail(methodIL.OwningMethod, "Out of range byref access"); 1569return Status.Fail(methodIL.OwningMethod, opcode); 1583return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1615return Status.Fail(methodIL.OwningMethod, opcode); 1627return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1631return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1669return Status.Fail(methodIL.OwningMethod, opcode); 1681return Status.Fail(methodIL.OwningMethod, opcode, "Out of range access"); 1687return Status.Fail(methodIL.OwningMethod, opcode, "Null array"); 1691return Status.Fail(methodIL.OwningMethod, opcode, "Foreign array"); 1707return Status.Fail(methodIL.OwningMethod, opcode); 1710return Status.Fail(methodIL.OwningMethod, opcode, "Align8"); 1716return Status.Fail(methodIL.OwningMethod, opcode); 1773return Status.Fail(methodIL.OwningMethod, "Ldind from unsupported byref"); 1814return Status.Fail(methodIL.OwningMethod, "Stind into usupported byref"); 1817return Status.Fail(methodIL.OwningMethod, "Byref doesn't support storing value"); 1838return Status.Fail(methodIL.OwningMethod, opcode); 1843return Status.Fail(methodIL.OwningMethod, "initblk of unsupported byref"); 1847return Status.Fail(methodIL.OwningMethod, opcode); 1854return Status.Fail(methodIL.OwningMethod, opcode); 1859return Status.Fail(methodIL.OwningMethod, "Control fell through"); 3732public static Status Success => default; 3741public static Status Fail(MethodDesc method, ILOpcode opcode, string detail = null) 3746public static Status Fail(MethodDesc method, string detail)