| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 const int kCharSize = sizeof(char); // NOLINT | 182 const int kCharSize = sizeof(char); // NOLINT |
| 183 const int kShortSize = sizeof(short); // NOLINT | 183 const int kShortSize = sizeof(short); // NOLINT |
| 184 const int kIntSize = sizeof(int); // NOLINT | 184 const int kIntSize = sizeof(int); // NOLINT |
| 185 const int kDoubleSize = sizeof(double); // NOLINT | 185 const int kDoubleSize = sizeof(double); // NOLINT |
| 186 const int kPointerSize = sizeof(void*); // NOLINT | 186 const int kPointerSize = sizeof(void*); // NOLINT |
| 187 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 187 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
| 188 | 188 |
| 189 #if V8_HOST_ARCH_64_BIT | 189 #if V8_HOST_ARCH_64_BIT |
| 190 const int kPointerSizeLog2 = 3; | 190 const int kPointerSizeLog2 = 3; |
| 191 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 191 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
| 192 static const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
| 192 #else | 193 #else |
| 193 const int kPointerSizeLog2 = 2; | 194 const int kPointerSizeLog2 = 2; |
| 194 const intptr_t kIntptrSignBit = 0x80000000; | 195 const intptr_t kIntptrSignBit = 0x80000000; |
| 196 static const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
| 195 #endif | 197 #endif |
| 196 | 198 |
| 197 // Mask for the sign bit in a smi. | 199 // Mask for the sign bit in a smi. |
| 198 const intptr_t kSmiSignMask = kIntptrSignBit; | 200 const intptr_t kSmiSignMask = kIntptrSignBit; |
| 199 | 201 |
| 200 const int kObjectAlignmentBits = kPointerSizeLog2; | 202 const int kObjectAlignmentBits = kPointerSizeLog2; |
| 201 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; | 203 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; |
| 202 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; | 204 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; |
| 203 | 205 |
| 204 // Desired alignment for pointers. | 206 // Desired alignment for pointers. |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 CMOV = 15, // x86 | 710 CMOV = 15, // x86 |
| 709 RDTSC = 4, // x86 | 711 RDTSC = 4, // x86 |
| 710 CPUID = 10, // x86 | 712 CPUID = 10, // x86 |
| 711 VFP3 = 1, // ARM | 713 VFP3 = 1, // ARM |
| 712 ARMv7 = 2, // ARM | 714 ARMv7 = 2, // ARM |
| 713 SAHF = 0}; // x86 | 715 SAHF = 0}; // x86 |
| 714 | 716 |
| 715 } } // namespace v8::internal | 717 } } // namespace v8::internal |
| 716 | 718 |
| 717 #endif // V8_GLOBALS_H_ | 719 #endif // V8_GLOBALS_H_ |
| OLD | NEW |