| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // IEEE 754 single precision floating point number bit layout. | 248 // IEEE 754 single precision floating point number bit layout. |
| 249 const uint32_t kBinary32SignMask = 0x80000000u; | 249 const uint32_t kBinary32SignMask = 0x80000000u; |
| 250 const uint32_t kBinary32ExponentMask = 0x7f800000u; | 250 const uint32_t kBinary32ExponentMask = 0x7f800000u; |
| 251 const uint32_t kBinary32MantissaMask = 0x007fffffu; | 251 const uint32_t kBinary32MantissaMask = 0x007fffffu; |
| 252 const int kBinary32ExponentBias = 127; | 252 const int kBinary32ExponentBias = 127; |
| 253 const int kBinary32MaxExponent = 0xFE; | 253 const int kBinary32MaxExponent = 0xFE; |
| 254 const int kBinary32MinExponent = 0x01; | 254 const int kBinary32MinExponent = 0x01; |
| 255 const int kBinary32MantissaBits = 23; | 255 const int kBinary32MantissaBits = 23; |
| 256 const int kBinary32ExponentShift = 23; | 256 const int kBinary32ExponentShift = 23; |
| 257 | 257 |
| 258 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no |
| 259 // other bits set. |
| 260 const uint64_t kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51; |
| 261 |
| 258 // ASCII/UC16 constants | 262 // ASCII/UC16 constants |
| 259 // Code-point values in Unicode 4.0 are 21 bits wide. | 263 // Code-point values in Unicode 4.0 are 21 bits wide. |
| 260 typedef uint16_t uc16; | 264 typedef uint16_t uc16; |
| 261 typedef int32_t uc32; | 265 typedef int32_t uc32; |
| 262 const int kASCIISize = kCharSize; | 266 const int kASCIISize = kCharSize; |
| 263 const int kUC16Size = sizeof(uc16); // NOLINT | 267 const int kUC16Size = sizeof(uc16); // NOLINT |
| 264 const uc32 kMaxAsciiCharCode = 0x7f; | 268 const uc32 kMaxAsciiCharCode = 0x7f; |
| 265 const uint32_t kMaxAsciiCharCodeU = 0x7fu; | 269 const uint32_t kMaxAsciiCharCodeU = 0x7fu; |
| 266 | 270 |
| 267 | 271 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // ----------------------------------------------------------------------------- | 351 // ----------------------------------------------------------------------------- |
| 348 // Forward declarations for frequently used classes | 352 // Forward declarations for frequently used classes |
| 349 // (sorted alphabetically) | 353 // (sorted alphabetically) |
| 350 | 354 |
| 351 class FreeStoreAllocationPolicy; | 355 class FreeStoreAllocationPolicy; |
| 352 template <typename T, class P = FreeStoreAllocationPolicy> class List; | 356 template <typename T, class P = FreeStoreAllocationPolicy> class List; |
| 353 | 357 |
| 354 } } // namespace v8::internal | 358 } } // namespace v8::internal |
| 355 | 359 |
| 356 #endif // V8_GLOBALS_H_ | 360 #endif // V8_GLOBALS_H_ |
| OLD | NEW |