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


Ignore:
Timestamp:
Apr 23, 2009, 5:39:47 PM (16 years ago)
Author:
[email protected]
Message:

2009-04-23 Gavin Barraclough <[email protected]>

Rubber stamped by salty sea dogs Sam & Geoff.

Enable YARR_JIT by default (where supported), replacing WREC.

  • wtf/Platform.h:
File:
1 edited

Legend:

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

    r42488 r42802  
    500500#endif
    501501
    502 /* WREC supports x86 & x86-64, and has been tested on Mac and Windows ('cept on 64-bit on Mac). */
    503 #if (!defined(ENABLE_WREC) && PLATFORM(X86) && PLATFORM(MAC)) \
    504  || (!defined(ENABLE_WREC) && PLATFORM(X86_64) && PLATFORM(MAC)) \
    505  || (!defined(ENABLE_WREC) && PLATFORM(X86) && PLATFORM(WIN))
    506 #define ENABLE_WREC 1
    507 #endif
    508 
    509502/* Yet Another Regex Runtime. */
    510 #define ENABLE_YARR 0
    511 #define ENABLE_YARR_JIT 0
     503/* YARR supports x86 & x86-64, and has been tested on Mac and Windows. */
     504#if (!defined(ENABLE_YARR_JIT) && PLATFORM(X86) && PLATFORM(MAC)) \
     505 || (!defined(ENABLE_YARR_JIT) && PLATFORM(X86_64) && PLATFORM(MAC)) \
     506 || (!defined(ENABLE_YARR_JIT) && PLATFORM(X86) && PLATFORM(WIN))
     507#define ENABLE_YARR 1
     508#define ENABLE_YARR_JIT 1
     509#endif
     510/* Sanity Check */
    512511#if ENABLE(YARR_JIT) && !ENABLE(YARR)
    513512#error "YARR_JIT requires YARR"
    514513#endif
    515514
    516 #if ENABLE(JIT) || ENABLE(WREC)
     515#if ENABLE(JIT) || ENABLE(YARR_JIT)
    517516#define ENABLE_ASSEMBLER 1
    518517#endif
Note: See TracChangeset for help on using the changeset viewer.