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