| 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 #define ERROR_MESSAGES_LIST(V) \ | 12 #define ERROR_MESSAGES_LIST(V) \ |
| 12 V(kNoReason, "no reason") \ | 13 V(kNoReason, "no reason") \ |
| 13 \ | 14 \ |
| 14 V(k32BitValueInRegisterIsNotZeroExtended, \ | 15 V(k32BitValueInRegisterIsNotZeroExtended, \ |
| 15 "32 bit value in register is not zero-extended") \ | 16 "32 bit value in register is not zero-extended") \ |
| 16 V(kAlignmentMarkerExpected, "Alignment marker expected") \ | 17 V(kAlignmentMarkerExpected, "Alignment marker expected") \ |
| 17 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ | 18 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ |
| 18 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ | 19 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ |
| 19 V(kArgumentsObjectValueInATestContext, \ | 20 V(kArgumentsObjectValueInATestContext, \ |
| 20 "Arguments object value in a test context") \ | 21 "Arguments object value in a test context") \ |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 V(kRememberedSetPointerInNewSpace, "Remembered set pointer is in new space") \ | 220 V(kRememberedSetPointerInNewSpace, "Remembered set pointer is in new space") \ |
| 220 V(kReturnAddressNotFoundInFrame, "Return address not found in frame") \ | 221 V(kReturnAddressNotFoundInFrame, "Return address not found in frame") \ |
| 221 V(kRhsHasBeenClobbered, "Rhs has been clobbered") \ | 222 V(kRhsHasBeenClobbered, "Rhs has been clobbered") \ |
| 222 V(kScopedBlock, "ScopedBlock") \ | 223 V(kScopedBlock, "ScopedBlock") \ |
| 223 V(kSmiAdditionOverflow, "Smi addition overflow") \ | 224 V(kSmiAdditionOverflow, "Smi addition overflow") \ |
| 224 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ | 225 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ |
| 225 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \ | 226 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \ |
| 226 V(kStackFrameTypesMustMatch, "Stack frame types must match") \ | 227 V(kStackFrameTypesMustMatch, "Stack frame types must match") \ |
| 227 V(kTheCurrentStackPointerIsBelowCsp, \ | 228 V(kTheCurrentStackPointerIsBelowCsp, \ |
| 228 "The current stack pointer is below csp") \ | 229 "The current stack pointer is below csp") \ |
| 230 V(kTheInstructionShouldBeALis, "The instruction should be a lis") \ |
| 229 V(kTheInstructionShouldBeALui, "The instruction should be a lui") \ | 231 V(kTheInstructionShouldBeALui, "The instruction should be a lui") \ |
| 230 V(kTheInstructionShouldBeAnOri, "The instruction should be an ori") \ | 232 V(kTheInstructionShouldBeAnOri, "The instruction should be an ori") \ |
| 233 V(kTheInstructionShouldBeAnOris, "The instruction should be an oris") \ |
| 234 V(kTheInstructionShouldBeALi, "The instruction should be a li") \ |
| 235 V(kTheInstructionShouldBeASldi, "The instruction should be a sldi") \ |
| 231 V(kTheInstructionToPatchShouldBeALoadFromConstantPool, \ | 236 V(kTheInstructionToPatchShouldBeALoadFromConstantPool, \ |
| 232 "The instruction to patch should be a load from the constant pool") \ | 237 "The instruction to patch should be a load from the constant pool") \ |
| 233 V(kTheInstructionToPatchShouldBeAnLdrLiteral, \ | 238 V(kTheInstructionToPatchShouldBeAnLdrLiteral, \ |
| 234 "The instruction to patch should be a ldr literal") \ | 239 "The instruction to patch should be a ldr literal") \ |
| 240 V(kTheInstructionToPatchShouldBeALis, \ |
| 241 "The instruction to patch should be a lis") \ |
| 235 V(kTheInstructionToPatchShouldBeALui, \ | 242 V(kTheInstructionToPatchShouldBeALui, \ |
| 236 "The instruction to patch should be a lui") \ | 243 "The instruction to patch should be a lui") \ |
| 237 V(kTheInstructionToPatchShouldBeAnOri, \ | 244 V(kTheInstructionToPatchShouldBeAnOri, \ |
| 238 "The instruction to patch should be an ori") \ | 245 "The instruction to patch should be an ori") \ |
| 239 V(kTheSourceAndDestinationAreTheSame, \ | 246 V(kTheSourceAndDestinationAreTheSame, \ |
| 240 "The source and destination are the same") \ | 247 "The source and destination are the same") \ |
| 241 V(kTheStackPointerIsNotAligned, "The stack pointer is not aligned.") \ | 248 V(kTheStackPointerIsNotAligned, "The stack pointer is not aligned.") \ |
| 242 V(kTheStackWasCorruptedByMacroAssemblerCall, \ | 249 V(kTheStackWasCorruptedByMacroAssemblerCall, \ |
| 243 "The stack was corrupted by MacroAssembler::Call()") \ | 250 "The stack was corrupted by MacroAssembler::Call()") \ |
| 244 V(kTooManyParametersLocals, "Too many parameters/locals") \ | 251 V(kTooManyParametersLocals, "Too many parameters/locals") \ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 337 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
| 331 }; | 338 }; |
| 332 #undef ERROR_MESSAGES_CONSTANTS | 339 #undef ERROR_MESSAGES_CONSTANTS |
| 333 | 340 |
| 334 | 341 |
| 335 const char* GetBailoutReason(BailoutReason reason); | 342 const char* GetBailoutReason(BailoutReason reason); |
| 336 } | 343 } |
| 337 } // namespace v8::internal | 344 } // namespace v8::internal |
| 338 | 345 |
| 339 #endif // V8_BAILOUT_REASON_H_ | 346 #endif // V8_BAILOUT_REASON_H_ |
| OLD | NEW |