OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_DEOPTIMIZE_REASON_H_ | 5 #ifndef V8_DEOPTIMIZE_REASON_H_ |
6 #define V8_DEOPTIMIZE_REASON_H_ | 6 #define V8_DEOPTIMIZE_REASON_H_ |
7 | 7 |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 V(TooManyArguments, "too many arguments") \ | 61 V(TooManyArguments, "too many arguments") \ |
62 V(TracingElementsTransitions, "Tracing elements transitions") \ | 62 V(TracingElementsTransitions, "Tracing elements transitions") \ |
63 V(TypeMismatchBetweenFeedbackAndConstant, \ | 63 V(TypeMismatchBetweenFeedbackAndConstant, \ |
64 "Type mismatch between feedback and constant") \ | 64 "Type mismatch between feedback and constant") \ |
65 V(UnexpectedCellContentsInConstantGlobalStore, \ | 65 V(UnexpectedCellContentsInConstantGlobalStore, \ |
66 "Unexpected cell contents in constant global store") \ | 66 "Unexpected cell contents in constant global store") \ |
67 V(UnexpectedCellContentsInGlobalStore, \ | 67 V(UnexpectedCellContentsInGlobalStore, \ |
68 "Unexpected cell contents in global store") \ | 68 "Unexpected cell contents in global store") \ |
69 V(UnexpectedObject, "unexpected object") \ | 69 V(UnexpectedObject, "unexpected object") \ |
70 V(UnexpectedRHSOfBinaryOperation, "Unexpected RHS of binary operation") \ | 70 V(UnexpectedRHSOfBinaryOperation, "Unexpected RHS of binary operation") \ |
71 V(UninitializedBoilerplateLiterals, "Uninitialized boilerplate literals") \ | |
72 V(UnknownMapInPolymorphicAccess, "Unknown map in polymorphic access") \ | 71 V(UnknownMapInPolymorphicAccess, "Unknown map in polymorphic access") \ |
73 V(UnknownMapInPolymorphicCall, "Unknown map in polymorphic call") \ | 72 V(UnknownMapInPolymorphicCall, "Unknown map in polymorphic call") \ |
74 V(UnknownMapInPolymorphicElementAccess, \ | 73 V(UnknownMapInPolymorphicElementAccess, \ |
75 "Unknown map in polymorphic element access") \ | 74 "Unknown map in polymorphic element access") \ |
76 V(UnknownMap, "Unknown map") \ | 75 V(UnknownMap, "Unknown map") \ |
77 V(ValueMismatch, "value mismatch") \ | 76 V(ValueMismatch, "value mismatch") \ |
78 V(WrongInstanceType, "wrong instance type") \ | 77 V(WrongInstanceType, "wrong instance type") \ |
79 V(WrongMap, "wrong map") \ | 78 V(WrongMap, "wrong map") \ |
80 V(UndefinedOrNullInForIn, "null or undefined in for-in") \ | 79 V(UndefinedOrNullInForIn, "null or undefined in for-in") \ |
81 V(UndefinedOrNullInToObject, "null or undefined in ToObject") | 80 V(UndefinedOrNullInToObject, "null or undefined in ToObject") |
82 | 81 |
83 enum class DeoptimizeReason : uint8_t { | 82 enum class DeoptimizeReason : uint8_t { |
84 #define DEOPTIMIZE_REASON(Name, message) k##Name, | 83 #define DEOPTIMIZE_REASON(Name, message) k##Name, |
85 DEOPTIMIZE_REASON_LIST(DEOPTIMIZE_REASON) | 84 DEOPTIMIZE_REASON_LIST(DEOPTIMIZE_REASON) |
86 #undef DEOPTIMIZE_REASON | 85 #undef DEOPTIMIZE_REASON |
87 }; | 86 }; |
88 | 87 |
89 std::ostream& operator<<(std::ostream&, DeoptimizeReason); | 88 std::ostream& operator<<(std::ostream&, DeoptimizeReason); |
90 | 89 |
91 size_t hash_value(DeoptimizeReason reason); | 90 size_t hash_value(DeoptimizeReason reason); |
92 | 91 |
93 char const* DeoptimizeReasonToString(DeoptimizeReason reason); | 92 char const* DeoptimizeReasonToString(DeoptimizeReason reason); |
94 | 93 |
95 } // namespace internal | 94 } // namespace internal |
96 } // namespace v8 | 95 } // namespace v8 |
97 | 96 |
98 #endif // V8_DEOPTIMIZE_REASON_H_ | 97 #endif // V8_DEOPTIMIZE_REASON_H_ |
OLD | NEW |