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 #define ERROR_MESSAGES_LIST(V) \ | 11 #define ERROR_MESSAGES_LIST(V) \ |
12 V(kNoReason, "no reason") \ | 12 V(kNoReason, "no reason") \ |
13 \ | 13 \ |
14 V(k32BitValueInRegisterIsNotZeroExtended, \ | 14 V(k32BitValueInRegisterIsNotZeroExtended, \ |
15 "32 bit value in register is not zero-extended") \ | 15 "32 bit value in register is not zero-extended") \ |
16 V(kAlignmentMarkerExpected, "Alignment marker expected") \ | 16 V(kAlignmentMarkerExpected, "Alignment marker expected") \ |
17 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ | 17 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ |
18 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ | 18 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ |
19 V(kArgumentsObjectValueInATestContext, \ | 19 V(kArgumentsObjectValueInATestContext, \ |
20 "Arguments object value in a test context") \ | 20 "Arguments object value in a test context") \ |
21 V(kArrayBoilerplateCreationFailed, "Array boilerplate creation failed") \ | 21 V(kArrayBoilerplateCreationFailed, "Array boilerplate creation failed") \ |
22 V(kArrayIndexConstantValueTooBig, "Array index constant value too big") \ | 22 V(kArrayIndexConstantValueTooBig, "Array index constant value too big") \ |
23 V(kCapturedThis, "Receiver is captured in the context") \ | |
wingo
2015/01/15 10:09:05
Please place in alphabetical order. Tx :)
aperez
2015/01/15 16:58:03
Done.
| |
23 V(kAssignmentToArguments, "Assignment to arguments") \ | 24 V(kAssignmentToArguments, "Assignment to arguments") \ |
24 V(kAssignmentToLetVariableBeforeInitialization, \ | 25 V(kAssignmentToLetVariableBeforeInitialization, \ |
25 "Assignment to let variable before initialization") \ | 26 "Assignment to let variable before initialization") \ |
26 V(kAssignmentToLOOKUPVariable, "Assignment to LOOKUP variable") \ | 27 V(kAssignmentToLOOKUPVariable, "Assignment to LOOKUP variable") \ |
27 V(kAssignmentToParameterFunctionUsesArgumentsObject, \ | 28 V(kAssignmentToParameterFunctionUsesArgumentsObject, \ |
28 "Assignment to parameter, function uses arguments object") \ | 29 "Assignment to parameter, function uses arguments object") \ |
29 V(kAssignmentToParameterInArgumentsObject, \ | 30 V(kAssignmentToParameterInArgumentsObject, \ |
30 "Assignment to parameter in arguments object") \ | 31 "Assignment to parameter in arguments object") \ |
31 V(kAttemptToUseUndefinedCache, "Attempt to use undefined cache") \ | 32 V(kAttemptToUseUndefinedCache, "Attempt to use undefined cache") \ |
32 V(kBadValueContextForArgumentsObjectValue, \ | 33 V(kBadValueContextForArgumentsObjectValue, \ |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
331 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 332 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
332 }; | 333 }; |
333 #undef ERROR_MESSAGES_CONSTANTS | 334 #undef ERROR_MESSAGES_CONSTANTS |
334 | 335 |
335 | 336 |
336 const char* GetBailoutReason(BailoutReason reason); | 337 const char* GetBailoutReason(BailoutReason reason); |
337 } | 338 } |
338 } // namespace v8::internal | 339 } // namespace v8::internal |
339 | 340 |
340 #endif // V8_BAILOUT_REASON_H_ | 341 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |