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/type-hints.h" | 5 #include "src/type-hints.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) { | 10 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) { |
(...skipping 22 matching lines...) Expand all Loading... |
33 case CompareOperationHint::kSignedSmall: | 33 case CompareOperationHint::kSignedSmall: |
34 return os << "SignedSmall"; | 34 return os << "SignedSmall"; |
35 case CompareOperationHint::kNumber: | 35 case CompareOperationHint::kNumber: |
36 return os << "Number"; | 36 return os << "Number"; |
37 case CompareOperationHint::kNumberOrOddball: | 37 case CompareOperationHint::kNumberOrOddball: |
38 return os << "NumberOrOddball"; | 38 return os << "NumberOrOddball"; |
39 case CompareOperationHint::kInternalizedString: | 39 case CompareOperationHint::kInternalizedString: |
40 return os << "InternalizedString"; | 40 return os << "InternalizedString"; |
41 case CompareOperationHint::kString: | 41 case CompareOperationHint::kString: |
42 return os << "String"; | 42 return os << "String"; |
| 43 case CompareOperationHint::kSymbol: |
| 44 return os << "Symbol"; |
43 case CompareOperationHint::kReceiver: | 45 case CompareOperationHint::kReceiver: |
44 return os << "Receiver"; | 46 return os << "Receiver"; |
45 case CompareOperationHint::kAny: | 47 case CompareOperationHint::kAny: |
46 return os << "Any"; | 48 return os << "Any"; |
47 } | 49 } |
48 UNREACHABLE(); | 50 UNREACHABLE(); |
49 return os; | 51 return os; |
50 } | 52 } |
51 | 53 |
52 std::ostream& operator<<(std::ostream& os, ToBooleanHint hint) { | 54 std::ostream& operator<<(std::ostream& os, ToBooleanHint hint) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 return os << "ConvertRight"; | 156 return os << "ConvertRight"; |
155 case STRING_ADD_CONVERT: | 157 case STRING_ADD_CONVERT: |
156 break; | 158 break; |
157 } | 159 } |
158 UNREACHABLE(); | 160 UNREACHABLE(); |
159 return os; | 161 return os; |
160 } | 162 } |
161 | 163 |
162 } // namespace internal | 164 } // namespace internal |
163 } // namespace v8 | 165 } // namespace v8 |
OLD | NEW |