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 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 #define DEOPTIMIZE_REASON_LIST(V) \ | 13 #define DEOPTIMIZE_REASON_LIST(V) \ |
14 V(AccessCheck, "Access check needed") \ | 14 V(AccessCheck, "Access check needed") \ |
15 V(NoReason, "no reason") \ | 15 V(NoReason, "no reason") \ |
16 V(ConstantGlobalVariableAssignment, "Constant global variable assignment") \ | 16 V(ConstantGlobalVariableAssignment, "Constant global variable assignment") \ |
17 V(ConversionOverflow, "conversion overflow") \ | 17 V(ConversionOverflow, "conversion overflow") \ |
18 V(DivisionByZero, "division by zero") \ | 18 V(DivisionByZero, "division by zero") \ |
19 V(ElementsKindUnhandledInKeyedLoadGenericStub, \ | 19 V(ElementsKindUnhandledInKeyedLoadGenericStub, \ |
20 "ElementsKind unhandled in KeyedLoadGenericStub") \ | 20 "ElementsKind unhandled in KeyedLoadGenericStub") \ |
21 V(ExpectedHeapNumber, "Expected heap number") \ | 21 V(ExpectedHeapNumber, "Expected heap number") \ |
22 V(ExpectedSmi, "Expected smi") \ | 22 V(ExpectedSmi, "Expected smi") \ |
23 V(ForcedDeoptToRuntime, "Forced deopt to runtime") \ | 23 V(ForcedDeoptToRuntime, "Forced deopt to runtime") \ |
24 V(Hole, "hole") \ | 24 V(Hole, "hole") \ |
25 V(InstanceMigrationFailed, "instance migration failed") \ | 25 V(InstanceMigrationFailed, "instance migration failed") \ |
| 26 V(InsufficientTypeFeedbackForCall, "Insufficient type feedback for call") \ |
26 V(InsufficientTypeFeedbackForCallWithArguments, \ | 27 V(InsufficientTypeFeedbackForCallWithArguments, \ |
27 "Insufficient type feedback for call with arguments") \ | 28 "Insufficient type feedback for call with arguments") \ |
28 V(FastPathFailed, "Falling off the fast path") \ | 29 V(FastPathFailed, "Falling off the fast path") \ |
29 V(InsufficientTypeFeedbackForCombinedTypeOfBinaryOperation, \ | 30 V(InsufficientTypeFeedbackForCombinedTypeOfBinaryOperation, \ |
30 "Insufficient type feedback for combined type of binary operation") \ | 31 "Insufficient type feedback for combined type of binary operation") \ |
31 V(InsufficientTypeFeedbackForGenericNamedAccess, \ | 32 V(InsufficientTypeFeedbackForGenericNamedAccess, \ |
32 "Insufficient type feedback for generic named access") \ | 33 "Insufficient type feedback for generic named access") \ |
33 V(InsufficientTypeFeedbackForGenericKeyedAccess, \ | 34 V(InsufficientTypeFeedbackForGenericKeyedAccess, \ |
34 "Insufficient type feedback for generic keyed access") \ | 35 "Insufficient type feedback for generic keyed access") \ |
35 V(InsufficientTypeFeedbackForLHSOfBinaryOperation, \ | 36 V(InsufficientTypeFeedbackForLHSOfBinaryOperation, \ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 std::ostream& operator<<(std::ostream&, DeoptimizeReason); | 89 std::ostream& operator<<(std::ostream&, DeoptimizeReason); |
89 | 90 |
90 size_t hash_value(DeoptimizeReason reason); | 91 size_t hash_value(DeoptimizeReason reason); |
91 | 92 |
92 char const* DeoptimizeReasonToString(DeoptimizeReason reason); | 93 char const* DeoptimizeReasonToString(DeoptimizeReason reason); |
93 | 94 |
94 } // namespace internal | 95 } // namespace internal |
95 } // namespace v8 | 96 } // namespace v8 |
96 | 97 |
97 #endif // V8_DEOPTIMIZE_REASON_H_ | 98 #endif // V8_DEOPTIMIZE_REASON_H_ |
OLD | NEW |