Ignore:
Timestamp:
Aug 20, 2014, 10:59:10 AM (11 years ago)
Author:
[email protected]
Message:

Enable ARM64 disassembler on EFL
https://bugs.webkit.org/show_bug.cgi?id=136089

Patch by Akos Kiss <[email protected]> on 2014-08-20
Reviewed by Filip Pizlo.

Source/JavaScriptCore:

  • CMakeLists.txt:

Added disassembler/ARM64Disassembler.cpp and
disassembler/ARM64/A64DOpcode.cpp to JavaScriptCore_SOURCES.

  • disassembler/ARM64/A64DOpcode.cpp:

Added USE(ARM64_DISASSEMBLER) guard around implementation.

  • disassembler/ARM64/A64DOpcode.h:

(JSC::ARM64Disassembler::A64DOpcode::appendUnsignedImmediate64):
(JSC::ARM64Disassembler::A64DOpcode::appendPCRelativeOffset):
Made format strings portable by changing "%llx" to "%" PRIx64 for
uint64_t arguments.

Source/WTF:

  • wtf/Platform.h:

Enable WTF_USE_ARM64_DISASSEMBLER for EFL as well.

Location:
trunk/Source/JavaScriptCore/disassembler/ARM64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.cpp

    r163027 r172799  
    2525
    2626#include "config.h"
     27
     28#if USE(ARM64_DISASSEMBLER)
     29
    2730#include "A64DOpcode.h"
    2831
     
    11951198
    11961199} } // namespace JSC::ARM64Disassembler
     1200
     1201#endif // USE(ARM64_DISASSEMBLER)
  • trunk/Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.h

    r163027 r172799  
    173173    void appendUnsignedImmediate64(uint64_t immediate)
    174174    {
    175         bufferPrintf("#0x%llx", immediate);
     175        bufferPrintf("#0x%" PRIx64, immediate);
    176176    }
    177177
    178178    void appendPCRelativeOffset(uint32_t* pc, int32_t immediate)
    179179    {
    180         bufferPrintf("0x%llx", reinterpret_cast<uint64_t>(pc + immediate));
     180        bufferPrintf("0x%" PRIx64, reinterpret_cast<uint64_t>(pc + immediate));
    181181    }
    182182
Note: See TracChangeset for help on using the changeset viewer.