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

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

Issue 569783003: Revert "Remove V8_HOST_CAN_READ_UNALIGNED and its uses." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/deoptimizer.h » ('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__) 15 #if defined(__native_client__)
16 // For Native Client builds of V8, use V8_TARGET_ARCH_ARM, so that V8 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 17 // generates ARM machine code, together with a portable ARM simulator
18 // compiled for the host architecture in question. 18 // compiled for the host architecture in question.
19 // 19 //
20 // Since Native Client is ILP-32 on all architectures we use 20 // Since Native Client is ILP-32 on all architectures we use
21 // V8_HOST_ARCH_IA32 on both 32- and 64-bit x86. 21 // V8_HOST_ARCH_IA32 on both 32- and 64-bit x86.
22 #define V8_HOST_ARCH_IA32 1 22 #define V8_HOST_ARCH_IA32 1
23 #define V8_HOST_ARCH_32_BIT 1 23 #define V8_HOST_ARCH_32_BIT 1
24 #define V8_HOST_CAN_READ_UNALIGNED 1
24 #else 25 #else
25 #define V8_HOST_ARCH_X64 1 26 #define V8_HOST_ARCH_X64 1
26 #if defined(__x86_64__) && __SIZEOF_POINTER__ == 4 // Check for x32. 27 #if defined(__x86_64__) && __SIZEOF_POINTER__ == 4 // Check for x32.
27 #define V8_HOST_ARCH_32_BIT 1 28 #define V8_HOST_ARCH_32_BIT 1
28 #else 29 #else
29 #define V8_HOST_ARCH_64_BIT 1 30 #define V8_HOST_ARCH_64_BIT 1
30 #endif 31 #endif
32 #define V8_HOST_CAN_READ_UNALIGNED 1
31 #endif // __native_client__ 33 #endif // __native_client__
32 #elif defined(_M_IX86) || defined(__i386__) 34 #elif defined(_M_IX86) || defined(__i386__)
33 #define V8_HOST_ARCH_IA32 1 35 #define V8_HOST_ARCH_IA32 1
34 #define V8_HOST_ARCH_32_BIT 1 36 #define V8_HOST_ARCH_32_BIT 1
37 #define V8_HOST_CAN_READ_UNALIGNED 1
35 #elif defined(__AARCH64EL__) 38 #elif defined(__AARCH64EL__)
36 #define V8_HOST_ARCH_ARM64 1 39 #define V8_HOST_ARCH_ARM64 1
37 #define V8_HOST_ARCH_64_BIT 1 40 #define V8_HOST_ARCH_64_BIT 1
41 #define V8_HOST_CAN_READ_UNALIGNED 1
38 #elif defined(__ARMEL__) 42 #elif defined(__ARMEL__)
39 #define V8_HOST_ARCH_ARM 1 43 #define V8_HOST_ARCH_ARM 1
40 #define V8_HOST_ARCH_32_BIT 1 44 #define V8_HOST_ARCH_32_BIT 1
41 #elif defined(__mips64) 45 #elif defined(__mips64)
42 #define V8_HOST_ARCH_MIPS64 1 46 #define V8_HOST_ARCH_MIPS64 1
43 #define V8_HOST_ARCH_64_BIT 1 47 #define V8_HOST_ARCH_64_BIT 1
44 #elif defined(__MIPSEB__) || defined(__MIPSEL__) 48 #elif defined(__MIPSEB__) || defined(__MIPSEL__)
45 #define V8_HOST_ARCH_MIPS 1 49 #define V8_HOST_ARCH_MIPS 1
46 #define V8_HOST_ARCH_32_BIT 1 50 #define V8_HOST_ARCH_32_BIT 1
47 #else 51 #else
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 #define V8_TARGET_LITTLE_ENDIAN 1 156 #define V8_TARGET_LITTLE_ENDIAN 1
153 #else 157 #else
154 #error Unknown target architecture endianness 158 #error Unknown target architecture endianness
155 #endif 159 #endif
156 160
157 // Number of bits to represent the page size for paged spaces. The value of 20 161 // Number of bits to represent the page size for paged spaces. The value of 20
158 // gives 1Mb bytes per page. 162 // gives 1Mb bytes per page.
159 const int kPageSizeBits = 20; 163 const int kPageSizeBits = 20;
160 164
161 #endif // V8_BASE_BUILD_CONFIG_H_ 165 #endif // V8_BASE_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698