Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: src/base/build_config.h

Issue 2175193003: Remove NaCl support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/base/atomicops_internals_portable.h ('k') | src/base/cpu.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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:
11 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx 11 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
12 // http://www.agner.org/optimize/calling_conventions.pdf 12 // http://www.agner.org/optimize/calling_conventions.pdf
13 // or with gcc, run: "echo | gcc -E -dM -" 13 // or with gcc, run: "echo | gcc -E -dM -"
14 #if defined(_M_X64) || defined(__x86_64__) 14 #if defined(_M_X64) || defined(__x86_64__)
15 #if defined(__native_client__)
16 // For Native Client builds of V8, use V8_TARGET_ARCH_ARM, so that V8
17 // generates ARM machine code, together with a portable ARM simulator
18 // compiled for the host architecture in question.
19 //
20 // Since Native Client is ILP-32 on all architectures we use
21 // V8_HOST_ARCH_IA32 on both 32- and 64-bit x86.
22 #define V8_HOST_ARCH_IA32 1
23 #define V8_HOST_ARCH_32_BIT 1
24 #else
25 #define V8_HOST_ARCH_X64 1 15 #define V8_HOST_ARCH_X64 1
26 #if defined(__x86_64__) && __SIZEOF_POINTER__ == 4 // Check for x32. 16 #if defined(__x86_64__) && __SIZEOF_POINTER__ == 4 // Check for x32.
27 #define V8_HOST_ARCH_32_BIT 1 17 #define V8_HOST_ARCH_32_BIT 1
28 #else 18 #else
29 #define V8_HOST_ARCH_64_BIT 1 19 #define V8_HOST_ARCH_64_BIT 1
30 #endif 20 #endif
31 #endif // __native_client__
32 #elif defined(__pnacl__)
33 // PNaCl is also ILP-32.
34 #define V8_HOST_ARCH_IA32 1
35 #define V8_HOST_ARCH_32_BIT 1
36 #elif defined(_M_IX86) || defined(__i386__) 21 #elif defined(_M_IX86) || defined(__i386__)
37 #define V8_HOST_ARCH_IA32 1 22 #define V8_HOST_ARCH_IA32 1
38 #define V8_HOST_ARCH_32_BIT 1 23 #define V8_HOST_ARCH_32_BIT 1
39 #elif defined(__AARCH64EL__) 24 #elif defined(__AARCH64EL__)
40 #define V8_HOST_ARCH_ARM64 1 25 #define V8_HOST_ARCH_ARM64 1
41 #define V8_HOST_ARCH_64_BIT 1 26 #define V8_HOST_ARCH_64_BIT 1
42 #elif defined(__ARMEL__) 27 #elif defined(__ARMEL__)
43 #define V8_HOST_ARCH_ARM 1 28 #define V8_HOST_ARCH_ARM 1
44 #define V8_HOST_ARCH_32_BIT 1 29 #define V8_HOST_ARCH_32_BIT 1
45 #elif defined(__mips64) 30 #elif defined(__mips64)
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Number of bits to represent the page size for paged spaces. The value of 20 197 // Number of bits to represent the page size for paged spaces. The value of 20
213 // gives 1Mb bytes per page. 198 // gives 1Mb bytes per page.
214 #if V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX 199 #if V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX
215 // Bump up for Power Linux due to larger (64K) page size. 200 // Bump up for Power Linux due to larger (64K) page size.
216 const int kPageSizeBits = 22; 201 const int kPageSizeBits = 22;
217 #else 202 #else
218 const int kPageSizeBits = 20; 203 const int kPageSizeBits = 20;
219 #endif 204 #endif
220 205
221 #endif // V8_BASE_BUILD_CONFIG_H_ 206 #endif // V8_BASE_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « src/base/atomicops_internals_portable.h ('k') | src/base/cpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698