Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
| 6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
| 7 | 7 |
| 8 #include "include/v8stdint.h" | 8 #include "include/v8stdint.h" |
| 9 | 9 |
| 10 #include "src/base/build_config.h" | 10 #include "src/base/build_config.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 139 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
| 140 const int kPointerSize = sizeof(void*); // NOLINT | 140 const int kPointerSize = sizeof(void*); // NOLINT |
| 141 const int kRegisterSize = kPointerSize; | 141 const int kRegisterSize = kPointerSize; |
| 142 const int kPCOnStackSize = kRegisterSize; | 142 const int kPCOnStackSize = kRegisterSize; |
| 143 const int kFPOnStackSize = kRegisterSize; | 143 const int kFPOnStackSize = kRegisterSize; |
| 144 | 144 |
| 145 const int kDoubleSizeLog2 = 3; | 145 const int kDoubleSizeLog2 = 3; |
| 146 | 146 |
| 147 #if V8_HOST_ARCH_64_BIT | 147 #if V8_HOST_ARCH_64_BIT |
| 148 const int kPointerSizeLog2 = 3; | 148 const int kPointerSizeLog2 = 3; |
| 149 const int kIntSizeLog2 = 3; | |
|
Jakob Kummerow
2014/06/23 15:29:23
are you sure about this? I can haz STATIC_ASSERT(k
| |
| 149 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 150 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
| 150 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); | 151 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
| 151 const bool kRequiresCodeRange = true; | 152 const bool kRequiresCodeRange = true; |
| 152 const size_t kMaximalCodeRangeSize = 512 * MB; | 153 const size_t kMaximalCodeRangeSize = 512 * MB; |
| 153 #else | 154 #else |
| 154 const int kPointerSizeLog2 = 2; | 155 const int kPointerSizeLog2 = 2; |
| 156 const int kIntSizeLog2 = 2; | |
| 155 const intptr_t kIntptrSignBit = 0x80000000; | 157 const intptr_t kIntptrSignBit = 0x80000000; |
| 156 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; | 158 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
| 157 const bool kRequiresCodeRange = false; | 159 const bool kRequiresCodeRange = false; |
| 158 const size_t kMaximalCodeRangeSize = 0 * MB; | 160 const size_t kMaximalCodeRangeSize = 0 * MB; |
| 159 #endif | 161 #endif |
| 160 | 162 |
| 161 const int kBitsPerByte = 8; | 163 const int kBitsPerByte = 8; |
| 162 const int kBitsPerByteLog2 = 3; | 164 const int kBitsPerByteLog2 = 3; |
| 163 const int kBitsPerPointer = kPointerSize * kBitsPerByte; | 165 const int kBitsPerPointer = kPointerSize * kBitsPerByte; |
| 164 const int kBitsPerInt = kIntSize * kBitsPerByte; | 166 const int kBitsPerInt = kIntSize * kBitsPerByte; |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 755 enum MinusZeroMode { | 757 enum MinusZeroMode { |
| 756 TREAT_MINUS_ZERO_AS_ZERO, | 758 TREAT_MINUS_ZERO_AS_ZERO, |
| 757 FAIL_ON_MINUS_ZERO | 759 FAIL_ON_MINUS_ZERO |
| 758 }; | 760 }; |
| 759 | 761 |
| 760 } } // namespace v8::internal | 762 } } // namespace v8::internal |
| 761 | 763 |
| 762 namespace i = v8::internal; | 764 namespace i = v8::internal; |
| 763 | 765 |
| 764 #endif // V8_GLOBALS_H_ | 766 #endif // V8_GLOBALS_H_ |
| OLD | NEW |