Changeset 48525 in webkit for trunk/JavaScriptCore/jit/JIT.h


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/JIT.h

    r47614 r48525  
    227227        static const FPRegisterID fpRegT1 = X86Registers::xmm1;
    228228        static const FPRegisterID fpRegT2 = X86Registers::xmm2;
    229 #elif PLATFORM_ARM_ARCH(7)
     229#elif PLATFORM(ARM_THUMB2)
    230230        static const RegisterID returnValueRegister = ARMRegisters::r0;
    231231        static const RegisterID cachedResultRegister = ARMRegisters::r0;
     
    243243        static const FPRegisterID fpRegT1 = ARMRegisters::d1;
    244244        static const FPRegisterID fpRegT2 = ARMRegisters::d2;
    245 #elif PLATFORM(ARM)
     245#elif PLATFORM(ARM_TRADITIONAL)
    246246        static const RegisterID returnValueRegister = ARMRegisters::r0;
    247247        static const RegisterID cachedResultRegister = ARMRegisters::r0;
     
    572572        static const int patchOffsetMethodCheckProtoStruct = 18;
    573573        static const int patchOffsetMethodCheckPutFunction = 29;
    574 #elif PLATFORM_ARM_ARCH(7)
     574#elif PLATFORM(ARM_THUMB2)
    575575        // These architecture specific value are used to enable patching - see comment on op_put_by_id.
    576576        static const int patchOffsetPutByIdStructure = 10;
     
    595595        static const int patchOffsetMethodCheckProtoStruct = 28;
    596596        static const int patchOffsetMethodCheckPutFunction = 46;
    597 #elif PLATFORM(ARM)
     597#elif PLATFORM(ARM_TRADITIONAL)
    598598        // These architecture specific value are used to enable patching - see comment on op_put_by_id.
    599599        static const int patchOffsetPutByIdStructure = 4;
     
    621621#endif // USE(JSVALUE32_64)
    622622
    623 #if PLATFORM(ARM) && !PLATFORM_ARM_ARCH(7)
     623#if PLATFORM(ARM_TRADITIONAL)
    624624        // sequenceOpCall
    625625        static const int sequenceOpCallInstructionSpace = 12;
Note: See TracChangeset for help on using the changeset viewer.