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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | 325 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ |
326 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | 326 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
327 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | 327 V(kWeShouldNotHaveAnEmptyLexicalContext, \ |
328 "We should not have an empty lexical context") \ | 328 "We should not have an empty lexical context") \ |
329 V(kWithStatement, "WithStatement") \ | 329 V(kWithStatement, "WithStatement") \ |
330 V(kWrongFunctionContext, "Wrong context passed to function") \ | 330 V(kWrongFunctionContext, "Wrong context passed to function") \ |
331 V(kWrongAddressOrValuePassedToRecordWrite, \ | 331 V(kWrongAddressOrValuePassedToRecordWrite, \ |
332 "Wrong address or value passed to RecordWrite") \ | 332 "Wrong address or value passed to RecordWrite") \ |
333 V(kShouldNotDirectlyEnterOsrFunction, \ | 333 V(kShouldNotDirectlyEnterOsrFunction, \ |
334 "Should not directly enter OSR-compiled function") \ | 334 "Should not directly enter OSR-compiled function") \ |
| 335 V(kOsrCompileFailed, "OSR compilation failed") \ |
335 V(kYield, "Yield") | 336 V(kYield, "Yield") |
336 | 337 |
337 | 338 |
338 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | 339 #define ERROR_MESSAGES_CONSTANTS(C, T) C, |
339 enum BailoutReason { | 340 enum BailoutReason { |
340 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 341 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
341 }; | 342 }; |
342 #undef ERROR_MESSAGES_CONSTANTS | 343 #undef ERROR_MESSAGES_CONSTANTS |
343 | 344 |
344 | 345 |
345 const char* GetBailoutReason(BailoutReason reason); | 346 const char* GetBailoutReason(BailoutReason reason); |
346 } | 347 } |
347 } // namespace v8::internal | 348 } // namespace v8::internal |
348 | 349 |
349 #endif // V8_BAILOUT_REASON_H_ | 350 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |