| 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_TYPE_HINTS_H_ |
| 6 #define V8_COMPILER_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 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 namespace compiler { | |
| 14 | 13 |
| 15 // Type hints for an binary operation. | 14 // Type hints for an binary operation. |
| 16 enum class BinaryOperationHint : uint8_t { | 15 enum class BinaryOperationHint : uint8_t { |
| 17 kNone, | 16 kNone, |
| 18 kSignedSmall, | 17 kSignedSmall, |
| 19 kSigned32, | 18 kSigned32, |
| 20 kNumberOrOddball, | 19 kNumberOrOddball, |
| 21 kString, | 20 kString, |
| 22 kAny | 21 kAny |
| 23 }; | 22 }; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 std::ostream& operator<<(std::ostream&, ToBooleanHint); | 61 std::ostream& operator<<(std::ostream&, ToBooleanHint); |
| 63 | 62 |
| 64 typedef base::Flags<ToBooleanHint, uint16_t> ToBooleanHints; | 63 typedef base::Flags<ToBooleanHint, uint16_t> ToBooleanHints; |
| 65 | 64 |
| 66 std::ostream& operator<<(std::ostream&, ToBooleanHints); | 65 std::ostream& operator<<(std::ostream&, ToBooleanHints); |
| 67 | 66 |
| 68 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints) | 67 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints) |
| 69 | 68 |
| 70 } // namespace compiler | |
| 71 } // namespace internal | 69 } // namespace internal |
| 72 } // namespace v8 | 70 } // namespace v8 |
| 73 | 71 |
| 74 #endif // V8_COMPILER_TYPE_HINTS_H_ | 72 #endif // V8_TYPE_HINTS_H_ |
| OLD | NEW |