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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 enum class DeoptimizeReason : uint8_t { | 83 enum class DeoptimizeReason : uint8_t { |
84 #define DEOPTIMIZE_REASON(Name, message) k##Name, | 84 #define DEOPTIMIZE_REASON(Name, message) k##Name, |
85 DEOPTIMIZE_REASON_LIST(DEOPTIMIZE_REASON) | 85 DEOPTIMIZE_REASON_LIST(DEOPTIMIZE_REASON) |
86 #undef DEOPTIMIZE_REASON | 86 #undef DEOPTIMIZE_REASON |
87 }; | 87 }; |
88 | 88 |
89 std::ostream& operator<<(std::ostream&, DeoptimizeReason); | 89 std::ostream& operator<<(std::ostream&, DeoptimizeReason); |
90 | 90 |
91 size_t hash_value(DeoptimizeReason reason); | 91 size_t hash_value(DeoptimizeReason reason); |
92 | 92 |
93 char const* const DeoptimizeReasonToString(DeoptimizeReason reason); | 93 char const* DeoptimizeReasonToString(DeoptimizeReason reason); |
94 | 94 |
95 } // namespace internal | 95 } // namespace internal |
96 } // namespace v8 | 96 } // namespace v8 |
97 | 97 |
98 #endif // V8_DEOPTIMIZE_REASON_H_ | 98 #endif // V8_DEOPTIMIZE_REASON_H_ |
OLD | NEW |