OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_BASE_BUILD_CONFIG_H_ | 5 #ifndef V8_BASE_BUILD_CONFIG_H_ |
6 #define V8_BASE_BUILD_CONFIG_H_ | 6 #define V8_BASE_BUILD_CONFIG_H_ |
7 | 7 |
8 #include "include/v8config.h" | 8 #include "include/v8config.h" |
9 | 9 |
10 // Processor architecture detection. For more info on what's defined, see: | 10 // Processor architecture detection. For more info on what's defined, see: |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 #define V8_TARGET_LITTLE_ENDIAN 1 | 157 #define V8_TARGET_LITTLE_ENDIAN 1 |
158 #elif V8_TARGET_ARCH_ARM64 | 158 #elif V8_TARGET_ARCH_ARM64 |
159 #define V8_TARGET_LITTLE_ENDIAN 1 | 159 #define V8_TARGET_LITTLE_ENDIAN 1 |
160 #elif V8_TARGET_ARCH_MIPS | 160 #elif V8_TARGET_ARCH_MIPS |
161 #if defined(__MIPSEB__) | 161 #if defined(__MIPSEB__) |
162 #define V8_TARGET_BIG_ENDIAN 1 | 162 #define V8_TARGET_BIG_ENDIAN 1 |
163 #else | 163 #else |
164 #define V8_TARGET_LITTLE_ENDIAN 1 | 164 #define V8_TARGET_LITTLE_ENDIAN 1 |
165 #endif | 165 #endif |
166 #elif V8_TARGET_ARCH_MIPS64 | 166 #elif V8_TARGET_ARCH_MIPS64 |
| 167 #if defined(__MIPSEB__) || defined(V8_TARGET_ARCH_MIPS64_BE) |
| 168 #define V8_TARGET_BIG_ENDIAN 1 |
| 169 #else |
167 #define V8_TARGET_LITTLE_ENDIAN 1 | 170 #define V8_TARGET_LITTLE_ENDIAN 1 |
| 171 #endif |
168 #elif V8_TARGET_ARCH_X87 | 172 #elif V8_TARGET_ARCH_X87 |
169 #define V8_TARGET_LITTLE_ENDIAN 1 | 173 #define V8_TARGET_LITTLE_ENDIAN 1 |
170 #elif V8_TARGET_ARCH_PPC_LE | 174 #elif V8_TARGET_ARCH_PPC_LE |
171 #define V8_TARGET_LITTLE_ENDIAN 1 | 175 #define V8_TARGET_LITTLE_ENDIAN 1 |
172 #elif V8_TARGET_ARCH_PPC_BE | 176 #elif V8_TARGET_ARCH_PPC_BE |
173 #define V8_TARGET_BIG_ENDIAN 1 | 177 #define V8_TARGET_BIG_ENDIAN 1 |
174 #else | 178 #else |
175 #error Unknown target architecture endianness | 179 #error Unknown target architecture endianness |
176 #endif | 180 #endif |
177 | 181 |
178 // Number of bits to represent the page size for paged spaces. The value of 20 | 182 // Number of bits to represent the page size for paged spaces. The value of 20 |
179 // gives 1Mb bytes per page. | 183 // gives 1Mb bytes per page. |
180 #if V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX | 184 #if V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX |
181 // Bump up for Power Linux due to larger (64K) page size. | 185 // Bump up for Power Linux due to larger (64K) page size. |
182 const int kPageSizeBits = 22; | 186 const int kPageSizeBits = 22; |
183 #else | 187 #else |
184 const int kPageSizeBits = 20; | 188 const int kPageSizeBits = 20; |
185 #endif | 189 #endif |
186 | 190 |
187 #endif // V8_BASE_BUILD_CONFIG_H_ | 191 #endif // V8_BASE_BUILD_CONFIG_H_ |
OLD | NEW |