| 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_TYPE_HINTS_H_ | 5 #ifndef V8_TYPE_HINTS_H_ |
| 6 #define V8_TYPE_HINTS_H_ | 6 #define V8_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 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 std::ostream& operator<<(std::ostream&, BinaryOperationHint); | 28 std::ostream& operator<<(std::ostream&, BinaryOperationHint); |
| 29 | 29 |
| 30 // Type hints for an compare operation. | 30 // Type hints for an compare operation. |
| 31 enum class CompareOperationHint : uint8_t { | 31 enum class CompareOperationHint : uint8_t { |
| 32 kNone, | 32 kNone, |
| 33 kSignedSmall, | 33 kSignedSmall, |
| 34 kNumber, | 34 kNumber, |
| 35 kNumberOrOddball, | 35 kNumberOrOddball, |
| 36 kInternalizedString, |
| 36 kString, | 37 kString, |
| 37 kAny | 38 kAny |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 inline size_t hash_value(CompareOperationHint hint) { | 41 inline size_t hash_value(CompareOperationHint hint) { |
| 41 return static_cast<unsigned>(hint); | 42 return static_cast<unsigned>(hint); |
| 42 } | 43 } |
| 43 | 44 |
| 44 std::ostream& operator<<(std::ostream&, CompareOperationHint); | 45 std::ostream& operator<<(std::ostream&, CompareOperationHint); |
| 45 | 46 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 STRING_ADD_CONVERT_LEFT = STRING_ADD_CHECK_LEFT | STRING_ADD_CONVERT, | 86 STRING_ADD_CONVERT_LEFT = STRING_ADD_CHECK_LEFT | STRING_ADD_CONVERT, |
| 86 STRING_ADD_CONVERT_RIGHT = STRING_ADD_CHECK_RIGHT | STRING_ADD_CONVERT | 87 STRING_ADD_CONVERT_RIGHT = STRING_ADD_CHECK_RIGHT | STRING_ADD_CONVERT |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags); | 90 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags); |
| 90 | 91 |
| 91 } // namespace internal | 92 } // namespace internal |
| 92 } // namespace v8 | 93 } // namespace v8 |
| 93 | 94 |
| 94 #endif // V8_TYPE_HINTS_H_ | 95 #endif // V8_TYPE_HINTS_H_ |
| OLD | NEW |