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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 const int kRegisterSize = kPointerSize; | 146 const int kRegisterSize = kPointerSize; |
| 147 const int kPCOnStackSize = kRegisterSize; | 147 const int kPCOnStackSize = kRegisterSize; |
| 148 const int kFPOnStackSize = kRegisterSize; | 148 const int kFPOnStackSize = kRegisterSize; |
| 149 | 149 |
| 150 const int kDoubleSizeLog2 = 3; | 150 const int kDoubleSizeLog2 = 3; |
| 151 | 151 |
| 152 #if V8_HOST_ARCH_64_BIT | 152 #if V8_HOST_ARCH_64_BIT |
| 153 const int kPointerSizeLog2 = 3; | 153 const int kPointerSizeLog2 = 3; |
| 154 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 154 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
| 155 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); | 155 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
| 156 const bool kIs64BitArch = true; | 156 const bool kRequiresCodeRange = true; |
| 157 const int kMaximalCodeRangeSize = 512 * MB; | |
|
Sven Panne
2014/06/12 11:46:11
If this CL gets re-landed, please change this to a
| |
| 157 #else | 158 #else |
| 158 const int kPointerSizeLog2 = 2; | 159 const int kPointerSizeLog2 = 2; |
| 159 const intptr_t kIntptrSignBit = 0x80000000; | 160 const intptr_t kIntptrSignBit = 0x80000000; |
| 160 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; | 161 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
| 161 const bool kIs64BitArch = false; | 162 const bool kRequiresCodeRange = false; |
| 163 const int kMaximalCodeRangeSize = 0 * MB; | |
| 162 #endif | 164 #endif |
| 163 | 165 |
| 164 const int kBitsPerByte = 8; | 166 const int kBitsPerByte = 8; |
| 165 const int kBitsPerByteLog2 = 3; | 167 const int kBitsPerByteLog2 = 3; |
| 166 const int kBitsPerPointer = kPointerSize * kBitsPerByte; | 168 const int kBitsPerPointer = kPointerSize * kBitsPerByte; |
| 167 const int kBitsPerInt = kIntSize * kBitsPerByte; | 169 const int kBitsPerInt = kIntSize * kBitsPerByte; |
| 168 | 170 |
| 169 // IEEE 754 single precision floating point number bit layout. | 171 // IEEE 754 single precision floating point number bit layout. |
| 170 const uint32_t kBinary32SignMask = 0x80000000u; | 172 const uint32_t kBinary32SignMask = 0x80000000u; |
| 171 const uint32_t kBinary32ExponentMask = 0x7f800000u; | 173 const uint32_t kBinary32ExponentMask = 0x7f800000u; |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 757 enum MinusZeroMode { | 759 enum MinusZeroMode { |
| 758 TREAT_MINUS_ZERO_AS_ZERO, | 760 TREAT_MINUS_ZERO_AS_ZERO, |
| 759 FAIL_ON_MINUS_ZERO | 761 FAIL_ON_MINUS_ZERO |
| 760 }; | 762 }; |
| 761 | 763 |
| 762 } } // namespace v8::internal | 764 } } // namespace v8::internal |
| 763 | 765 |
| 764 namespace i = v8::internal; | 766 namespace i = v8::internal; |
| 765 | 767 |
| 766 #endif // V8_GLOBALS_H_ | 768 #endif // V8_GLOBALS_H_ |
| OLD | NEW |