| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 "Unexpected type for RegExp data, FixedArray expected") \ | 243 "Unexpected type for RegExp data, FixedArray expected") \ |
| 244 V(kUnexpectedValue, "Unexpected value") \ | 244 V(kUnexpectedValue, "Unexpected value") \ |
| 245 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ | 245 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ |
| 246 V(kUnsupportedLookupSlotInDeclaration, \ | 246 V(kUnsupportedLookupSlotInDeclaration, \ |
| 247 "Unsupported lookup slot in declaration") \ | 247 "Unsupported lookup slot in declaration") \ |
| 248 V(kUnsupportedModuleOperation, "Unsupported module operation") \ | 248 V(kUnsupportedModuleOperation, "Unsupported module operation") \ |
| 249 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ | 249 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ |
| 250 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ | 250 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ |
| 251 V(kUnsupportedPhiUseOfConstVariable, \ | 251 V(kUnsupportedPhiUseOfConstVariable, \ |
| 252 "Unsupported phi use of const or let variable") \ | 252 "Unsupported phi use of const or let variable") \ |
| 253 V(kUnexpectedReturnFromFrameDropper, \ |
| 254 "Unexpectedly returned from dropping frames") \ |
| 253 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ | 255 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ |
| 254 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ | 256 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ |
| 255 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | 257 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ |
| 256 V(kUnstableConstantTypeHeapObject, "Unstable constant-type heap object") \ | 258 V(kUnstableConstantTypeHeapObject, "Unstable constant-type heap object") \ |
| 257 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | 259 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
| 258 V(kWithStatement, "WithStatement") \ | 260 V(kWithStatement, "WithStatement") \ |
| 259 V(kWrongFunctionContext, "Wrong context passed to function") \ | 261 V(kWrongFunctionContext, "Wrong context passed to function") \ |
| 260 V(kWrongAddressOrValuePassedToRecordWrite, \ | 262 V(kWrongAddressOrValuePassedToRecordWrite, \ |
| 261 "Wrong address or value passed to RecordWrite") \ | 263 "Wrong address or value passed to RecordWrite") \ |
| 262 V(kWrongArgumentCountForInvokeIntrinsic, \ | 264 V(kWrongArgumentCountForInvokeIntrinsic, \ |
| 263 "Wrong number of arguments for intrinsic") \ | 265 "Wrong number of arguments for intrinsic") \ |
| 264 V(kShouldNotDirectlyEnterOsrFunction, \ | 266 V(kShouldNotDirectlyEnterOsrFunction, \ |
| 265 "Should not directly enter OSR-compiled function") \ | 267 "Should not directly enter OSR-compiled function") \ |
| 266 V(kUnexpectedReturnFromWasmTrap, \ | 268 V(kUnexpectedReturnFromWasmTrap, \ |
| 267 "Should not return after throwing a wasm trap") | 269 "Should not return after throwing a wasm trap") |
| 268 | 270 |
| 269 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | 271 #define ERROR_MESSAGES_CONSTANTS(C, T) C, |
| 270 enum BailoutReason { | 272 enum BailoutReason { |
| 271 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 273 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
| 272 }; | 274 }; |
| 273 #undef ERROR_MESSAGES_CONSTANTS | 275 #undef ERROR_MESSAGES_CONSTANTS |
| 274 | 276 |
| 275 | 277 |
| 276 const char* GetBailoutReason(BailoutReason reason); | 278 const char* GetBailoutReason(BailoutReason reason); |
| 277 | 279 |
| 278 } // namespace internal | 280 } // namespace internal |
| 279 } // namespace v8 | 281 } // namespace v8 |
| 280 | 282 |
| 281 #endif // V8_BAILOUT_REASON_H_ | 283 #endif // V8_BAILOUT_REASON_H_ |
| OLD | NEW |