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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); | 188 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); |
189 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); | 189 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); |
190 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); | 190 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); |
191 #endif | 191 #endif |
192 | 192 |
193 | 193 |
194 // Number of bits to represent the page size for paged spaces. The value of 13 | 194 // Number of bits to represent the page size for paged spaces. The value of 13 |
195 // gives 8K bytes per page. | 195 // gives 8K bytes per page. |
196 const int kPageSizeBits = 13; | 196 const int kPageSizeBits = 13; |
197 | 197 |
| 198 // On Intel architecture, cache line size is 64 bytes. |
| 199 // On ARM it may be less (32 bytes), but as far this constant is |
| 200 // used for aligning data, it doesn't hurt to align on a greater value. |
| 201 const int kProcessorCacheLineSize = 64; |
198 | 202 |
199 // Constants relevant to double precision floating point numbers. | 203 // Constants relevant to double precision floating point numbers. |
200 | 204 |
201 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no | 205 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no |
202 // other bits set. | 206 // other bits set. |
203 const uint64_t kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51; | 207 const uint64_t kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51; |
204 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30. | 208 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30. |
205 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); | 209 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); |
206 | 210 |
207 | 211 |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 CMOV = 15, // x86 | 590 CMOV = 15, // x86 |
587 RDTSC = 4, // x86 | 591 RDTSC = 4, // x86 |
588 CPUID = 10, // x86 | 592 CPUID = 10, // x86 |
589 VFP3 = 1, // ARM | 593 VFP3 = 1, // ARM |
590 ARMv7 = 2, // ARM | 594 ARMv7 = 2, // ARM |
591 SAHF = 0}; // x86 | 595 SAHF = 0}; // x86 |
592 | 596 |
593 } } // namespace v8::internal | 597 } } // namespace v8::internal |
594 | 598 |
595 #endif // V8_GLOBALS_H_ | 599 #endif // V8_GLOBALS_H_ |
OLD | NEW |