Changeset 44886 in webkit for trunk/JavaScriptCore/assembler


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):
Location:
trunk/JavaScriptCore/assembler
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/assembler/ARMv7Assembler.h

    r44713 r44886  
    2929#include <wtf/Platform.h>
    3030
    31 #if ENABLE(ASSEMBLER) && PLATFORM(ARM_V7)
     31#if ENABLE(ASSEMBLER) && PLATFORM_ARM_ARCH(7)
    3232
    3333#include "AssemblerBuffer.h"
     
    17541754} // namespace JSC
    17551755
    1756 #endif // ENABLE(ASSEMBLER) && PLATFORM(ARM_V7)
     1756#endif // ENABLE(ASSEMBLER) && PLATFORM_ARM_ARCH(7)
    17571757
    17581758#endif // ARMAssembler_h
  • trunk/JavaScriptCore/assembler/AbstractMacroAssembler.h

    r44713 r44886  
    176176        explicit Imm32(int32_t value)
    177177            : m_value(value)
    178 #if PLATFORM(ARM_V7)
     178#if PLATFORM_ARM_ARCH(7)
    179179            , m_isPointer(false)
    180180#endif
     
    185185        explicit Imm32(ImmPtr ptr)
    186186            : m_value(ptr.asIntptr())
    187 #if PLATFORM(ARM_V7)
     187#if PLATFORM_ARM_ARCH(7)
    188188            , m_isPointer(true)
    189189#endif
     
    193193
    194194        int32_t m_value;
    195 #if PLATFORM(ARM_V7)
     195#if PLATFORM_ARM_ARCH(7)
    196196        // We rely on being able to regenerate code to recover exception handling
    197197        // information.  Since ARMv7 supports 16-bit immediates there is a danger
  • trunk/JavaScriptCore/assembler/MacroAssembler.h

    r44514 r44886  
    3131#if ENABLE(ASSEMBLER)
    3232
    33 #if PLATFORM(ARM_V7)
     33#if PLATFORM_ARM_ARCH(7)
    3434#include "MacroAssemblerARMv7.h"
    3535namespace JSC { typedef MacroAssemblerARMv7 MacroAssemblerBase; };
  • trunk/JavaScriptCore/assembler/MacroAssemblerCodeRef.h

    r44711 r44886  
    3838// ASSERT_VALID_CODE_POINTER checks that ptr is a non-null pointer, and that it is a valid
    3939// instruction address on the platform (for example, check any alignment requirements).
    40 #if PLATFORM(ARM_V7)
     40#if PLATFORM_ARM_ARCH(7)
    4141// ARM/thumb instructions must be 16-bit aligned, but all code pointers to be loaded
    4242// into the processor are decorated with the bottom bit set, indicating that this is
     
    125125
    126126    explicit MacroAssemblerCodePtr(void* value)
    127 #if PLATFORM(ARM_V7)
     127#if PLATFORM_ARM_ARCH(7)
    128128        // Decorate the pointer as a thumb code pointer.
    129129        : m_value(reinterpret_cast<char*>(value) + 1)
     
    142142
    143143    void* executableAddress() const { return m_value; }
    144 #if PLATFORM(ARM_V7)
     144#if PLATFORM_ARM_ARCH(7)
    145145    // To use this pointer as a data address remove the decoration.
    146146    void* dataLocation() const { ASSERT_VALID_CODE_POINTER(m_value); return reinterpret_cast<char*>(m_value) - 1; }
Note: See TracChangeset for help on using the changeset viewer.