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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 V(kUnsupportedCountOperationWithConst, \ | 239 V(kUnsupportedCountOperationWithConst, \ |
240 "Unsupported count operation with const") \ | 240 "Unsupported count operation with const") \ |
241 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ | 241 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ |
242 V(kUnsupportedLetCompoundAssignment, "Unsupported let compound assignment") \ | 242 V(kUnsupportedLetCompoundAssignment, "Unsupported let compound assignment") \ |
243 V(kUnsupportedLookupSlotInDeclaration, \ | 243 V(kUnsupportedLookupSlotInDeclaration, \ |
244 "Unsupported lookup slot in declaration") \ | 244 "Unsupported lookup slot in declaration") \ |
245 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ | 245 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ |
246 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ | 246 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ |
247 V(kUnsupportedPhiUseOfConstVariable, \ | 247 V(kUnsupportedPhiUseOfConstVariable, \ |
248 "Unsupported phi use of const variable") \ | 248 "Unsupported phi use of const variable") \ |
| 249 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ |
249 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | 250 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ |
250 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | 251 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
251 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | 252 V(kWeShouldNotHaveAnEmptyLexicalContext, \ |
252 "We should not have an empty lexical context") \ | 253 "We should not have an empty lexical context") \ |
253 V(kWithStatement, "WithStatement") \ | 254 V(kWithStatement, "WithStatement") \ |
254 V(kWrongFunctionContext, "Wrong context passed to function") \ | 255 V(kWrongFunctionContext, "Wrong context passed to function") \ |
255 V(kWrongAddressOrValuePassedToRecordWrite, \ | 256 V(kWrongAddressOrValuePassedToRecordWrite, \ |
256 "Wrong address or value passed to RecordWrite") \ | 257 "Wrong address or value passed to RecordWrite") \ |
257 V(kShouldNotDirectlyEnterOsrFunction, \ | 258 V(kShouldNotDirectlyEnterOsrFunction, \ |
258 "Should not directly enter OSR-compiled function") \ | 259 "Should not directly enter OSR-compiled function") \ |
259 V(kYield, "Yield") | 260 V(kYield, "Yield") |
260 | 261 |
261 | 262 |
262 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | 263 #define ERROR_MESSAGES_CONSTANTS(C, T) C, |
263 enum BailoutReason { | 264 enum BailoutReason { |
264 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 265 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
265 }; | 266 }; |
266 #undef ERROR_MESSAGES_CONSTANTS | 267 #undef ERROR_MESSAGES_CONSTANTS |
267 | 268 |
268 | 269 |
269 const char* GetBailoutReason(BailoutReason reason); | 270 const char* GetBailoutReason(BailoutReason reason); |
270 | 271 |
271 } // namespace internal | 272 } // namespace internal |
272 } // namespace v8 | 273 } // namespace v8 |
273 | 274 |
274 #endif // V8_BAILOUT_REASON_H_ | 275 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |