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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 #elif V8_TARGET_ARCH_X87 | 176 #elif V8_TARGET_ARCH_X87 |
177 #define V8_TARGET_LITTLE_ENDIAN 1 | 177 #define V8_TARGET_LITTLE_ENDIAN 1 |
178 #elif V8_TARGET_ARCH_PPC_LE | 178 #elif V8_TARGET_ARCH_PPC_LE |
179 #define V8_TARGET_LITTLE_ENDIAN 1 | 179 #define V8_TARGET_LITTLE_ENDIAN 1 |
180 #elif V8_TARGET_ARCH_PPC_BE | 180 #elif V8_TARGET_ARCH_PPC_BE |
181 #define V8_TARGET_BIG_ENDIAN 1 | 181 #define V8_TARGET_BIG_ENDIAN 1 |
182 #else | 182 #else |
183 #error Unknown target architecture endianness | 183 #error Unknown target architecture endianness |
184 #endif | 184 #endif |
185 | 185 |
| 186 #if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_X64) || \ |
| 187 defined(V8_TARGET_ARCH_X87) |
| 188 #define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK 1 |
| 189 #else |
| 190 #define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK 0 |
| 191 #endif |
| 192 |
186 // Number of bits to represent the page size for paged spaces. The value of 20 | 193 // Number of bits to represent the page size for paged spaces. The value of 20 |
187 // gives 1Mb bytes per page. | 194 // gives 1Mb bytes per page. |
188 #if V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX | 195 #if V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX |
189 // Bump up for Power Linux due to larger (64K) page size. | 196 // Bump up for Power Linux due to larger (64K) page size. |
190 const int kPageSizeBits = 22; | 197 const int kPageSizeBits = 22; |
191 #else | 198 #else |
192 const int kPageSizeBits = 20; | 199 const int kPageSizeBits = 20; |
193 #endif | 200 #endif |
194 | 201 |
195 #endif // V8_BASE_BUILD_CONFIG_H_ | 202 #endif // V8_BASE_BUILD_CONFIG_H_ |
OLD | NEW |