Ignore:
Timestamp:
Mar 6, 2014, 1:17:18 AM (11 years ago)
Author:
[email protected]
Message:

Use the LLVM disassembler on ARM64 if we are enabling the FTL
https://bugs.webkit.org/show_bug.cgi?id=129785

Source/JavaScriptCore:

Reviewed by Geoffrey Garen.

Our disassembler can't handle some of the code sequences that LLVM emits. LLVM's disassembler
is strictly more capable at this point. Use it if it's available.

  • disassembler/ARM64Disassembler.cpp:

(JSC::tryToDisassemble):

Source/WTF:

Reviewed by Geoffrey Garen.

  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/disassembler/ARM64Disassembler.cpp

    r157474 r165180  
    11/*
    2  * Copyright (C) 2012 Apple Inc. All rights reserved.
     2 * Copyright (C) 2012, 2014 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    5656#endif // USE(ARM64_DISASSEMBLER)
    5757
     58#if USE(LLVM_DISASSEMBLER)
     59
     60#include "LLVMDisassembler.h"
     61
     62namespace JSC {
     63
     64bool tryToDisassemble(const MacroAssemblerCodePtr& codePtr, size_t size, const char* prefix, PrintStream& out, InstructionSubsetHint hint)
     65{
     66    return tryToDisassembleWithLLVM(codePtr, size, prefix, out, hint);
     67}
     68
     69} // namespace JSC
     70
     71#endif // USE(LLVM_DISASSEMBLER)
Note: See TracChangeset for help on using the changeset viewer.