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 17 matching lines...) Expand all Loading... |
28 #define V8_HOST_ARCH_ARM 1 | 28 #define V8_HOST_ARCH_ARM 1 |
29 #define V8_HOST_ARCH_32_BIT 1 | 29 #define V8_HOST_ARCH_32_BIT 1 |
30 #elif defined(__mips64) | 30 #elif defined(__mips64) |
31 #define V8_HOST_ARCH_MIPS64 1 | 31 #define V8_HOST_ARCH_MIPS64 1 |
32 #define V8_HOST_ARCH_64_BIT 1 | 32 #define V8_HOST_ARCH_64_BIT 1 |
33 #elif defined(__MIPSEB__) || defined(__MIPSEL__) | 33 #elif defined(__MIPSEB__) || defined(__MIPSEL__) |
34 #define V8_HOST_ARCH_MIPS 1 | 34 #define V8_HOST_ARCH_MIPS 1 |
35 #define V8_HOST_ARCH_32_BIT 1 | 35 #define V8_HOST_ARCH_32_BIT 1 |
36 #elif defined(__PPC__) || defined(_ARCH_PPC) | 36 #elif defined(__PPC__) || defined(_ARCH_PPC) |
37 #define V8_HOST_ARCH_PPC 1 | 37 #define V8_HOST_ARCH_PPC 1 |
38 #if defined(__PPC64__) || defined(_ARCH_PPC64) || defined(_ARCH_PPCGR) | 38 #if defined(__PPC64__) || defined(_ARCH_PPC64) |
39 #define V8_HOST_ARCH_64_BIT 1 | 39 #define V8_HOST_ARCH_64_BIT 1 |
40 #else | 40 #else |
41 #define V8_HOST_ARCH_32_BIT 1 | 41 #define V8_HOST_ARCH_32_BIT 1 |
42 #endif | 42 #endif |
43 #elif defined(__s390__) || defined(__s390x__) | 43 #elif defined(__s390__) || defined(__s390x__) |
44 #define V8_HOST_ARCH_S390 1 | 44 #define V8_HOST_ARCH_S390 1 |
45 #if defined(__s390x__) | 45 #if defined(__s390x__) |
46 #define V8_HOST_ARCH_64_BIT 1 | 46 #define V8_HOST_ARCH_64_BIT 1 |
47 #else | 47 #else |
48 #define V8_HOST_ARCH_32_BIT 1 | 48 #define V8_HOST_ARCH_32_BIT 1 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 #define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK 1 | 204 #define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK 1 |
205 #else | 205 #else |
206 #define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK 0 | 206 #define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK 0 |
207 #endif | 207 #endif |
208 | 208 |
209 // Number of bits to represent the page size for paged spaces. The value of 20 | 209 // Number of bits to represent the page size for paged spaces. The value of 20 |
210 // gives 1Mb bytes per page. | 210 // gives 1Mb bytes per page. |
211 const int kPageSizeBits = 19; | 211 const int kPageSizeBits = 19; |
212 | 212 |
213 #endif // V8_BASE_BUILD_CONFIG_H_ | 213 #endif // V8_BASE_BUILD_CONFIG_H_ |
OLD | NEW |