Changeset 44886 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Jun 19, 2009, 6:07:06 PM (16 years ago)
Author:
[email protected]
Message:

2009-06-19 Gabor Loki <[email protected]>

Reviewed by Gavin Barraclough.

Reorganize ARM architecture specific macros.
Use PLATFORM_ARM_ARCH(7) instead of PLATFORM(ARM_V7).

Bug 24986: ARM JIT port
<https://bugs.webkit.org/show_bug.cgi?id=24986>

  • assembler/ARMv7Assembler.h:
  • assembler/AbstractMacroAssembler.h: (JSC::AbstractMacroAssembler::Imm32::Imm32):
  • assembler/MacroAssembler.h:
  • assembler/MacroAssemblerCodeRef.h: (JSC::MacroAssemblerCodePtr::MacroAssemblerCodePtr):
  • jit/ExecutableAllocator.h: (JSC::ExecutableAllocator::cacheFlush):
  • jit/JIT.h:
  • jit/JITInlineMethods.h: (JSC::JIT::restoreArgumentReferenceForTrampoline):
  • jit/JITStubs.cpp:
  • jit/JITStubs.h:
  • wtf/Platform.h:
  • yarr/RegexJIT.cpp: (JSC::Yarr::RegexGenerator::generateEnter): (JSC::Yarr::RegexGenerator::generateReturn):
File:
1 edited

Legend:

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

    r44765 r44886  
    228228#define WTF_PLATFORM_FORCE_PACK 1
    229229#endif
     230#define ARM_ARCH_VERSION 3
     231#if defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__)
     232#undef ARM_ARCH_VERSION
     233#define ARM_ARCH_VERSION 4
     234#endif
     235#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) \
     236        || defined(__ARM_ARCH_5E__) || defined(__ARM_ARCH_5TE__) \
     237        || defined(__ARM_ARCH_5TEJ__)
     238#undef ARM_ARCH_VERSION
     239#define ARM_ARCH_VERSION 5
     240#endif
     241#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
     242     || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \
     243     || defined(__ARM_ARCH_6ZK__)
     244#undef ARM_ARCH_VERSION
     245#define ARM_ARCH_VERSION 6
    230246#endif
    231247#if defined(__ARM_ARCH_7A__)
    232 #define WTF_PLATFORM_ARM_V7 1
    233 #endif
     248#undef ARM_ARCH_VERSION
     249#define ARM_ARCH_VERSION 7
     250#endif
     251#endif /* ARM */
     252#define PLATFORM_ARM_ARCH(N) (PLATFORM(ARM) && ARM_ARCH_VERSION >= N)
    234253
    235254/* PLATFORM(X86) */
     
    520539    #define ENABLE_JIT 1
    521540    #define WTF_USE_JIT_STUB_ARGUMENT_VA_LIST 1
    522 #elif PLATFORM(ARM_V7) && PLATFORM(IPHONE)
     541#elif PLATFORM_ARM_ARCH(7) && PLATFORM(IPHONE)
    523542    /* Under development, temporarily disabled until 16Mb link range limit in assembler is fixed. */
    524543    #define ENABLE_JIT 0
     
    569588 || (!defined(ENABLE_YARR_JIT) && PLATFORM(X86_64) && PLATFORM(MAC)) \
    570589 /* Under development, temporarily disabled until 16Mb link range limit in assembler is fixed. */ \
    571  || (!defined(ENABLE_YARR_JIT) && PLATFORM(ARM_V7) && PLATFORM(IPHONE) && 0) \
     590 || (!defined(ENABLE_YARR_JIT) && PLATFORM_ARM_ARCH(7) && PLATFORM(IPHONE) && 0) \
    572591 || (!defined(ENABLE_YARR_JIT) && PLATFORM(X86) && PLATFORM(WIN))
    573592#define ENABLE_YARR 1
     
    584603/* Setting this flag prevents the assembler from using RWX memory; this may improve
    585604   security but currectly comes at a significant performance cost. */
    586 #if PLATFORM(ARM_V7) && PLATFORM(IPHONE)
     605#if PLATFORM_ARM_ARCH(7) && PLATFORM(IPHONE)
    587606#define ENABLE_ASSEMBLER_WX_EXCLUSIVE 1
    588607#else
Note: See TracChangeset for help on using the changeset viewer.