X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..2d39b0e377c0896910ee49ae70082ba665faf986:/disassembler/ARM64Disassembler.cpp diff --git a/disassembler/ARM64Disassembler.cpp b/disassembler/ARM64Disassembler.cpp index f06bc22..7b86bf0 100644 --- a/disassembler/ARM64Disassembler.cpp +++ b/disassembler/ARM64Disassembler.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Apple Inc. All rights reserved. + * Copyright (C) 2012, 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,12 +28,12 @@ #if USE(ARM64_DISASSEMBLER) -#include "MacroAssemblerCodeRef.h" #include "ARM64/A64DOpcode.h" +#include "MacroAssemblerCodeRef.h" namespace JSC { -bool tryToDisassemble(const MacroAssemblerCodePtr& codePtr, size_t size, const char* prefix, PrintStream& out) +bool tryToDisassemble(const MacroAssemblerCodePtr& codePtr, size_t size, const char* prefix, PrintStream& out, InstructionSubsetHint) { A64DOpcode arm64Opcode; @@ -55,3 +55,17 @@ bool tryToDisassemble(const MacroAssemblerCodePtr& codePtr, size_t size, const c #endif // USE(ARM64_DISASSEMBLER) +#if USE(LLVM_DISASSEMBLER) && CPU(ARM64) + +#include "LLVMDisassembler.h" + +namespace JSC { + +bool tryToDisassemble(const MacroAssemblerCodePtr& codePtr, size_t size, const char* prefix, PrintStream& out, InstructionSubsetHint hint) +{ + return tryToDisassembleWithLLVM(codePtr, size, prefix, out, hint); +} + +} // namespace JSC + +#endif // USE(LLVM_DISASSEMBLER) && CPU(ARM64)