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

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

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/debug-arm.cc ('k') | src/arm/frames-arm.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include <assert.h> 49 #include <assert.h>
50 #include <stdio.h> 50 #include <stdio.h>
51 #include <stdarg.h> 51 #include <stdarg.h>
52 #include <string.h> 52 #include <string.h>
53 #ifndef WIN32 53 #ifndef WIN32
54 #include <stdint.h> 54 #include <stdint.h>
55 #endif 55 #endif
56 56
57 #include "v8.h" 57 #include "v8.h"
58 58
59 #if defined(V8_TARGET_ARCH_ARM) 59 #if V8_TARGET_ARCH_ARM
60 60
61 #include "constants-arm.h" 61 #include "constants-arm.h"
62 #include "disasm.h" 62 #include "disasm.h"
63 #include "macro-assembler.h" 63 #include "macro-assembler.h"
64 #include "platform.h" 64 #include "platform.h"
65 65
66 66
67 namespace v8 { 67 namespace v8 {
68 namespace internal { 68 namespace internal {
69 69
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void Decoder::PrintCondition(Instruction* instr) { 180 void Decoder::PrintCondition(Instruction* instr) {
181 Print(cond_names[instr->ConditionValue()]); 181 Print(cond_names[instr->ConditionValue()]);
182 } 182 }
183 183
184 184
185 // Print the register name according to the active name converter. 185 // Print the register name according to the active name converter.
186 void Decoder::PrintRegister(int reg) { 186 void Decoder::PrintRegister(int reg) {
187 Print(converter_.NameOfCPURegister(reg)); 187 Print(converter_.NameOfCPURegister(reg));
188 } 188 }
189 189
190
190 // Print the VFP S register name according to the active name converter. 191 // Print the VFP S register name according to the active name converter.
191 void Decoder::PrintSRegister(int reg) { 192 void Decoder::PrintSRegister(int reg) {
192 Print(VFPRegisters::Name(reg, false)); 193 Print(VFPRegisters::Name(reg, false));
193 } 194 }
194 195
196
195 // Print the VFP D register name according to the active name converter. 197 // Print the VFP D register name according to the active name converter.
196 void Decoder::PrintDRegister(int reg) { 198 void Decoder::PrintDRegister(int reg) {
197 Print(VFPRegisters::Name(reg, true)); 199 Print(VFPRegisters::Name(reg, true));
198 } 200 }
199 201
200 202
201 // These shift names are defined in a way to match the native disassembler 203 // These shift names are defined in a way to match the native disassembler
202 // formatting. See for example the command "objdump -d <binary file>". 204 // formatting. See for example the command "objdump -d <binary file>".
203 static const char* const shift_names[kNumberOfShifts] = { 205 static const char* const shift_names[kNumberOfShifts] = {
204 "lsl", "lsr", "asr", "ror" 206 "lsl", "lsr", "asr", "ror"
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 v8::internal::PrintF( 1574 v8::internal::PrintF(
1573 f, "%p %08x %s\n", 1575 f, "%p %08x %s\n",
1574 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1576 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1575 } 1577 }
1576 } 1578 }
1577 1579
1578 1580
1579 } // namespace disasm 1581 } // namespace disasm
1580 1582
1581 #endif // V8_TARGET_ARCH_ARM 1583 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/debug-arm.cc ('k') | src/arm/frames-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698