Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: src/arm64/disasm-arm64.cc

Issue 2001073002: [build] Fix a clang warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm64/simulator-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm64/simulator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698