OLD | NEW |
1 // Copyright 2010 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; | 193 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; |
194 | 194 |
195 const int kCharSize = sizeof(char); // NOLINT | 195 const int kCharSize = sizeof(char); // NOLINT |
196 const int kShortSize = sizeof(short); // NOLINT | 196 const int kShortSize = sizeof(short); // NOLINT |
197 const int kIntSize = sizeof(int); // NOLINT | 197 const int kIntSize = sizeof(int); // NOLINT |
198 const int kDoubleSize = sizeof(double); // NOLINT | 198 const int kDoubleSize = sizeof(double); // NOLINT |
199 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 199 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
200 const int kPointerSize = sizeof(void*); // NOLINT | 200 const int kPointerSize = sizeof(void*); // NOLINT |
201 | 201 |
| 202 const int kDoubleSizeLog2 = 3; |
| 203 |
202 #if V8_HOST_ARCH_64_BIT | 204 #if V8_HOST_ARCH_64_BIT |
203 const int kPointerSizeLog2 = 3; | 205 const int kPointerSizeLog2 = 3; |
204 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 206 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
205 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); | 207 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
206 #else | 208 #else |
207 const int kPointerSizeLog2 = 2; | 209 const int kPointerSizeLog2 = 2; |
208 const intptr_t kIntptrSignBit = 0x80000000; | 210 const intptr_t kIntptrSignBit = 0x80000000; |
209 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; | 211 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
210 #endif | 212 #endif |
211 | 213 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // ----------------------------------------------------------------------------- | 318 // ----------------------------------------------------------------------------- |
317 // Forward declarations for frequently used classes | 319 // Forward declarations for frequently used classes |
318 // (sorted alphabetically) | 320 // (sorted alphabetically) |
319 | 321 |
320 class FreeStoreAllocationPolicy; | 322 class FreeStoreAllocationPolicy; |
321 template <typename T, class P = FreeStoreAllocationPolicy> class List; | 323 template <typename T, class P = FreeStoreAllocationPolicy> class List; |
322 | 324 |
323 } } // namespace v8::internal | 325 } } // namespace v8::internal |
324 | 326 |
325 #endif // V8_GLOBALS_H_ | 327 #endif // V8_GLOBALS_H_ |
OLD | NEW |