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 #include "src/compiler/type-hints.h" | 5 #include "src/compiler/type-hints.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 namespace compiler { | 9 namespace compiler { |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 std::ostream& operator<<(std::ostream& os, CompareOperationHints::Hint hint) { | 34 std::ostream& operator<<(std::ostream& os, CompareOperationHints::Hint hint) { |
35 switch (hint) { | 35 switch (hint) { |
36 case CompareOperationHints::kNone: | 36 case CompareOperationHints::kNone: |
37 return os << "None"; | 37 return os << "None"; |
38 case CompareOperationHints::kBoolean: | 38 case CompareOperationHints::kBoolean: |
39 return os << "Boolean"; | 39 return os << "Boolean"; |
40 case CompareOperationHints::kSignedSmall: | 40 case CompareOperationHints::kSignedSmall: |
41 return os << "SignedSmall"; | 41 return os << "SignedSmall"; |
| 42 case CompareOperationHints::kNumber: |
| 43 return os << "Number"; |
42 case CompareOperationHints::kNumberOrOddball: | 44 case CompareOperationHints::kNumberOrOddball: |
43 return os << "NumberOrOddball"; | 45 return os << "NumberOrOddball"; |
44 case CompareOperationHints::kString: | 46 case CompareOperationHints::kString: |
45 return os << "String"; | 47 return os << "String"; |
46 case CompareOperationHints::kInternalizedString: | 48 case CompareOperationHints::kInternalizedString: |
47 return os << "InternalizedString"; | 49 return os << "InternalizedString"; |
48 case CompareOperationHints::kUniqueName: | 50 case CompareOperationHints::kUniqueName: |
49 return os << "UniqueName"; | 51 return os << "UniqueName"; |
50 case CompareOperationHints::kReceiver: | 52 case CompareOperationHints::kReceiver: |
51 return os << "Receiver"; | 53 return os << "Receiver"; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // static | 131 // static |
130 BinaryOperationHints::Hint BinaryOperationHints::Combine(Hint h1, Hint h2) { | 132 BinaryOperationHints::Hint BinaryOperationHints::Combine(Hint h1, Hint h2) { |
131 if (Is(h1, h2)) return h2; | 133 if (Is(h1, h2)) return h2; |
132 if (Is(h2, h1)) return h1; | 134 if (Is(h2, h1)) return h1; |
133 return kAny; | 135 return kAny; |
134 } | 136 } |
135 | 137 |
136 } // namespace compiler | 138 } // namespace compiler |
137 } // namespace internal | 139 } // namespace internal |
138 } // namespace v8 | 140 } // namespace v8 |
OLD | NEW |