| 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/type-hints.h" |
| 6 | 6 |
| 7 namespace v8 { | 7 namespace v8 { |
| 8 namespace internal { | 8 namespace internal { |
| 9 namespace compiler { | |
| 10 | 9 |
| 11 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) { | 10 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) { |
| 12 switch (hint) { | 11 switch (hint) { |
| 13 case BinaryOperationHint::kNone: | 12 case BinaryOperationHint::kNone: |
| 14 return os << "None"; | 13 return os << "None"; |
| 15 case BinaryOperationHint::kSignedSmall: | 14 case BinaryOperationHint::kSignedSmall: |
| 16 return os << "SignedSmall"; | 15 return os << "SignedSmall"; |
| 17 case BinaryOperationHint::kSigned32: | 16 case BinaryOperationHint::kSigned32: |
| 18 return os << "Signed32"; | 17 return os << "Signed32"; |
| 19 case BinaryOperationHint::kNumberOrOddball: | 18 case BinaryOperationHint::kNumberOrOddball: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ToBooleanHint const hint = static_cast<ToBooleanHint>(1u << i); | 80 ToBooleanHint const hint = static_cast<ToBooleanHint>(1u << i); |
| 82 if (hints & hint) { | 81 if (hints & hint) { |
| 83 if (!first) os << "|"; | 82 if (!first) os << "|"; |
| 84 first = false; | 83 first = false; |
| 85 os << hint; | 84 os << hint; |
| 86 } | 85 } |
| 87 } | 86 } |
| 88 return os; | 87 return os; |
| 89 } | 88 } |
| 90 | 89 |
| 91 } // namespace compiler | |
| 92 } // namespace internal | 90 } // namespace internal |
| 93 } // namespace v8 | 91 } // namespace v8 |
| OLD | NEW |