| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 const int kDoubleSizeLog2 = 3; | 256 const int kDoubleSizeLog2 = 3; |
| 257 | 257 |
| 258 // Size of the state of a the random number generator. | 258 // Size of the state of a the random number generator. |
| 259 const int kRandomStateSize = 2 * kIntSize; | 259 const int kRandomStateSize = 2 * kIntSize; |
| 260 | 260 |
| 261 #if V8_HOST_ARCH_64_BIT | 261 #if V8_HOST_ARCH_64_BIT |
| 262 const int kPointerSizeLog2 = 3; | 262 const int kPointerSizeLog2 = 3; |
| 263 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 263 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
| 264 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); | 264 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
| 265 const bool kIs64BitArch = true; |
| 265 #else | 266 #else |
| 266 const int kPointerSizeLog2 = 2; | 267 const int kPointerSizeLog2 = 2; |
| 267 const intptr_t kIntptrSignBit = 0x80000000; | 268 const intptr_t kIntptrSignBit = 0x80000000; |
| 268 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; | 269 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
| 270 const bool kIs64BitArch = false; |
| 269 #endif | 271 #endif |
| 270 | 272 |
| 271 const int kBitsPerByte = 8; | 273 const int kBitsPerByte = 8; |
| 272 const int kBitsPerByteLog2 = 3; | 274 const int kBitsPerByteLog2 = 3; |
| 273 const int kBitsPerPointer = kPointerSize * kBitsPerByte; | 275 const int kBitsPerPointer = kPointerSize * kBitsPerByte; |
| 274 const int kBitsPerInt = kIntSize * kBitsPerByte; | 276 const int kBitsPerInt = kIntSize * kBitsPerByte; |
| 275 | 277 |
| 276 // IEEE 754 single precision floating point number bit layout. | 278 // IEEE 754 single precision floating point number bit layout. |
| 277 const uint32_t kBinary32SignMask = 0x80000000u; | 279 const uint32_t kBinary32SignMask = 0x80000000u; |
| 278 const uint32_t kBinary32ExponentMask = 0x7f800000u; | 280 const uint32_t kBinary32ExponentMask = 0x7f800000u; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 // the backend, so both modes are represented by the kStrictMode value. | 416 // the backend, so both modes are represented by the kStrictMode value. |
| 415 enum StrictModeFlag { | 417 enum StrictModeFlag { |
| 416 kNonStrictMode, | 418 kNonStrictMode, |
| 417 kStrictMode | 419 kStrictMode |
| 418 }; | 420 }; |
| 419 | 421 |
| 420 | 422 |
| 421 } } // namespace v8::internal | 423 } } // namespace v8::internal |
| 422 | 424 |
| 423 #endif // V8_GLOBALS_H_ | 425 #endif // V8_GLOBALS_H_ |
| OLD | NEW |