| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 V(kReferenceToUninitializedVariable, "Reference to uninitialized variable") \ | 178 V(kReferenceToUninitializedVariable, "Reference to uninitialized variable") \ |
| 179 V(kRegisterDidNotMatchExpectedRoot, "Register did not match expected root") \ | 179 V(kRegisterDidNotMatchExpectedRoot, "Register did not match expected root") \ |
| 180 V(kRegisterWasClobbered, "Register was clobbered") \ | 180 V(kRegisterWasClobbered, "Register was clobbered") \ |
| 181 V(kRememberedSetPointerInNewSpace, "Remembered set pointer is in new space") \ | 181 V(kRememberedSetPointerInNewSpace, "Remembered set pointer is in new space") \ |
| 182 V(kRestParameter, "Rest parameters") \ | 182 V(kRestParameter, "Rest parameters") \ |
| 183 V(kReturnAddressNotFoundInFrame, "Return address not found in frame") \ | 183 V(kReturnAddressNotFoundInFrame, "Return address not found in frame") \ |
| 184 V(kSloppyFunctionExpectsJSReceiverReceiver, \ | 184 V(kSloppyFunctionExpectsJSReceiverReceiver, \ |
| 185 "Sloppy function expects JSReceiver as receiver.") \ | 185 "Sloppy function expects JSReceiver as receiver.") \ |
| 186 V(kSmiAdditionOverflow, "Smi addition overflow") \ | 186 V(kSmiAdditionOverflow, "Smi addition overflow") \ |
| 187 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ | 187 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ |
| 188 V(kSpreadCall, "Call with spread argument") \ |
| 188 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \ | 189 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \ |
| 189 V(kStackFrameTypesMustMatch, "Stack frame types must match") \ | 190 V(kStackFrameTypesMustMatch, "Stack frame types must match") \ |
| 190 V(kSuperReference, "Super reference") \ | 191 V(kSuperReference, "Super reference") \ |
| 191 V(kTailCall, "Tail call") \ | 192 V(kTailCall, "Tail call") \ |
| 192 V(kTheCurrentStackPointerIsBelowCsp, \ | 193 V(kTheCurrentStackPointerIsBelowCsp, \ |
| 193 "The current stack pointer is below csp") \ | 194 "The current stack pointer is below csp") \ |
| 194 V(kTheStackWasCorruptedByMacroAssemblerCall, \ | 195 V(kTheStackWasCorruptedByMacroAssemblerCall, \ |
| 195 "The stack was corrupted by MacroAssembler::Call()") \ | 196 "The stack was corrupted by MacroAssembler::Call()") \ |
| 196 V(kTooManyParametersLocals, "Too many parameters/locals") \ | 197 V(kTooManyParametersLocals, "Too many parameters/locals") \ |
| 197 V(kTooManyParameters, "Too many parameters") \ | 198 V(kTooManyParameters, "Too many parameters") \ |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 }; | 273 }; |
| 273 #undef ERROR_MESSAGES_CONSTANTS | 274 #undef ERROR_MESSAGES_CONSTANTS |
| 274 | 275 |
| 275 | 276 |
| 276 const char* GetBailoutReason(BailoutReason reason); | 277 const char* GetBailoutReason(BailoutReason reason); |
| 277 | 278 |
| 278 } // namespace internal | 279 } // namespace internal |
| 279 } // namespace v8 | 280 } // namespace v8 |
| 280 | 281 |
| 281 #endif // V8_BAILOUT_REASON_H_ | 282 #endif // V8_BAILOUT_REASON_H_ |
| OLD | NEW |