OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 const int kFailureTag = 3; | 167 const int kFailureTag = 3; |
168 const int kFailureTagSize = 2; | 168 const int kFailureTagSize = 2; |
169 const intptr_t kFailureTagMask = (1 << kFailureTagSize) - 1; | 169 const intptr_t kFailureTagMask = (1 << kFailureTagSize) - 1; |
170 | 170 |
171 | 171 |
172 const int kBitsPerByte = 8; | 172 const int kBitsPerByte = 8; |
173 const int kBitsPerByteLog2 = 3; | 173 const int kBitsPerByteLog2 = 3; |
174 const int kBitsPerPointer = kPointerSize * kBitsPerByte; | 174 const int kBitsPerPointer = kPointerSize * kBitsPerByte; |
175 const int kBitsPerInt = kIntSize * kBitsPerByte; | 175 const int kBitsPerInt = kIntSize * kBitsPerByte; |
176 | 176 |
| 177 // IEEE 754 single precision floating point number bit layout. |
| 178 const uint32_t kBinary32SignMask = 0x80000000u; |
| 179 const uint32_t kBinary32ExponentMask = 0x7f800000u; |
| 180 const uint32_t kBinary32MantissaMask = 0x007fffffu; |
| 181 const int kBinary32ExponentBias = 127; |
| 182 const int kBinary32MaxExponent = 0xFE; |
| 183 const int kBinary32MinExponent = 0x01; |
| 184 const int kBinary32MantissaBits = 23; |
| 185 const int kBinary32ExponentShift = 23; |
177 | 186 |
178 // Zap-value: The value used for zapping dead objects. | 187 // Zap-value: The value used for zapping dead objects. |
179 // Should be a recognizable hex value tagged as a heap object pointer. | 188 // Should be a recognizable hex value tagged as a heap object pointer. |
180 #ifdef V8_HOST_ARCH_64_BIT | 189 #ifdef V8_HOST_ARCH_64_BIT |
181 const Address kZapValue = | 190 const Address kZapValue = |
182 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeed)); | 191 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeed)); |
183 const Address kHandleZapValue = | 192 const Address kHandleZapValue = |
184 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddead)); | 193 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddead)); |
185 const Address kFromSpaceZapValue = | 194 const Address kFromSpaceZapValue = |
186 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdad)); | 195 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdad)); |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 CMOV = 15, // x86 | 591 CMOV = 15, // x86 |
583 RDTSC = 4, // x86 | 592 RDTSC = 4, // x86 |
584 CPUID = 10, // x86 | 593 CPUID = 10, // x86 |
585 VFP3 = 1, // ARM | 594 VFP3 = 1, // ARM |
586 ARMv7 = 2, // ARM | 595 ARMv7 = 2, // ARM |
587 SAHF = 0}; // x86 | 596 SAHF = 0}; // x86 |
588 | 597 |
589 } } // namespace v8::internal | 598 } } // namespace v8::internal |
590 | 599 |
591 #endif // V8_GLOBALS_H_ | 600 #endif // V8_GLOBALS_H_ |
OLD | NEW |