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 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1488 static const int kExponentOffset = kValueOffset + 4; | 1488 static const int kExponentOffset = kValueOffset + 4; |
1489 | 1489 |
1490 static const int kSize = kValueOffset + kDoubleSize; | 1490 static const int kSize = kValueOffset + kDoubleSize; |
1491 static const uint32_t kSignMask = 0x80000000u; | 1491 static const uint32_t kSignMask = 0x80000000u; |
1492 static const uint32_t kExponentMask = 0x7ff00000u; | 1492 static const uint32_t kExponentMask = 0x7ff00000u; |
1493 static const uint32_t kMantissaMask = 0xfffffu; | 1493 static const uint32_t kMantissaMask = 0xfffffu; |
1494 static const int kMantissaBits = 52; | 1494 static const int kMantissaBits = 52; |
1495 static const int kExponentBits = 11; | 1495 static const int kExponentBits = 11; |
1496 static const int kExponentBias = 1023; | 1496 static const int kExponentBias = 1023; |
1497 static const int kExponentShift = 20; | 1497 static const int kExponentShift = 20; |
| 1498 static const int kInfinityOrNanExponent = |
| 1499 (kExponentMask >> kExponentShift) - kExponentBias; |
1498 static const int kMantissaBitsInTopWord = 20; | 1500 static const int kMantissaBitsInTopWord = 20; |
1499 static const int kNonMantissaBitsInTopWord = 12; | 1501 static const int kNonMantissaBitsInTopWord = 12; |
1500 | 1502 |
1501 private: | 1503 private: |
1502 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); | 1504 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); |
1503 }; | 1505 }; |
1504 | 1506 |
1505 | 1507 |
1506 enum EnsureElementsMode { | 1508 enum EnsureElementsMode { |
1507 DONT_ALLOW_DOUBLE_ELEMENTS, | 1509 DONT_ALLOW_DOUBLE_ELEMENTS, |
(...skipping 7806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9314 } else { | 9316 } else { |
9315 value &= ~(1 << bit_position); | 9317 value &= ~(1 << bit_position); |
9316 } | 9318 } |
9317 return value; | 9319 return value; |
9318 } | 9320 } |
9319 }; | 9321 }; |
9320 | 9322 |
9321 } } // namespace v8::internal | 9323 } } // namespace v8::internal |
9322 | 9324 |
9323 #endif // V8_OBJECTS_H_ | 9325 #endif // V8_OBJECTS_H_ |
OLD | NEW |