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 |
11 // TODO(svenpanne) introduce an AbortReason and partition this list | 11 // TODO(svenpanne) introduce an AbortReason and partition this list |
12 #define ERROR_MESSAGES_LIST(V) \ | 12 #define ERROR_MESSAGES_LIST(V) \ |
13 V(kNoReason, "no reason") \ | 13 V(kNoReason, "no reason") \ |
14 \ | 14 \ |
15 V(k32BitValueInRegisterIsNotZeroExtended, \ | 15 V(k32BitValueInRegisterIsNotZeroExtended, \ |
16 "32 bit value in register is not zero-extended") \ | 16 "32 bit value in register is not zero-extended") \ |
17 V(kAllocatingNonEmptyPackedArray, "Allocating non-empty packed array") \ | 17 V(kAllocatingNonEmptyPackedArray, "Allocating non-empty packed array") \ |
18 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ | 18 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ |
19 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ | 19 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ |
20 V(kArgumentsObjectValueInATestContext, \ | 20 V(kArgumentsObjectValueInATestContext, \ |
21 "Arguments object value in a test context") \ | 21 "Arguments object value in a test context") \ |
22 V(kArrayIndexConstantValueTooBig, "Array index constant value too big") \ | 22 V(kArrayIndexConstantValueTooBig, "Array index constant value too big") \ |
23 V(kAssignmentToArguments, "Assignment to arguments") \ | |
24 V(kAssignmentToLetVariableBeforeInitialization, \ | 23 V(kAssignmentToLetVariableBeforeInitialization, \ |
25 "Assignment to let variable before initialization") \ | 24 "Assignment to let variable before initialization") \ |
26 V(kAssignmentToLOOKUPVariable, "Assignment to LOOKUP variable") \ | 25 V(kAssignmentToLOOKUPVariable, "Assignment to LOOKUP variable") \ |
27 V(kAssignmentToParameterFunctionUsesArgumentsObject, \ | 26 V(kAssignmentToParameterFunctionUsesArgumentsObject, \ |
28 "Assignment to parameter, function uses arguments object") \ | 27 "Assignment to parameter, function uses arguments object") \ |
29 V(kAssignmentToParameterInArgumentsObject, \ | 28 V(kAssignmentToParameterInArgumentsObject, \ |
30 "Assignment to parameter in arguments object") \ | 29 "Assignment to parameter in arguments object") \ |
31 V(kBadValueContextForArgumentsObjectValue, \ | 30 V(kBadValueContextForArgumentsObjectValue, \ |
32 "Bad value context for arguments object value") \ | 31 "Bad value context for arguments object value") \ |
33 V(kBadValueContextForArgumentsValue, \ | 32 V(kBadValueContextForArgumentsValue, \ |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 }; | 272 }; |
274 #undef ERROR_MESSAGES_CONSTANTS | 273 #undef ERROR_MESSAGES_CONSTANTS |
275 | 274 |
276 | 275 |
277 const char* GetBailoutReason(BailoutReason reason); | 276 const char* GetBailoutReason(BailoutReason reason); |
278 | 277 |
279 } // namespace internal | 278 } // namespace internal |
280 } // namespace v8 | 279 } // namespace v8 |
281 | 280 |
282 #endif // V8_BAILOUT_REASON_H_ | 281 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |