Changeset 164032 in webkit
- Timestamp:
- Feb 13, 2014 10:00:47 AM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r164018 r164032 1 2014-02-13 Tamas Gergely <tgergely.u-szeged@partner.samsung.com> 2 3 Code cleanup: remove gcc<4.7 guards. 4 https://bugs.webkit.org/show_bug.cgi?id=128729 5 6 Reviewed by Anders Carlsson. 7 8 Remove GCC_VERSION_AT_LEAST guards when it checks for pre-4.7 versions, 9 as WK does not compile with earlier gcc versions. 10 11 * assembler/MIPSAssembler.h: 12 (JSC::MIPSAssembler::cacheFlush): 13 * interpreter/StackVisitor.cpp: 14 (JSC::printif): 15 1 16 2014-02-12 Mark Lam <mark.lam@apple.com> 2 17 -
trunk/Source/JavaScriptCore/assembler/MIPSAssembler.h
r159635 r164032 871 871 static void cacheFlush(void* code, size_t size) 872 872 { 873 #if GCC_VERSION_AT_LEAST(4, 3, 0)874 #if WTF_MIPS_ISA_REV(2) && !GCC_VERSION_AT_LEAST(4, 4, 3)875 int lineSize;876 asm("rdhwr %0, $1" : "=r" (lineSize));877 //878 // Modify "start" and "end" to avoid GCC 4.3.0-4.4.2 bug in879 // mips_expand_synci_loop that may execute synci one more time.880 // "start" points to the fisrt byte of the cache line.881 // "end" points to the last byte of the line before the last cache line.882 // Because size is always a multiple of 4, this is safe to set883 // "end" to the last byte.884 //885 intptr_t start = reinterpret_cast<intptr_t>(code) & (-lineSize);886 intptr_t end = ((reinterpret_cast<intptr_t>(code) + size - 1) & (-lineSize)) - 1;887 __builtin___clear_cache(reinterpret_cast<char*>(start), reinterpret_cast<char*>(end));888 #else889 873 intptr_t end = reinterpret_cast<intptr_t>(code) + size; 890 874 __builtin___clear_cache(reinterpret_cast<char*>(code), reinterpret_cast<char*>(end)); 891 #endif892 #else893 _flush_cache(reinterpret_cast<char*>(code), size, BCACHE);894 #endif895 875 } 896 876 -
trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp
r163844 r164032 348 348 printIndents(indentLevels); 349 349 350 #if COMPILER(CLANG) || (COMPILER(GCC) && GCC_VERSION_AT_LEAST(4, 6, 0))350 #if COMPILER(CLANG) || COMPILER(GCC) 351 351 #pragma GCC diagnostic push 352 352 #pragma GCC diagnostic ignored "-Wformat-nonliteral" … … 356 356 WTF::dataLogFV(format, argList); 357 357 358 #if COMPILER(CLANG) || (COMPILER(GCC) && GCC_VERSION_AT_LEAST(4, 6, 0))358 #if COMPILER(CLANG) || COMPILER(GCC) 359 359 #pragma GCC diagnostic pop 360 360 #endif -
trunk/Source/WTF/ChangeLog
r164018 r164032 1 2014-02-13 Tamas Gergely <tgergely.u-szeged@partner.samsung.com> 2 3 Code cleanup: remove gcc<4.7 guards. 4 https://bugs.webkit.org/show_bug.cgi?id=128729 5 6 Reviewed by Anders Carlsson. 7 8 Remove GCC_VERSION_AT_LEAST guards when it checks for pre-4.7 versions, 9 as WK does not compile with earlier gcc versions. 10 11 * wtf/Assertions.cpp: 12 * wtf/Platform.h: 13 1 14 2014-02-12 Mark Lam <mark.lam@apple.com> 2 15 -
trunk/Source/WTF/wtf/Assertions.cpp
r161601 r164032 149 149 } 150 150 151 #if COMPILER(CLANG) || (COMPILER(GCC) && GCC_VERSION_AT_LEAST(4, 6, 0))151 #if COMPILER(CLANG) || COMPILER(GCC) 152 152 #pragma GCC diagnostic push 153 153 #pragma GCC diagnostic ignored "-Wformat-nonliteral" … … 182 182 } 183 183 184 #if COMPILER(CLANG) || (COMPILER(GCC) && GCC_VERSION_AT_LEAST(4, 6, 0))184 #if COMPILER(CLANG) || COMPILER(GCC) 185 185 #pragma GCC diagnostic pop 186 186 #endif -
trunk/Source/WTF/wtf/Platform.h
r163887 r164032 299 299 #endif 300 300 301 #if CPU(ARM_NEON) && (!COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0))301 #if CPU(ARM_NEON) 302 302 // All NEON intrinsics usage can be disabled by this macro. 303 303 #define HAVE_ARM_NEON_INTRINSICS 1 … … 643 643 #endif 644 644 645 /* Disable the JIT on versions of GCC prior to 4.1 */646 #if !defined(ENABLE_JIT) && COMPILER(GCC) && !GCC_VERSION_AT_LEAST(4, 1, 0)647 #define ENABLE_JIT 0648 #endif649 650 645 /* The JIT is enabled by default on all x86, x86-64, ARM & MIPS platforms except Windows. */ 651 646 #if !defined(ENABLE_JIT) \ 652 647 && (CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(MIPS)) \ 653 && (OS(DARWIN) || !COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 1, 0)) \654 648 && !OS(WINCE) \ 655 649 && !OS(WINDOWS)
Note: See TracChangeset
for help on using the changeset viewer.