OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_COMPILER_TYPE_HINTS_H_ | 5 #ifndef V8_COMPILER_TYPE_HINTS_H_ |
6 #define V8_COMPILER_TYPE_HINTS_H_ | 6 #define V8_COMPILER_TYPE_HINTS_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/utils.h" | 9 #include "src/utils.h" |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 std::ostream& operator<<(std::ostream&, BinaryOperationHints::Hint); | 57 std::ostream& operator<<(std::ostream&, BinaryOperationHints::Hint); |
58 std::ostream& operator<<(std::ostream&, BinaryOperationHints); | 58 std::ostream& operator<<(std::ostream&, BinaryOperationHints); |
59 | 59 |
60 // Type hints for an binary operation. | 60 // Type hints for an binary operation. |
61 class CompareOperationHints final { | 61 class CompareOperationHints final { |
62 public: | 62 public: |
63 enum Hint { | 63 enum Hint { |
64 kNone, | 64 kNone, |
65 kBoolean, | 65 kBoolean, |
66 kSignedSmall, | 66 kSignedSmall, |
| 67 kNumber, |
67 kNumberOrOddball, | 68 kNumberOrOddball, |
68 kString, | 69 kString, |
69 kInternalizedString, | 70 kInternalizedString, |
70 kUniqueName, | 71 kUniqueName, |
71 kReceiver, | 72 kReceiver, |
72 kAny | 73 kAny |
73 }; | 74 }; |
74 | 75 |
75 CompareOperationHints() : CompareOperationHints(kNone, kNone, kNone) {} | 76 CompareOperationHints() : CompareOperationHints(kNone, kNone, kNone) {} |
76 CompareOperationHints(Hint left, Hint right, Hint combined) | 77 CompareOperationHints(Hint left, Hint right, Hint combined) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 130 |
130 std::ostream& operator<<(std::ostream&, ToBooleanHints); | 131 std::ostream& operator<<(std::ostream&, ToBooleanHints); |
131 | 132 |
132 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints) | 133 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints) |
133 | 134 |
134 } // namespace compiler | 135 } // namespace compiler |
135 } // namespace internal | 136 } // namespace internal |
136 } // namespace v8 | 137 } // namespace v8 |
137 | 138 |
138 #endif // V8_COMPILER_TYPE_HINTS_H_ | 139 #endif // V8_COMPILER_TYPE_HINTS_H_ |
OLD | NEW |