| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // IEEE 754 single precision floating point number bit layout. | 219 // IEEE 754 single precision floating point number bit layout. |
| 220 const uint32_t kBinary32SignMask = 0x80000000u; | 220 const uint32_t kBinary32SignMask = 0x80000000u; |
| 221 const uint32_t kBinary32ExponentMask = 0x7f800000u; | 221 const uint32_t kBinary32ExponentMask = 0x7f800000u; |
| 222 const uint32_t kBinary32MantissaMask = 0x007fffffu; | 222 const uint32_t kBinary32MantissaMask = 0x007fffffu; |
| 223 const int kBinary32ExponentBias = 127; | 223 const int kBinary32ExponentBias = 127; |
| 224 const int kBinary32MaxExponent = 0xFE; | 224 const int kBinary32MaxExponent = 0xFE; |
| 225 const int kBinary32MinExponent = 0x01; | 225 const int kBinary32MinExponent = 0x01; |
| 226 const int kBinary32MantissaBits = 23; | 226 const int kBinary32MantissaBits = 23; |
| 227 const int kBinary32ExponentShift = 23; | 227 const int kBinary32ExponentShift = 23; |
| 228 | 228 |
| 229 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no |
| 230 // other bits set. |
| 231 const uint64_t kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51; |
| 232 |
| 229 // ASCII/UC16 constants | 233 // ASCII/UC16 constants |
| 230 // Code-point values in Unicode 4.0 are 21 bits wide. | 234 // Code-point values in Unicode 4.0 are 21 bits wide. |
| 231 typedef uint16_t uc16; | 235 typedef uint16_t uc16; |
| 232 typedef int32_t uc32; | 236 typedef int32_t uc32; |
| 233 const int kASCIISize = kCharSize; | 237 const int kASCIISize = kCharSize; |
| 234 const int kUC16Size = sizeof(uc16); // NOLINT | 238 const int kUC16Size = sizeof(uc16); // NOLINT |
| 235 const uc32 kMaxAsciiCharCode = 0x7f; | 239 const uc32 kMaxAsciiCharCode = 0x7f; |
| 236 const uint32_t kMaxAsciiCharCodeU = 0x7fu; | 240 const uint32_t kMaxAsciiCharCodeU = 0x7fu; |
| 237 | 241 |
| 238 | 242 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 // ----------------------------------------------------------------------------- | 322 // ----------------------------------------------------------------------------- |
| 319 // Forward declarations for frequently used classes | 323 // Forward declarations for frequently used classes |
| 320 // (sorted alphabetically) | 324 // (sorted alphabetically) |
| 321 | 325 |
| 322 class FreeStoreAllocationPolicy; | 326 class FreeStoreAllocationPolicy; |
| 323 template <typename T, class P = FreeStoreAllocationPolicy> class List; | 327 template <typename T, class P = FreeStoreAllocationPolicy> class List; |
| 324 | 328 |
| 325 } } // namespace v8::internal | 329 } } // namespace v8::internal |
| 326 | 330 |
| 327 #endif // V8_GLOBALS_H_ | 331 #endif // V8_GLOBALS_H_ |
| OLD | NEW |