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 #if V8_TARGET_ARCH_ARM64 | 10 #if V8_TARGET_ARCH_ARM64 |
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 } | 1743 } |
1744 | 1744 |
1745 } // namespace internal | 1745 } // namespace internal |
1746 } // namespace v8 | 1746 } // namespace v8 |
1747 | 1747 |
1748 | 1748 |
1749 namespace disasm { | 1749 namespace disasm { |
1750 | 1750 |
1751 | 1751 |
1752 const char* NameConverter::NameOfAddress(byte* addr) const { | 1752 const char* NameConverter::NameOfAddress(byte* addr) const { |
1753 v8::internal::SNPrintF(tmp_buffer_, "%p", addr); | 1753 v8::internal::SNPrintF(tmp_buffer_, "%p", static_cast<void *>(addr)); |
1754 return tmp_buffer_.start(); | 1754 return tmp_buffer_.start(); |
1755 } | 1755 } |
1756 | 1756 |
1757 | 1757 |
1758 const char* NameConverter::NameOfConstant(byte* addr) const { | 1758 const char* NameConverter::NameOfConstant(byte* addr) const { |
1759 return NameOfAddress(addr); | 1759 return NameOfAddress(addr); |
1760 } | 1760 } |
1761 | 1761 |
1762 | 1762 |
1763 const char* NameConverter::NameOfCPURegister(int reg) const { | 1763 const char* NameConverter::NameOfCPURegister(int reg) const { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1840 decoder.AppendVisitor(&disasm); | 1840 decoder.AppendVisitor(&disasm); |
1841 | 1841 |
1842 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { | 1842 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { |
1843 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); | 1843 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); |
1844 } | 1844 } |
1845 } | 1845 } |
1846 | 1846 |
1847 } // namespace disasm | 1847 } // namespace disasm |
1848 | 1848 |
1849 #endif // V8_TARGET_ARCH_ARM64 | 1849 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |