| 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_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
| 6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 // be enumerable or not, and, in case of functions, the function name | 1314 // be enumerable or not, and, in case of functions, the function name |
| 1315 // can be set or not. | 1315 // can be set or not. |
| 1316 enum class DataPropertyInLiteralFlag { | 1316 enum class DataPropertyInLiteralFlag { |
| 1317 kNoFlags = 0, | 1317 kNoFlags = 0, |
| 1318 kDontEnum = 1 << 0, | 1318 kDontEnum = 1 << 0, |
| 1319 kSetFunctionName = 1 << 1 | 1319 kSetFunctionName = 1 << 1 |
| 1320 }; | 1320 }; |
| 1321 typedef base::Flags<DataPropertyInLiteralFlag> DataPropertyInLiteralFlags; | 1321 typedef base::Flags<DataPropertyInLiteralFlag> DataPropertyInLiteralFlags; |
| 1322 DEFINE_OPERATORS_FOR_FLAGS(DataPropertyInLiteralFlags) | 1322 DEFINE_OPERATORS_FOR_FLAGS(DataPropertyInLiteralFlags) |
| 1323 | 1323 |
| 1324 enum ExternalArrayType { |
| 1325 kExternalInt8Array = 1, |
| 1326 kExternalUint8Array, |
| 1327 kExternalInt16Array, |
| 1328 kExternalUint16Array, |
| 1329 kExternalInt32Array, |
| 1330 kExternalUint32Array, |
| 1331 kExternalFloat32Array, |
| 1332 kExternalFloat64Array, |
| 1333 kExternalUint8ClampedArray, |
| 1334 }; |
| 1335 |
| 1324 } // namespace internal | 1336 } // namespace internal |
| 1325 } // namespace v8 | 1337 } // namespace v8 |
| 1326 | 1338 |
| 1327 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is | 1339 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is |
| 1328 // reducing a JSArray method, or a JSTypedArray method. | 1340 // reducing a JSArray method, or a JSTypedArray method. |
| 1329 enum class ArrayIteratorKind { kArray, kTypedArray }; | 1341 enum class ArrayIteratorKind { kArray, kTypedArray }; |
| 1330 | 1342 |
| 1331 namespace i = v8::internal; | 1343 namespace i = v8::internal; |
| 1332 | 1344 |
| 1333 #endif // V8_GLOBALS_H_ | 1345 #endif // V8_GLOBALS_H_ |
| OLD | NEW |