| OLD | NEW |
| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |