| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_BAILOUT_REASON_H_ | 5 #ifndef V8_BAILOUT_REASON_H_ |
| 6 #define V8_BAILOUT_REASON_H_ | 6 #define V8_BAILOUT_REASON_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 V(kInliningBailedOut, "Inlining bailed out") \ | 97 V(kInliningBailedOut, "Inlining bailed out") \ |
| 98 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ | 98 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ |
| 99 "Input GPR is expected to have upper32 cleared") \ | 99 "Input GPR is expected to have upper32 cleared") \ |
| 100 V(kInputStringTooLong, "Input string too long") \ | 100 V(kInputStringTooLong, "Input string too long") \ |
| 101 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \ | 101 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \ |
| 102 "Integer32ToSmiField writing to non-smi location") \ | 102 "Integer32ToSmiField writing to non-smi location") \ |
| 103 V(kInvalidBytecode, "Invalid bytecode") \ | 103 V(kInvalidBytecode, "Invalid bytecode") \ |
| 104 V(kInvalidCaptureReferenced, "Invalid capture referenced") \ | 104 V(kInvalidCaptureReferenced, "Invalid capture referenced") \ |
| 105 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \ | 105 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \ |
| 106 "Invalid ElementsKind for InternalArray or InternalPackedArray") \ | 106 "Invalid ElementsKind for InternalArray or InternalPackedArray") \ |
| 107 V(kInvalidFrameForFastNewRestArgumentsStub, \ |
| 108 "Invalid frame for FastNewRestArgumentsStub") \ |
| 109 V(kInvalidFrameForFastNewSloppyArgumentsStub, \ |
| 110 "Invalid frame for FastNewSloppyArgumentsStub") \ |
| 111 V(kInvalidFrameForFastNewStrictArgumentsStub, \ |
| 112 "Invalid frame for FastNewStrictArgumentsStub") \ |
| 107 V(kInvalidFullCodegenState, "invalid full-codegen state") \ | 113 V(kInvalidFullCodegenState, "invalid full-codegen state") \ |
| 108 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ | 114 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ |
| 109 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ | 115 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ |
| 110 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ | 116 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ |
| 111 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ | 117 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ |
| 112 V(kInvalidMinLength, "Invalid min_length") \ | 118 V(kInvalidMinLength, "Invalid min_length") \ |
| 113 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \ | 119 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \ |
| 114 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ | 120 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ |
| 115 "JSGlobalObject::native_context should be a native context") \ | 121 "JSGlobalObject::native_context should be a native context") \ |
| 116 V(kJSGlobalProxyContextShouldNotBeNull, \ | 122 V(kJSGlobalProxyContextShouldNotBeNull, \ |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 }; | 285 }; |
| 280 #undef ERROR_MESSAGES_CONSTANTS | 286 #undef ERROR_MESSAGES_CONSTANTS |
| 281 | 287 |
| 282 | 288 |
| 283 const char* GetBailoutReason(BailoutReason reason); | 289 const char* GetBailoutReason(BailoutReason reason); |
| 284 | 290 |
| 285 } // namespace internal | 291 } // namespace internal |
| 286 } // namespace v8 | 292 } // namespace v8 |
| 287 | 293 |
| 288 #endif // V8_BAILOUT_REASON_H_ | 294 #endif // V8_BAILOUT_REASON_H_ |
| OLD | NEW |