| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // A Disassembler object is used to disassemble a block of code instruction by | 5 // A Disassembler object is used to disassemble a block of code instruction by |
| 6 // instruction. The default implementation of the NameConverter object can be | 6 // instruction. The default implementation of the NameConverter object can be |
| 7 // overriden to modify register names or to do symbol lookup on addresses. | 7 // overriden to modify register names or to do symbol lookup on addresses. |
| 8 // | 8 // |
| 9 // The example below will disassemble a block of code and print it to stdout. | 9 // The example below will disassemble a block of code and print it to stdout. |
| 10 // | 10 // |
| (...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 } | 1500 } |
| 1501 default: { | 1501 default: { |
| 1502 Format(instr, "UNSUPPORTED"); | 1502 Format(instr, "UNSUPPORTED"); |
| 1503 UNSUPPORTED_MIPS(); | 1503 UNSUPPORTED_MIPS(); |
| 1504 } | 1504 } |
| 1505 } | 1505 } |
| 1506 return Instruction::kInstrSize; | 1506 return Instruction::kInstrSize; |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 | 1509 |
| 1510 } } // namespace v8::internal | 1510 } // namespace internal |
| 1511 | 1511 } // namespace v8 |
| 1512 | 1512 |
| 1513 | 1513 |
| 1514 //------------------------------------------------------------------------------ | 1514 //------------------------------------------------------------------------------ |
| 1515 | 1515 |
| 1516 namespace disasm { | 1516 namespace disasm { |
| 1517 | 1517 |
| 1518 const char* NameConverter::NameOfAddress(byte* addr) const { | 1518 const char* NameConverter::NameOfAddress(byte* addr) const { |
| 1519 v8::internal::SNPrintF(tmp_buffer_, "%p", addr); | 1519 v8::internal::SNPrintF(tmp_buffer_, "%p", addr); |
| 1520 return tmp_buffer_.start(); | 1520 return tmp_buffer_.start(); |
| 1521 } | 1521 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1583 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
| 1584 } | 1584 } |
| 1585 } | 1585 } |
| 1586 | 1586 |
| 1587 | 1587 |
| 1588 #undef UNSUPPORTED | 1588 #undef UNSUPPORTED |
| 1589 | 1589 |
| 1590 } // namespace disasm | 1590 } // namespace disasm |
| 1591 | 1591 |
| 1592 #endif // V8_TARGET_ARCH_MIPS64 | 1592 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |