Changeset 147894 in webkit
- Timestamp:
- Apr 7, 2013 11:20:12 PM (11 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r147892 r147894 1 2013-04-07 Benjamin Poulain <benjamin@webkit.org> 2 3 Remove the android code from WebKit Template Framework 4 https://bugs.webkit.org/show_bug.cgi?id=114138 5 6 Reviewed by Dirk Schulze. 7 8 * wtf/Assertions.cpp: 9 * wtf/Atomics.h: 10 * wtf/MathExtras.h: 11 * wtf/Platform.h: 12 * wtf/ThreadIdentifierDataPthreads.cpp: 13 1 14 2013-04-07 Oliver Hunt <oliver@apple.com> 2 15 -
trunk/Source/WTF/wtf/Assertions.cpp
r141919 r147894 62 62 #endif 63 63 64 #if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)64 #if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__)) 65 65 #include <cxxabi.h> 66 66 #include <dlfcn.h> 67 67 #include <execinfo.h> 68 #endif69 70 #if OS(ANDROID)71 #include "android/log.h"72 68 #endif 73 69 … … 120 116 #elif PLATFORM(BLACKBERRY) 121 117 BBLOGV(BlackBerry::Platform::LogLevelCritical, format, args); 122 #elif OS(ANDROID)123 __android_log_vprint(ANDROID_LOG_WARN, "WebKit", format, args);124 118 #elif HAVE(ISDEBUGGERPRESENT) 125 119 if (IsDebuggerPresent()) { … … 246 240 void WTFGetBacktrace(void** stack, int* size) 247 241 { 248 #if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)242 #if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__)) 249 243 *size = backtrace(stack, *size); 250 244 #elif OS(WINDOWS) && !OS(WINCE) … … 285 279 # define WTF_USE_BACKTRACE_SYMBOLS 1 286 280 # endif 287 # elif !OS(ANDROID)288 # define WTF_USE_DLADDR 1289 281 # endif 290 282 #endif -
trunk/Source/WTF/wtf/Atomics.h
r140930 r147894 68 68 #elif OS(QNX) 69 69 #include <atomic.h> 70 #elif OS(ANDROID)71 #include <sys/atomics.h>72 70 #endif 73 71 … … 100 98 inline int atomicIncrement(int volatile* addend) { return static_cast<int>(atomic_add_value(reinterpret_cast<unsigned volatile*>(addend), 1)) + 1; } 101 99 inline int atomicDecrement(int volatile* addend) { return static_cast<int>(atomic_sub_value(reinterpret_cast<unsigned volatile*>(addend), 1)) - 1; } 102 103 #elif OS(ANDROID)104 #define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1105 106 // Note, __atomic_{inc, dec}() return the previous value of addend's content.107 inline int atomicIncrement(int volatile* addend) { return __atomic_inc(addend) + 1; }108 inline int atomicDecrement(int volatile* addend) { return __atomic_dec(addend) - 1; }109 100 110 101 #elif COMPILER(GCC) && !CPU(SPARC64) // sizeof(_Atomic_word) != sizeof(int) on sparc64 gcc -
trunk/Source/WTF/wtf/MathExtras.h
r143687 r147894 147 147 #endif 148 148 149 #if OS(ANDROID) ||COMPILER(MSVC)150 // ANDROID andMSVC's math.h does not currently supply log2 or log2f.149 #if COMPILER(MSVC) 150 // MSVC's math.h does not currently supply log2 or log2f. 151 151 inline double log2(double num) 152 152 { 153 // This constant is roughly M_LN2, which is not provided by default on Windows and Android.153 // This constant is roughly M_LN2, which is not provided by default on Windows. 154 154 return log(num) / 0.693147180559945309417232121458176568; 155 155 } … … 157 157 inline float log2f(float num) 158 158 { 159 // This constant is roughly M_LN2, which is not provided by default on Windows and Android.159 // This constant is roughly M_LN2, which is not provided by default on Windows. 160 160 return logf(num) / 0.693147180559945309417232121458176568f; 161 161 } -
trunk/Source/WTF/wtf/Platform.h
r147881 r147894 182 182 && !defined(__EABI__) \ 183 183 && !defined(__VFP_FP__) \ 184 && !defined(_WIN32_WCE) \ 185 && !defined(ANDROID) 184 && !defined(_WIN32_WCE) 186 185 #define WTF_CPU_MIDDLE_ENDIAN 1 187 186 … … 325 324 virtual memory, not to choose a GUI toolkit ==== */ 326 325 327 /* OS(ANDROID) - Android */328 #ifdef ANDROID329 #define WTF_OS_ANDROID 1330 #endif331 332 326 /* OS(AIX) - AIX */ 333 327 #ifdef _AIX … … 417 411 /* OS(UNIX) - Any Unix-like system */ 418 412 #if OS(AIX) \ 419 || OS(ANDROID) \420 413 || OS(DARWIN) \ 421 414 || OS(FREEBSD) \ … … 599 592 #endif /* OS(UNIX) */ 600 593 601 #if OS(UNIX) && !OS( ANDROID) && !OS(QNX)594 #if OS(UNIX) && !OS(QNX) 602 595 #define HAVE_LANGINFO_H 1 603 596 #endif … … 619 612 #endif 620 613 621 #if !OS(WINDOWS) && !OS(SOLARIS) && !OS(ANDROID)614 #if !OS(WINDOWS) && !OS(SOLARIS) 622 615 #define HAVE_TM_GMTOFF 1 623 616 #define HAVE_TM_ZONE 1 -
trunk/Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp
r126208 r147894 37 37 #include "Threading.h" 38 38 39 #if OS( ANDROID) || OS(HURD)39 #if OS(HURD) 40 40 // PTHREAD_KEYS_MAX is not defined in bionic nor in Hurd, so explicitly define it here. 41 41 #define PTHREAD_KEYS_MAX 1024
Note: See TracChangeset
for help on using the changeset viewer.