Changeset 59041 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
May 8, 2010, 5:38:43 PM (15 years ago)
Author:
[email protected]
Message:

2010-05-08 Laszlo Gombos <Laszlo Gombos>

Reviewed by Gavin Barraclough.

Refactor YARR and YARR_JIT default rules in Platform.h
https://bugs.webkit.org/show_bug.cgi?id=38727

Turn on YARR and YARR JIT by default of JIT is enabled.
Ports can overrule this default decisions as they wish.

  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r58939 r59041  
    10091009#if !defined(ENABLE_YARR_JIT)
    10101010
    1011 /* YARR supports x86 & x86-64, and has been tested on Mac and Windows. */
    1012 #if (CPU(X86) && PLATFORM(MAC)) \
    1013     || (CPU(X86_64) && PLATFORM(MAC)) \
    1014     || (CPU(ARM_THUMB2) && PLATFORM(IPHONE)) \
    1015     || (CPU(ARM_THUMB2) && PLATFORM(ANDROID) && ENABLE(ANDROID_JSC_JIT)) \
    1016     || (CPU(X86) && PLATFORM(WIN)) \
    1017     || (CPU(X86) && PLATFORM(WX))
     1011/* YARR and YARR_JIT is usually turned on for JIT enabled ports */
     1012#if ENABLE(JIT)
    10181013#define ENABLE_YARR 1
    10191014#define ENABLE_YARR_JIT 1
    1020 #endif
    1021 
    1022 #if PLATFORM(QT)
    1023 #if (CPU(X86) && OS(WINDOWS) && COMPILER(MINGW) && GCC_VERSION >= 40100) \
    1024     || (CPU(X86_64) && OS(WINDOWS) && COMPILER(MINGW64) && GCC_VERSION >= 40100) \
    1025     || (CPU(X86) && OS(WINDOWS) && COMPILER(MSVC)) \
    1026     || (CPU(X86) && OS(LINUX) && GCC_VERSION >= 40100) \
    1027     || (CPU(X86_64) && OS(LINUX) && GCC_VERSION >= 40100) \
    1028     || (CPU(ARM_TRADITIONAL) && OS(LINUX)) \
    1029     || (CPU(ARM_TRADITIONAL) && OS(SYMBIAN) && COMPILER(RVCT)) \
    1030     || (CPU(MIPS) && OS(LINUX)) \
    1031     || (CPU(X86) && OS(DARWIN)) \
    1032     || (CPU(X86_64) && OS(DARWIN))
    1033 #define ENABLE_YARR 1
    1034 #define ENABLE_YARR_JIT 1
    1035 #endif
    10361015#endif
    10371016
Note: See TracChangeset for help on using the changeset viewer.