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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 // Zap-value: The value used for zapping dead objects. | 238 // Zap-value: The value used for zapping dead objects. |
239 // Should be a recognizable hex value tagged as a heap object pointer. | 239 // Should be a recognizable hex value tagged as a heap object pointer. |
240 #ifdef V8_HOST_ARCH_64_BIT | 240 #ifdef V8_HOST_ARCH_64_BIT |
241 const Address kZapValue = | 241 const Address kZapValue = |
242 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeed)); | 242 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeed)); |
243 const Address kHandleZapValue = | 243 const Address kHandleZapValue = |
244 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddead)); | 244 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddead)); |
245 const Address kFromSpaceZapValue = | 245 const Address kFromSpaceZapValue = |
246 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdad)); | 246 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdad)); |
| 247 const uint64_t kDebugZapValue = 0xbadbaddbbadbaddb; |
247 #else | 248 #else |
248 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); | 249 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); |
249 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); | 250 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); |
250 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); | 251 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); |
| 252 const uint32_t kDebugZapValue = 0xbadbaddb; |
251 #endif | 253 #endif |
252 | 254 |
253 | 255 |
254 // Number of bits to represent the page size for paged spaces. The value of 13 | 256 // Number of bits to represent the page size for paged spaces. The value of 13 |
255 // gives 8K bytes per page. | 257 // gives 8K bytes per page. |
256 const int kPageSizeBits = 13; | 258 const int kPageSizeBits = 13; |
257 | 259 |
258 // On Intel architecture, cache line size is 64 bytes. | 260 // On Intel architecture, cache line size is 64 bytes. |
259 // On ARM it may be less (32 bytes), but as far this constant is | 261 // On ARM it may be less (32 bytes), but as far this constant is |
260 // used for aligning data, it doesn't hurt to align on a greater value. | 262 // used for aligning data, it doesn't hurt to align on a greater value. |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 CMOV = 15, // x86 | 690 CMOV = 15, // x86 |
689 RDTSC = 4, // x86 | 691 RDTSC = 4, // x86 |
690 CPUID = 10, // x86 | 692 CPUID = 10, // x86 |
691 VFP3 = 1, // ARM | 693 VFP3 = 1, // ARM |
692 ARMv7 = 2, // ARM | 694 ARMv7 = 2, // ARM |
693 SAHF = 0}; // x86 | 695 SAHF = 0}; // x86 |
694 | 696 |
695 } } // namespace v8::internal | 697 } } // namespace v8::internal |
696 | 698 |
697 #endif // V8_GLOBALS_H_ | 699 #endif // V8_GLOBALS_H_ |
OLD | NEW |