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(UninitializedBoilerplateInFastClone, \ | |
72 "Uninitialized boilerplate in fast clone") \ | |
73 V(UninitializedBoilerplateLiterals, "Uninitialized boilerplate literals") \ | 71 V(UninitializedBoilerplateLiterals, "Uninitialized boilerplate literals") \ |
74 V(UnknownMapInPolymorphicAccess, "Unknown map in polymorphic access") \ | 72 V(UnknownMapInPolymorphicAccess, "Unknown map in polymorphic access") \ |
75 V(UnknownMapInPolymorphicCall, "Unknown map in polymorphic call") \ | 73 V(UnknownMapInPolymorphicCall, "Unknown map in polymorphic call") \ |
76 V(UnknownMapInPolymorphicElementAccess, \ | 74 V(UnknownMapInPolymorphicElementAccess, \ |
77 "Unknown map in polymorphic element access") \ | 75 "Unknown map in polymorphic element access") \ |
78 V(UnknownMap, "Unknown map") \ | 76 V(UnknownMap, "Unknown map") \ |
79 V(ValueMismatch, "value mismatch") \ | 77 V(ValueMismatch, "value mismatch") \ |
80 V(WrongInstanceType, "wrong instance type") \ | 78 V(WrongInstanceType, "wrong instance type") \ |
81 V(WrongMap, "wrong map") \ | 79 V(WrongMap, "wrong map") \ |
82 V(UndefinedOrNullInForIn, "null or undefined in for-in") \ | 80 V(UndefinedOrNullInForIn, "null or undefined in for-in") \ |
83 V(UndefinedOrNullInToObject, "null or undefined in ToObject") | 81 V(UndefinedOrNullInToObject, "null or undefined in ToObject") |
84 | 82 |
85 enum class DeoptimizeReason : uint8_t { | 83 enum class DeoptimizeReason : uint8_t { |
86 #define DEOPTIMIZE_REASON(Name, message) k##Name, | 84 #define DEOPTIMIZE_REASON(Name, message) k##Name, |
87 DEOPTIMIZE_REASON_LIST(DEOPTIMIZE_REASON) | 85 DEOPTIMIZE_REASON_LIST(DEOPTIMIZE_REASON) |
88 #undef DEOPTIMIZE_REASON | 86 #undef DEOPTIMIZE_REASON |
89 }; | 87 }; |
90 | 88 |
91 std::ostream& operator<<(std::ostream&, DeoptimizeReason); | 89 std::ostream& operator<<(std::ostream&, DeoptimizeReason); |
92 | 90 |
93 size_t hash_value(DeoptimizeReason reason); | 91 size_t hash_value(DeoptimizeReason reason); |
94 | 92 |
95 char const* const DeoptimizeReasonToString(DeoptimizeReason reason); | 93 char const* const DeoptimizeReasonToString(DeoptimizeReason reason); |
96 | 94 |
97 } // namespace internal | 95 } // namespace internal |
98 } // namespace v8 | 96 } // namespace v8 |
99 | 97 |
100 #endif // V8_DEOPTIMIZE_REASON_H_ | 98 #endif // V8_DEOPTIMIZE_REASON_H_ |
OLD | NEW |