| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Valid hints for the abstract operation ToPrimitive, | 172 // Valid hints for the abstract operation ToPrimitive, |
| 173 // implemented according to ES6, section 7.1.1. | 173 // implemented according to ES6, section 7.1.1. |
| 174 enum class ToPrimitiveHint { kDefault, kNumber, kString }; | 174 enum class ToPrimitiveHint { kDefault, kNumber, kString }; |
| 175 | 175 |
| 176 | 176 |
| 177 // Valid hints for the abstract operation OrdinaryToPrimitive, | 177 // Valid hints for the abstract operation OrdinaryToPrimitive, |
| 178 // implemented according to ES6, section 7.1.1. | 178 // implemented according to ES6, section 7.1.1. |
| 179 enum class OrdinaryToPrimitiveHint { kNumber, kString }; | 179 enum class OrdinaryToPrimitiveHint { kNumber, kString }; |
| 180 | 180 |
| 181 | 181 |
| 182 enum TypeofMode { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; | 182 enum TypeofMode : int { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; |
| 183 | 183 |
| 184 | 184 |
| 185 enum MutableMode { | 185 enum MutableMode { |
| 186 MUTABLE, | 186 MUTABLE, |
| 187 IMMUTABLE | 187 IMMUTABLE |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 | 190 |
| 191 enum ExternalArrayType { | 191 enum ExternalArrayType { |
| 192 kExternalInt8Array = 1, | 192 kExternalInt8Array = 1, |
| (...skipping 10513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10706 } | 10706 } |
| 10707 return value; | 10707 return value; |
| 10708 } | 10708 } |
| 10709 }; | 10709 }; |
| 10710 | 10710 |
| 10711 | 10711 |
| 10712 } // NOLINT, false-positive due to second-order macros. | 10712 } // NOLINT, false-positive due to second-order macros. |
| 10713 } // NOLINT, false-positive due to second-order macros. | 10713 } // NOLINT, false-positive due to second-order macros. |
| 10714 | 10714 |
| 10715 #endif // V8_OBJECTS_H_ | 10715 #endif // V8_OBJECTS_H_ |
| OLD | NEW |