| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 V(kUnsupportedCountOperationWithConst, \ | 255 V(kUnsupportedCountOperationWithConst, \ |
| 256 "Unsupported count operation with const") \ | 256 "Unsupported count operation with const") \ |
| 257 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ | 257 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ |
| 258 V(kUnsupportedLetCompoundAssignment, "Unsupported let compound assignment") \ | 258 V(kUnsupportedLetCompoundAssignment, "Unsupported let compound assignment") \ |
| 259 V(kUnsupportedLookupSlotInDeclaration, \ | 259 V(kUnsupportedLookupSlotInDeclaration, \ |
| 260 "Unsupported lookup slot in declaration") \ | 260 "Unsupported lookup slot in declaration") \ |
| 261 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ | 261 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ |
| 262 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ | 262 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ |
| 263 V(kUnsupportedPhiUseOfConstVariable, \ | 263 V(kUnsupportedPhiUseOfConstVariable, \ |
| 264 "Unsupported phi use of const or let variable") \ | 264 "Unsupported phi use of const or let variable") \ |
| 265 V(kUnexpectedReturnFromBytecodeHandler, \ |
| 266 "Unexpectedly returned from a bytecode handler") \ |
| 265 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ | 267 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ |
| 266 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ | 268 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ |
| 267 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | 269 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ |
| 268 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | 270 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
| 269 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | 271 V(kWeShouldNotHaveAnEmptyLexicalContext, \ |
| 270 "We should not have an empty lexical context") \ | 272 "We should not have an empty lexical context") \ |
| 271 V(kWithStatement, "WithStatement") \ | 273 V(kWithStatement, "WithStatement") \ |
| 272 V(kWrongFunctionContext, "Wrong context passed to function") \ | 274 V(kWrongFunctionContext, "Wrong context passed to function") \ |
| 273 V(kWrongAddressOrValuePassedToRecordWrite, \ | 275 V(kWrongAddressOrValuePassedToRecordWrite, \ |
| 274 "Wrong address or value passed to RecordWrite") \ | 276 "Wrong address or value passed to RecordWrite") \ |
| 275 V(kWrongArgumentCountForInvokeIntrinsic, \ | 277 V(kWrongArgumentCountForInvokeIntrinsic, \ |
| 276 "Wrong number of arguments for intrinsic") \ | 278 "Wrong number of arguments for intrinsic") \ |
| 277 V(kShouldNotDirectlyEnterOsrFunction, \ | 279 V(kShouldNotDirectlyEnterOsrFunction, \ |
| 278 "Should not directly enter OSR-compiled function") \ | 280 "Should not directly enter OSR-compiled function") \ |
| 279 V(kYield, "Yield") | 281 V(kYield, "Yield") |
| 280 | 282 |
| 281 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | 283 #define ERROR_MESSAGES_CONSTANTS(C, T) C, |
| 282 enum BailoutReason { | 284 enum BailoutReason { |
| 283 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 285 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
| 284 }; | 286 }; |
| 285 #undef ERROR_MESSAGES_CONSTANTS | 287 #undef ERROR_MESSAGES_CONSTANTS |
| 286 | 288 |
| 287 | 289 |
| 288 const char* GetBailoutReason(BailoutReason reason); | 290 const char* GetBailoutReason(BailoutReason reason); |
| 289 | 291 |
| 290 } // namespace internal | 292 } // namespace internal |
| 291 } // namespace v8 | 293 } // namespace v8 |
| 292 | 294 |
| 293 #endif // V8_BAILOUT_REASON_H_ | 295 #endif // V8_BAILOUT_REASON_H_ |
| OLD | NEW |