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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 V(kUnsupportedPhiUseOfConstVariable, \ | 315 V(kUnsupportedPhiUseOfConstVariable, \ |
316 "Unsupported phi use of const variable") \ | 316 "Unsupported phi use of const variable") \ |
317 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | 317 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ |
318 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | 318 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
319 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | 319 V(kWeShouldNotHaveAnEmptyLexicalContext, \ |
320 "We should not have an empty lexical context") \ | 320 "We should not have an empty lexical context") \ |
321 V(kWithStatement, "WithStatement") \ | 321 V(kWithStatement, "WithStatement") \ |
322 V(kWrongFunctionContext, "Wrong context passed to function") \ | 322 V(kWrongFunctionContext, "Wrong context passed to function") \ |
323 V(kWrongAddressOrValuePassedToRecordWrite, \ | 323 V(kWrongAddressOrValuePassedToRecordWrite, \ |
324 "Wrong address or value passed to RecordWrite") \ | 324 "Wrong address or value passed to RecordWrite") \ |
| 325 V(kShouldNotDirectlyEnterOsrFunction, \ |
| 326 "Should not directly enter OSR-compiled function") \ |
325 V(kYield, "Yield") | 327 V(kYield, "Yield") |
326 | 328 |
327 | 329 |
328 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | 330 #define ERROR_MESSAGES_CONSTANTS(C, T) C, |
329 enum BailoutReason { | 331 enum BailoutReason { |
330 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 332 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
331 }; | 333 }; |
332 #undef ERROR_MESSAGES_CONSTANTS | 334 #undef ERROR_MESSAGES_CONSTANTS |
333 | 335 |
334 | 336 |
335 const char* GetBailoutReason(BailoutReason reason); | 337 const char* GetBailoutReason(BailoutReason reason); |
336 } | 338 } |
337 } // namespace v8::internal | 339 } // namespace v8::internal |
338 | 340 |
339 #endif // V8_BAILOUT_REASON_H_ | 341 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |