Ignore:
Timestamp:
Sep 18, 2009, 1:18:27 PM (16 years ago)
Author:
[email protected]
Message:

2009-09-18 Gabor Loki <[email protected]>

Reviewed by Gavin Barraclough.

Defines two pseudo-platforms for ARM and Thumb-2 instruction set.
https://bugs.webkit.org/show_bug.cgi?id=29122

Introduces WTF_PLATFORM_ARM_TRADITIONAL and WTF_PLATFORM_ARM_THUMB2
macros on ARM platforms. The PLATFORM(ARM_THUMB2) should be used
when Thumb-2 instruction set is the required target. The
PLATFORM(ARM_TRADITIONAL) is for generic ARM instruction set. In
case where the code is common the PLATFORM(ARM) have to be used.

  • assembler/ARMAssembler.cpp:
  • assembler/ARMAssembler.h:
  • assembler/ARMv7Assembler.h:
  • assembler/MacroAssembler.h:
  • assembler/MacroAssemblerARM.cpp:
  • assembler/MacroAssemblerARM.h:
  • assembler/MacroAssemblerCodeRef.h: (JSC::MacroAssemblerCodePtr::MacroAssemblerCodePtr):
  • jit/ExecutableAllocator.h:
  • jit/JIT.h:
  • jit/JITInlineMethods.h: (JSC::JIT::beginUninterruptedSequence): (JSC::JIT::preserveReturnAddressAfterCall): (JSC::JIT::restoreReturnAddressBeforeReturn): (JSC::JIT::restoreArgumentReference): (JSC::JIT::restoreArgumentReferenceForTrampoline):
  • jit/JITOpcodes.cpp:
  • jit/JITStubs.cpp: (JSC::JITThunks::JITThunks):
  • jit/JITStubs.h:
  • wtf/Platform.h:
  • yarr/RegexJIT.cpp: (JSC::Yarr::RegexGenerator::generateEnter):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITStubs.cpp

    r48067 r48525  
    194194);
    195195
    196 #elif COMPILER(GCC) && PLATFORM_ARM_ARCH(7)
     196#elif COMPILER(GCC) && PLATFORM(ARM_THUMB2)
    197197
    198198#if USE(JIT_STUB_ARGUMENT_VA_LIST)
     
    453453);
    454454
    455 #elif COMPILER(GCC) && PLATFORM_ARM_ARCH(7)
     455#elif COMPILER(GCC) && PLATFORM(ARM_THUMB2)
    456456
    457457#if USE(JIT_STUB_ARGUMENT_VA_LIST)
     
    517517);
    518518
    519 #elif COMPILER(GCC) && PLATFORM(ARM)
     519#elif COMPILER(GCC) && PLATFORM(ARM_TRADITIONAL)
    520520
    521521asm volatile (
     
    637637    JIT::compileCTIMachineTrampolines(globalData, &m_executablePool, &m_ctiStringLengthTrampoline, &m_ctiVirtualCallLink, &m_ctiVirtualCall, &m_ctiNativeCallThunk);
    638638
    639 #if PLATFORM_ARM_ARCH(7)
     639#if PLATFORM(ARM_THUMB2)
    640640    // Unfortunate the arm compiler does not like the use of offsetof on JITStackFrame (since it contains non POD types),
    641641    // and the OBJECT_OFFSETOF macro does not appear constantish enough for it to be happy with its use in COMPILE_ASSERT
     
    877877    } while (0)
    878878
    879 #if PLATFORM_ARM_ARCH(7)
     879#if PLATFORM(ARM_THUMB2)
    880880
    881881#define DEFINE_STUB_FUNCTION(rtype, op) \
Note: See TracChangeset for help on using the changeset viewer.