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