OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 #include <stdarg.h> | 6 #include <stdarg.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 va_end(args); | 1723 va_end(args); |
1724 } | 1724 } |
1725 | 1725 |
1726 | 1726 |
1727 void PrintDisassembler::ProcessOutput(Instruction* instr) { | 1727 void PrintDisassembler::ProcessOutput(Instruction* instr) { |
1728 fprintf(stream_, "0x%016" PRIx64 " %08" PRIx32 "\t\t%s\n", | 1728 fprintf(stream_, "0x%016" PRIx64 " %08" PRIx32 "\t\t%s\n", |
1729 reinterpret_cast<uint64_t>(instr), instr->InstructionBits(), | 1729 reinterpret_cast<uint64_t>(instr), instr->InstructionBits(), |
1730 GetOutput()); | 1730 GetOutput()); |
1731 } | 1731 } |
1732 | 1732 |
1733 } } // namespace v8::internal | 1733 } // namespace internal |
| 1734 } // namespace v8 |
1734 | 1735 |
1735 | 1736 |
1736 namespace disasm { | 1737 namespace disasm { |
1737 | 1738 |
1738 | 1739 |
1739 const char* NameConverter::NameOfAddress(byte* addr) const { | 1740 const char* NameConverter::NameOfAddress(byte* addr) const { |
1740 v8::internal::SNPrintF(tmp_buffer_, "%p", addr); | 1741 v8::internal::SNPrintF(tmp_buffer_, "%p", addr); |
1741 return tmp_buffer_.start(); | 1742 return tmp_buffer_.start(); |
1742 } | 1743 } |
1743 | 1744 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1826 decoder.AppendVisitor(&disasm); | 1827 decoder.AppendVisitor(&disasm); |
1827 | 1828 |
1828 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { | 1829 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { |
1829 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); | 1830 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); |
1830 } | 1831 } |
1831 } | 1832 } |
1832 | 1833 |
1833 } // namespace disasm | 1834 } // namespace disasm |
1834 | 1835 |
1835 #endif // V8_TARGET_ARCH_ARM64 | 1836 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |