| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 const int kDoubleSizeLog2 = 3; | 242 const int kDoubleSizeLog2 = 3; |
| 243 | 243 |
| 244 // Size of the state of a the random number generator. | 244 // Size of the state of a the random number generator. |
| 245 const int kRandomStateSize = 2 * kIntSize; | 245 const int kRandomStateSize = 2 * kIntSize; |
| 246 | 246 |
| 247 #if V8_HOST_ARCH_64_BIT | 247 #if V8_HOST_ARCH_64_BIT |
| 248 const int kPointerSizeLog2 = 3; | 248 const int kPointerSizeLog2 = 3; |
| 249 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 249 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
| 250 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); | 250 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
| 251 const bool kIs64BitArch = true; |
| 251 #else | 252 #else |
| 252 const int kPointerSizeLog2 = 2; | 253 const int kPointerSizeLog2 = 2; |
| 253 const intptr_t kIntptrSignBit = 0x80000000; | 254 const intptr_t kIntptrSignBit = 0x80000000; |
| 254 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; | 255 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
| 256 const bool kIs64BitArch = false; |
| 255 #endif | 257 #endif |
| 256 | 258 |
| 257 const int kBitsPerByte = 8; | 259 const int kBitsPerByte = 8; |
| 258 const int kBitsPerByteLog2 = 3; | 260 const int kBitsPerByteLog2 = 3; |
| 259 const int kBitsPerPointer = kPointerSize * kBitsPerByte; | 261 const int kBitsPerPointer = kPointerSize * kBitsPerByte; |
| 260 const int kBitsPerInt = kIntSize * kBitsPerByte; | 262 const int kBitsPerInt = kIntSize * kBitsPerByte; |
| 261 | 263 |
| 262 // IEEE 754 single precision floating point number bit layout. | 264 // IEEE 754 single precision floating point number bit layout. |
| 263 const uint32_t kBinary32SignMask = 0x80000000u; | 265 const uint32_t kBinary32SignMask = 0x80000000u; |
| 264 const uint32_t kBinary32ExponentMask = 0x7f800000u; | 266 const uint32_t kBinary32ExponentMask = 0x7f800000u; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 // the backend, so both modes are represented by the kStrictMode value. | 402 // the backend, so both modes are represented by the kStrictMode value. |
| 401 enum StrictModeFlag { | 403 enum StrictModeFlag { |
| 402 kNonStrictMode, | 404 kNonStrictMode, |
| 403 kStrictMode | 405 kStrictMode |
| 404 }; | 406 }; |
| 405 | 407 |
| 406 | 408 |
| 407 } } // namespace v8::internal | 409 } } // namespace v8::internal |
| 408 | 410 |
| 409 #endif // V8_GLOBALS_H_ | 411 #endif // V8_GLOBALS_H_ |
| OLD | NEW |