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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 "Unexpected initial map for Array function (2)") \ | 224 "Unexpected initial map for Array function (2)") \ |
225 V(kUnexpectedInitialMapForArrayFunction, \ | 225 V(kUnexpectedInitialMapForArrayFunction, \ |
226 "Unexpected initial map for Array function") \ | 226 "Unexpected initial map for Array function") \ |
227 V(kUnexpectedInitialMapForInternalArrayFunction, \ | 227 V(kUnexpectedInitialMapForInternalArrayFunction, \ |
228 "Unexpected initial map for InternalArray function") \ | 228 "Unexpected initial map for InternalArray function") \ |
229 V(kUnexpectedLevelAfterReturnFromApiCall, \ | 229 V(kUnexpectedLevelAfterReturnFromApiCall, \ |
230 "Unexpected level after return from api call") \ | 230 "Unexpected level after return from api call") \ |
231 V(kUnexpectedNegativeValue, "Unexpected negative value") \ | 231 V(kUnexpectedNegativeValue, "Unexpected negative value") \ |
232 V(kUnexpectedNumberOfPreAllocatedPropertyFields, \ | 232 V(kUnexpectedNumberOfPreAllocatedPropertyFields, \ |
233 "Unexpected number of pre-allocated property fields") \ | 233 "Unexpected number of pre-allocated property fields") \ |
| 234 V(kUnexpectedFunctionIDForInvokeIntrinsic, \ |
| 235 "Unexpected runtime function id for the InvokeIntrinsic bytecode") \ |
234 V(kUnexpectedFPCRMode, "Unexpected FPCR mode.") \ | 236 V(kUnexpectedFPCRMode, "Unexpected FPCR mode.") \ |
235 V(kUnexpectedSmi, "Unexpected smi value") \ | 237 V(kUnexpectedSmi, "Unexpected smi value") \ |
236 V(kUnexpectedStackDepth, "Unexpected operand stack depth in full-codegen") \ | 238 V(kUnexpectedStackDepth, "Unexpected operand stack depth in full-codegen") \ |
237 V(kUnexpectedStackPointer, "The stack pointer is not the expected value") \ | 239 V(kUnexpectedStackPointer, "The stack pointer is not the expected value") \ |
238 V(kUnexpectedStringType, "Unexpected string type") \ | 240 V(kUnexpectedStringType, "Unexpected string type") \ |
239 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \ | 241 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \ |
240 "Unexpected type for RegExp data, FixedArray expected") \ | 242 "Unexpected type for RegExp data, FixedArray expected") \ |
241 V(kUnexpectedValue, "Unexpected value") \ | 243 V(kUnexpectedValue, "Unexpected value") \ |
242 V(kUnsupportedConstCompoundAssignment, \ | 244 V(kUnsupportedConstCompoundAssignment, \ |
243 "Unsupported const compound assignment") \ | 245 "Unsupported const compound assignment") \ |
(...skipping 12 matching lines...) Expand all Loading... |
256 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ | 258 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ |
257 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ | 259 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ |
258 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | 260 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ |
259 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | 261 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
260 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | 262 V(kWeShouldNotHaveAnEmptyLexicalContext, \ |
261 "We should not have an empty lexical context") \ | 263 "We should not have an empty lexical context") \ |
262 V(kWithStatement, "WithStatement") \ | 264 V(kWithStatement, "WithStatement") \ |
263 V(kWrongFunctionContext, "Wrong context passed to function") \ | 265 V(kWrongFunctionContext, "Wrong context passed to function") \ |
264 V(kWrongAddressOrValuePassedToRecordWrite, \ | 266 V(kWrongAddressOrValuePassedToRecordWrite, \ |
265 "Wrong address or value passed to RecordWrite") \ | 267 "Wrong address or value passed to RecordWrite") \ |
| 268 V(kWrongArgumentCountForInvokeIntrinsic, \ |
| 269 "Wrong number of arguments for intrinsic") \ |
266 V(kShouldNotDirectlyEnterOsrFunction, \ | 270 V(kShouldNotDirectlyEnterOsrFunction, \ |
267 "Should not directly enter OSR-compiled function") \ | 271 "Should not directly enter OSR-compiled function") \ |
268 V(kYield, "Yield") | 272 V(kYield, "Yield") |
269 | 273 |
270 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | 274 #define ERROR_MESSAGES_CONSTANTS(C, T) C, |
271 enum BailoutReason { | 275 enum BailoutReason { |
272 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 276 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
273 }; | 277 }; |
274 #undef ERROR_MESSAGES_CONSTANTS | 278 #undef ERROR_MESSAGES_CONSTANTS |
275 | 279 |
276 | 280 |
277 const char* GetBailoutReason(BailoutReason reason); | 281 const char* GetBailoutReason(BailoutReason reason); |
278 | 282 |
279 } // namespace internal | 283 } // namespace internal |
280 } // namespace v8 | 284 } // namespace v8 |
281 | 285 |
282 #endif // V8_BAILOUT_REASON_H_ | 286 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |