OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 #if defined(arm) \ | 162 #if defined(arm) \ |
163 || defined(__arm__) \ | 163 || defined(__arm__) \ |
164 || defined(ARM) \ | 164 || defined(ARM) \ |
165 || defined(_ARM_) | 165 || defined(_ARM_) |
166 #define WTF_CPU_ARM 1 | 166 #define WTF_CPU_ARM 1 |
167 | 167 |
168 #if defined(__ARM_PCS_VFP) | 168 #if defined(__ARM_PCS_VFP) |
169 #define WTF_CPU_ARM_HARDFP 1 | 169 #define WTF_CPU_ARM_HARDFP 1 |
170 #endif | 170 #endif |
171 | 171 |
172 #if defined(__ARMEB__) || (COMPILER(RVCT) && defined(__BIG_ENDIAN)) | 172 #if defined(__ARMEB__) |
173 #define WTF_CPU_BIG_ENDIAN 1 | 173 #define WTF_CPU_BIG_ENDIAN 1 |
174 | 174 |
175 #elif !defined(__ARM_EABI__) \ | 175 #elif !defined(__ARM_EABI__) \ |
176 && !defined(__EABI__) \ | 176 && !defined(__EABI__) \ |
177 && !defined(__VFP_FP__) \ | 177 && !defined(__VFP_FP__) \ |
178 && !defined(_WIN32_WCE) \ | 178 && !defined(_WIN32_WCE) \ |
179 && !defined(ANDROID) | 179 && !defined(ANDROID) |
180 #define WTF_CPU_MIDDLE_ENDIAN 1 | 180 #define WTF_CPU_MIDDLE_ENDIAN 1 |
181 | 181 |
182 #endif | 182 #endif |
(...skipping 26 matching lines...) Expand all Loading... |
209 #define WTF_ARM_ARCH_VERSION 6 | 209 #define WTF_ARM_ARCH_VERSION 6 |
210 | 210 |
211 #elif defined(__ARM_ARCH_7A__) \ | 211 #elif defined(__ARM_ARCH_7A__) \ |
212 || defined(__ARM_ARCH_7R__) \ | 212 || defined(__ARM_ARCH_7R__) \ |
213 || defined(__ARM_ARCH_7S__) | 213 || defined(__ARM_ARCH_7S__) |
214 #define WTF_ARM_ARCH_VERSION 7 | 214 #define WTF_ARM_ARCH_VERSION 7 |
215 | 215 |
216 /* MSVC sets _M_ARM */ | 216 /* MSVC sets _M_ARM */ |
217 #elif defined(_M_ARM) | 217 #elif defined(_M_ARM) |
218 #define WTF_ARM_ARCH_VERSION _M_ARM | 218 #define WTF_ARM_ARCH_VERSION _M_ARM |
219 | |
220 /* RVCT sets _TARGET_ARCH_ARM */ | |
221 #elif defined(__TARGET_ARCH_ARM) | |
222 #define WTF_ARM_ARCH_VERSION __TARGET_ARCH_ARM | |
223 | |
224 #if defined(__TARGET_ARCH_5E) \ | |
225 || defined(__TARGET_ARCH_5TE) \ | |
226 || defined(__TARGET_ARCH_5TEJ) | |
227 /*ARMv5TE requires allocators to use aligned memory*/ | |
228 #define WTF_USE_ARENA_ALLOC_ALIGNMENT_INTEGER 1 | |
229 #endif | |
230 | |
231 #else | 219 #else |
232 #define WTF_ARM_ARCH_VERSION 0 | 220 #define WTF_ARM_ARCH_VERSION 0 |
233 | 221 |
234 #endif | 222 #endif |
235 | 223 |
236 /* Set WTF_THUMB_ARCH_VERSION */ | 224 /* Set WTF_THUMB_ARCH_VERSION */ |
237 #if defined(__ARM_ARCH_4T__) | 225 #if defined(__ARM_ARCH_4T__) |
238 #define WTF_THUMB_ARCH_VERSION 1 | 226 #define WTF_THUMB_ARCH_VERSION 1 |
239 | 227 |
240 #elif defined(__ARM_ARCH_5T__) \ | 228 #elif defined(__ARM_ARCH_5T__) \ |
241 || defined(__ARM_ARCH_5TE__) \ | 229 || defined(__ARM_ARCH_5TE__) \ |
242 || defined(__ARM_ARCH_5TEJ__) | 230 || defined(__ARM_ARCH_5TEJ__) |
243 #define WTF_THUMB_ARCH_VERSION 2 | 231 #define WTF_THUMB_ARCH_VERSION 2 |
244 | 232 |
245 #elif defined(__ARM_ARCH_6J__) \ | 233 #elif defined(__ARM_ARCH_6J__) \ |
246 || defined(__ARM_ARCH_6K__) \ | 234 || defined(__ARM_ARCH_6K__) \ |
247 || defined(__ARM_ARCH_6Z__) \ | 235 || defined(__ARM_ARCH_6Z__) \ |
248 || defined(__ARM_ARCH_6ZK__) \ | 236 || defined(__ARM_ARCH_6ZK__) \ |
249 || defined(__ARM_ARCH_6M__) | 237 || defined(__ARM_ARCH_6M__) |
250 #define WTF_THUMB_ARCH_VERSION 3 | 238 #define WTF_THUMB_ARCH_VERSION 3 |
251 | 239 |
252 #elif defined(__ARM_ARCH_6T2__) \ | 240 #elif defined(__ARM_ARCH_6T2__) \ |
253 || defined(__ARM_ARCH_7__) \ | 241 || defined(__ARM_ARCH_7__) \ |
254 || defined(__ARM_ARCH_7A__) \ | 242 || defined(__ARM_ARCH_7A__) \ |
255 || defined(__ARM_ARCH_7M__) \ | 243 || defined(__ARM_ARCH_7M__) \ |
256 || defined(__ARM_ARCH_7R__) \ | 244 || defined(__ARM_ARCH_7R__) \ |
257 || defined(__ARM_ARCH_7S__) | 245 || defined(__ARM_ARCH_7S__) |
258 #define WTF_THUMB_ARCH_VERSION 4 | 246 #define WTF_THUMB_ARCH_VERSION 4 |
259 | 247 |
260 /* RVCT sets __TARGET_ARCH_THUMB */ | |
261 #elif defined(__TARGET_ARCH_THUMB) | |
262 #define WTF_THUMB_ARCH_VERSION __TARGET_ARCH_THUMB | |
263 | |
264 #else | 248 #else |
265 #define WTF_THUMB_ARCH_VERSION 0 | 249 #define WTF_THUMB_ARCH_VERSION 0 |
266 #endif | 250 #endif |
267 | 251 |
268 | 252 |
269 /* CPU(ARMV5_OR_LOWER) - ARM instruction set v5 or earlier */ | 253 /* CPU(ARMV5_OR_LOWER) - ARM instruction set v5 or earlier */ |
270 /* On ARMv5 and below the natural alignment is required. | 254 /* On ARMv5 and below the natural alignment is required. |
271 And there are some other differences for v5 or earlier. */ | 255 And there are some other differences for v5 or earlier. */ |
272 #if !defined(ARMV5_OR_LOWER) && !WTF_ARM_ARCH_AT_LEAST(6) | 256 #if !defined(ARMV5_OR_LOWER) && !WTF_ARM_ARCH_AT_LEAST(6) |
273 #define WTF_CPU_ARMV5_OR_LOWER 1 | 257 #define WTF_CPU_ARMV5_OR_LOWER 1 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 | 448 |
465 #if OS(UNIX) && !OS(ANDROID) | 449 #if OS(UNIX) && !OS(ANDROID) |
466 #define HAVE_LANGINFO_H 1 | 450 #define HAVE_LANGINFO_H 1 |
467 #endif | 451 #endif |
468 | 452 |
469 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__) | 453 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__) |
470 #define HAVE_PTHREAD_NP_H 1 | 454 #define HAVE_PTHREAD_NP_H 1 |
471 #endif | 455 #endif |
472 | 456 |
473 #if !defined(HAVE_VASPRINTF) | 457 #if !defined(HAVE_VASPRINTF) |
474 #if !COMPILER(MSVC) && !COMPILER(RVCT) && !COMPILER(MINGW) && !(COMPILER(GCC) &&
OS(QNX)) | 458 #if !COMPILER(MSVC) && !COMPILER(MINGW) && !(COMPILER(GCC) && OS(QNX)) |
475 #define HAVE_VASPRINTF 1 | 459 #define HAVE_VASPRINTF 1 |
476 #endif | 460 #endif |
477 #endif | 461 #endif |
478 | 462 |
479 #if !defined(HAVE_STRNSTR) | 463 #if !defined(HAVE_STRNSTR) |
480 #if OS(DARWIN) || (OS(FREEBSD) && !defined(__GLIBC__)) | 464 #if OS(DARWIN) || (OS(FREEBSD) && !defined(__GLIBC__)) |
481 #define HAVE_STRNSTR 1 | 465 #define HAVE_STRNSTR 1 |
482 #endif | 466 #endif |
483 #endif | 467 #endif |
484 | 468 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 506 |
523 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) | 507 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) |
524 #define ENABLE_THREADING_LIBDISPATCH 1 | 508 #define ENABLE_THREADING_LIBDISPATCH 1 |
525 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) | 509 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) |
526 #define ENABLE_THREADING_OPENMP 1 | 510 #define ENABLE_THREADING_OPENMP 1 |
527 #elif !defined(THREADING_GENERIC) | 511 #elif !defined(THREADING_GENERIC) |
528 #define ENABLE_THREADING_GENERIC 1 | 512 #define ENABLE_THREADING_GENERIC 1 |
529 #endif | 513 #endif |
530 | 514 |
531 #endif /* WTF_Platform_h */ | 515 #endif /* WTF_Platform_h */ |
OLD | NEW |