OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 const int kCharSize = sizeof(char); // NOLINT | 224 const int kCharSize = sizeof(char); // NOLINT |
225 const int kShortSize = sizeof(short); // NOLINT | 225 const int kShortSize = sizeof(short); // NOLINT |
226 const int kIntSize = sizeof(int); // NOLINT | 226 const int kIntSize = sizeof(int); // NOLINT |
227 const int kDoubleSize = sizeof(double); // NOLINT | 227 const int kDoubleSize = sizeof(double); // NOLINT |
228 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 228 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
229 const int kPointerSize = sizeof(void*); // NOLINT | 229 const int kPointerSize = sizeof(void*); // NOLINT |
230 | 230 |
231 const int kDoubleSizeLog2 = 3; | 231 const int kDoubleSizeLog2 = 3; |
232 | 232 |
| 233 // Size of the state of a the random number generator. |
| 234 const int kRandomStateSize = 2 * kIntSize; |
| 235 |
233 #if V8_HOST_ARCH_64_BIT | 236 #if V8_HOST_ARCH_64_BIT |
234 const int kPointerSizeLog2 = 3; | 237 const int kPointerSizeLog2 = 3; |
235 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 238 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
236 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); | 239 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
237 #else | 240 #else |
238 const int kPointerSizeLog2 = 2; | 241 const int kPointerSizeLog2 = 2; |
239 const intptr_t kIntptrSignBit = 0x80000000; | 242 const intptr_t kIntptrSignBit = 0x80000000; |
240 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; | 243 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
241 #endif | 244 #endif |
242 | 245 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // ----------------------------------------------------------------------------- | 354 // ----------------------------------------------------------------------------- |
352 // Forward declarations for frequently used classes | 355 // Forward declarations for frequently used classes |
353 // (sorted alphabetically) | 356 // (sorted alphabetically) |
354 | 357 |
355 class FreeStoreAllocationPolicy; | 358 class FreeStoreAllocationPolicy; |
356 template <typename T, class P = FreeStoreAllocationPolicy> class List; | 359 template <typename T, class P = FreeStoreAllocationPolicy> class List; |
357 | 360 |
358 } } // namespace v8::internal | 361 } } // namespace v8::internal |
359 | 362 |
360 #endif // V8_GLOBALS_H_ | 363 #endif // V8_GLOBALS_H_ |
OLD | NEW |