| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 const int kBinary32ExponentBias = 127; | 260 const int kBinary32ExponentBias = 127; |
| 261 const int kBinary32MaxExponent = 0xFE; | 261 const int kBinary32MaxExponent = 0xFE; |
| 262 const int kBinary32MinExponent = 0x01; | 262 const int kBinary32MinExponent = 0x01; |
| 263 const int kBinary32MantissaBits = 23; | 263 const int kBinary32MantissaBits = 23; |
| 264 const int kBinary32ExponentShift = 23; | 264 const int kBinary32ExponentShift = 23; |
| 265 | 265 |
| 266 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no | 266 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no |
| 267 // other bits set. | 267 // other bits set. |
| 268 const uint64_t kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51; | 268 const uint64_t kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51; |
| 269 | 269 |
| 270 // ASCII/UC16 constants | 270 // ASCII/UTF-16 constants |
| 271 // Code-point values in Unicode 4.0 are 21 bits wide. | 271 // Code-point values in Unicode 4.0 are 21 bits wide. |
| 272 // Code units in UTF-16 are 16 bits wide. |
| 272 typedef uint16_t uc16; | 273 typedef uint16_t uc16; |
| 273 typedef int32_t uc32; | 274 typedef int32_t uc32; |
| 274 const int kASCIISize = kCharSize; | 275 const int kASCIISize = kCharSize; |
| 275 const int kUC16Size = sizeof(uc16); // NOLINT | 276 const int kUC16Size = sizeof(uc16); // NOLINT |
| 276 const uc32 kMaxAsciiCharCode = 0x7f; | 277 const uc32 kMaxAsciiCharCode = 0x7f; |
| 277 const uint32_t kMaxAsciiCharCodeU = 0x7fu; | 278 const uint32_t kMaxAsciiCharCodeU = 0x7fu; |
| 278 | 279 |
| 279 | 280 |
| 280 // The expression OFFSET_OF(type, field) computes the byte-offset | 281 // The expression OFFSET_OF(type, field) computes the byte-offset |
| 281 // of the specified field relative to the containing type. This | 282 // of the specified field relative to the containing type. This |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 // the backend, so both modes are represented by the kStrictMode value. | 393 // the backend, so both modes are represented by the kStrictMode value. |
| 393 enum StrictModeFlag { | 394 enum StrictModeFlag { |
| 394 kNonStrictMode, | 395 kNonStrictMode, |
| 395 kStrictMode | 396 kStrictMode |
| 396 }; | 397 }; |
| 397 | 398 |
| 398 | 399 |
| 399 } } // namespace v8::internal | 400 } } // namespace v8::internal |
| 400 | 401 |
| 401 #endif // V8_GLOBALS_H_ | 402 #endif // V8_GLOBALS_H_ |
| OLD | NEW |