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

Side by Side Diff: src/globals.h

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | « src/global-handles.cc ('k') | src/handles.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #elif defined(__MIPSEL__) 102 #elif defined(__MIPSEL__)
103 #define V8_HOST_ARCH_MIPS 1 103 #define V8_HOST_ARCH_MIPS 1
104 #define V8_HOST_ARCH_32_BIT 1 104 #define V8_HOST_ARCH_32_BIT 1
105 #else 105 #else
106 #error "Host architecture was not detected as supported by v8" 106 #error "Host architecture was not detected as supported by v8"
107 #endif 107 #endif
108 108
109 // Target architecture detection. This may be set externally. If not, detect 109 // Target architecture detection. This may be set externally. If not, detect
110 // in the same way as the host architecture, that is, target the native 110 // in the same way as the host architecture, that is, target the native
111 // environment as presented by the compiler. 111 // environment as presented by the compiler.
112 #if !defined(V8_TARGET_ARCH_X64) && !defined(V8_TARGET_ARCH_IA32) && \ 112 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && \
113 !defined(V8_TARGET_ARCH_A64) && !defined(V8_TARGET_ARCH_ARM) && \ 113 !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_A64 && !V8_TARGET_ARCH_MIPS
114 !defined(V8_TARGET_ARCH_MIPS)
115 #if defined(_M_X64) || defined(__x86_64__) 114 #if defined(_M_X64) || defined(__x86_64__)
116 #define V8_TARGET_ARCH_X64 1 115 #define V8_TARGET_ARCH_X64 1
117 #elif defined(_M_IX86) || defined(__i386__) 116 #elif defined(_M_IX86) || defined(__i386__)
118 #define V8_TARGET_ARCH_IA32 1 117 #define V8_TARGET_ARCH_IA32 1
119 #elif defined(__AARCH64EL__) 118 #elif defined(__AARCH64EL__)
120 #define V8_TARGET_ARCH_A64 1 119 #define V8_TARGET_ARCH_A64 1
121 #elif defined(__ARMEL__) 120 #elif defined(__ARMEL__)
122 #define V8_TARGET_ARCH_ARM 1 121 #define V8_TARGET_ARCH_ARM 1
123 #elif defined(__MIPSEL__) 122 #elif defined(__MIPSEL__)
124 #define V8_TARGET_ARCH_MIPS 1 123 #define V8_TARGET_ARCH_MIPS 1
125 #else 124 #else
126 #error Target architecture was not detected as supported by v8 125 #error Target architecture was not detected as supported by v8
127 #endif 126 #endif
128 #endif 127 #endif
129 128
130 // Check for supported combinations of host and target architectures. 129 // Check for supported combinations of host and target architectures.
131 #if defined(V8_TARGET_ARCH_IA32) && !defined(V8_HOST_ARCH_IA32) 130 #if V8_TARGET_ARCH_IA32 && !V8_HOST_ARCH_IA32
132 #error Target architecture ia32 is only supported on ia32 host 131 #error Target architecture ia32 is only supported on ia32 host
133 #endif 132 #endif
134 #if defined(V8_TARGET_ARCH_X64) && !defined(V8_HOST_ARCH_X64) 133 #if V8_TARGET_ARCH_X64 && !V8_HOST_ARCH_X64
135 #error Target architecture x64 is only supported on x64 host 134 #error Target architecture x64 is only supported on x64 host
136 #endif 135 #endif
137 #if (defined(V8_TARGET_ARCH_ARM) && \ 136 #if (V8_TARGET_ARCH_ARM && !(V8_HOST_ARCH_IA32 || V8_HOST_ARCH_ARM))
138 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_ARM)))
139 #error Target architecture arm is only supported on arm and ia32 host 137 #error Target architecture arm is only supported on arm and ia32 host
140 #endif 138 #endif
141 #if (defined(V8_TARGET_ARCH_A64) && \ 139 #if (V8_TARGET_ARCH_A64 && !(V8_HOST_ARCH_X64 || V8_HOST_ARCH_A64))
142 !(defined(V8_HOST_ARCH_X64) || defined(V8_HOST_ARCH_A64)))
143 #error Target architecture a64 is only supported on a64 and x64 host 140 #error Target architecture a64 is only supported on a64 and x64 host
144 #endif 141 #endif
145 #if (defined(V8_TARGET_ARCH_MIPS) && \ 142 #if (V8_TARGET_ARCH_MIPS && !(V8_HOST_ARCH_IA32 || V8_HOST_ARCH_MIPS))
146 !(defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_MIPS)))
147 #error Target architecture mips is only supported on mips and ia32 host 143 #error Target architecture mips is only supported on mips and ia32 host
148 #endif 144 #endif
149 145
150 // Determine whether we are running in a simulated environment. 146 // Determine whether we are running in a simulated environment.
151 // Setting USE_SIMULATOR explicitly from the build script will force 147 // Setting USE_SIMULATOR explicitly from the build script will force
152 // the use of a simulated environment. 148 // the use of a simulated environment.
153 #if !defined(USE_SIMULATOR) 149 #if !defined(USE_SIMULATOR)
154 #if (defined(V8_TARGET_ARCH_A64) && !defined(V8_HOST_ARCH_A64)) 150 #if (V8_TARGET_ARCH_A64 && !V8_HOST_ARCH_A64)
155 #define USE_SIMULATOR 1 151 #define USE_SIMULATOR 1
156 #endif 152 #endif
157 #if (defined(V8_TARGET_ARCH_ARM) && !defined(V8_HOST_ARCH_ARM)) 153 #if (V8_TARGET_ARCH_ARM && !V8_HOST_ARCH_ARM)
158 #define USE_SIMULATOR 1 154 #define USE_SIMULATOR 1
159 #endif 155 #endif
160 #if (defined(V8_TARGET_ARCH_MIPS) && !defined(V8_HOST_ARCH_MIPS)) 156 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS)
161 #define USE_SIMULATOR 1 157 #define USE_SIMULATOR 1
162 #endif 158 #endif
163 #endif 159 #endif
164 160
165 // Determine architecture endiannes (we only support little-endian). 161 // Determine architecture endiannes (we only support little-endian).
166 #if defined(V8_TARGET_ARCH_IA32) 162 #if V8_TARGET_ARCH_IA32
167 #define V8_TARGET_LITTLE_ENDIAN 1 163 #define V8_TARGET_LITTLE_ENDIAN 1
168 #elif defined(V8_TARGET_ARCH_X64) 164 #elif V8_TARGET_ARCH_X64
169 #define V8_TARGET_LITTLE_ENDIAN 1 165 #define V8_TARGET_LITTLE_ENDIAN 1
170 #elif defined(V8_TARGET_ARCH_ARM) 166 #elif V8_TARGET_ARCH_ARM
171 #define V8_TARGET_LITTLE_ENDIAN 1 167 #define V8_TARGET_LITTLE_ENDIAN 1
172 #elif defined(V8_TARGET_ARCH_A64) 168 #elif V8_TARGET_ARCH_A64
173 #define V8_TARGET_LITTLE_ENDIAN 1 169 #define V8_TARGET_LITTLE_ENDIAN 1
174 #elif defined(V8_TARGET_ARCH_MIPS) 170 #elif V8_TARGET_ARCH_MIPS
175 #define V8_TARGET_LITTLE_ENDIAN 1 171 #define V8_TARGET_LITTLE_ENDIAN 1
176 #else 172 #else
177 #error Unknown target architecture endiannes 173 #error Unknown target architecture endiannes
178 #endif 174 #endif
179 175
180 // Support for alternative bool type. This is only enabled if the code is 176 // Support for alternative bool type. This is only enabled if the code is
181 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 177 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
182 // For instance, 'bool b = "false";' results in b == true! This is a hidden 178 // For instance, 'bool b = "false";' results in b == true! This is a hidden
183 // source of bugs. 179 // source of bugs.
184 // However, redefining the bool type does have some negative impact on some 180 // However, redefining the bool type does have some negative impact on some
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // the backend, so both modes are represented by the kStrictMode value. 443 // the backend, so both modes are represented by the kStrictMode value.
448 enum StrictModeFlag { 444 enum StrictModeFlag {
449 kNonStrictMode, 445 kNonStrictMode,
450 kStrictMode 446 kStrictMode
451 }; 447 };
452 448
453 449
454 } } // namespace v8::internal 450 } } // namespace v8::internal
455 451
456 #endif // V8_GLOBALS_H_ 452 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | src/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698