| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_BASE_FLAGS_H_ | 5 #ifndef V8_BASE_FLAGS_H_ |
| 6 #define V8_BASE_FLAGS_H_ | 6 #define V8_BASE_FLAGS_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 | 9 |
| 10 #include "src/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 inline Type operator|(Type::flag_type lhs, const Type& rhs) { \ | 101 inline Type operator|(Type::flag_type lhs, const Type& rhs) { \ |
| 102 return rhs | lhs; \ | 102 return rhs | lhs; \ |
| 103 } \ | 103 } \ |
| 104 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) \ | 104 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) \ |
| 105 ALLOW_UNUSED_TYPE; \ | 105 ALLOW_UNUSED_TYPE; \ |
| 106 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) {} \ | 106 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) {} \ |
| 107 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) \ | 107 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) \ |
| 108 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \ | 108 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \ |
| 109 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) { \ | 109 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) { \ |
| 110 return Type(lhs) ^ rhs; \ | 110 return Type(lhs) ^ rhs; \ |
| 111 } inline Type operator^(Type::flag_type lhs, const Type& rhs) \ | 111 } inline Type \ |
| 112 operator^(Type::flag_type lhs, const Type& rhs) \ |
| 112 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \ | 113 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \ |
| 113 inline Type operator^(Type::flag_type lhs, const Type& rhs) { \ | 114 inline Type operator^(Type::flag_type lhs, const Type& rhs) { \ |
| 114 return rhs ^ lhs; \ | 115 return rhs ^ lhs; \ |
| 115 } inline void operator^(Type::flag_type lhs, Type::mask_type rhs) \ | 116 } inline void \ |
| 116 ALLOW_UNUSED_TYPE; \ | 117 operator^(Type::flag_type lhs, Type::mask_type rhs) ALLOW_UNUSED_TYPE; \ |
| 117 inline void operator^(Type::flag_type lhs, Type::mask_type rhs) {} | 118 inline void operator^(Type::flag_type lhs, Type::mask_type rhs) { \ |
| 119 } inline Type \ |
| 120 operator~(Type::flag_type val)ALLOW_UNUSED_TYPE; \ |
| 121 inline Type operator~(Type::flag_type val) { return ~Type(val); } |
| 118 | 122 |
| 119 } // namespace base | 123 } // namespace base |
| 120 } // namespace v8 | 124 } // namespace v8 |
| 121 | 125 |
| 122 #endif // V8_BASE_FLAGS_H_ | 126 #endif // V8_BASE_FLAGS_H_ |
| OLD | NEW |