Chromium Code Reviews| Index: src/arm64/disasm-arm64.h |
| diff --git a/src/arm64/disasm-arm64.h b/src/arm64/disasm-arm64.h |
| index 4b477bc438e8f181aa70a568ab650c7e23d052a9..b17c97ec5fa5e65a4edefd68890b69b2b6acf5f5 100644 |
| --- a/src/arm64/disasm-arm64.h |
| +++ b/src/arm64/disasm-arm64.h |
| @@ -5,6 +5,7 @@ |
| #ifndef V8_ARM64_DISASM_ARM64_H |
| #define V8_ARM64_DISASM_ARM64_H |
| +#include "src/arm64/assembler-arm64.h" |
| #include "src/arm64/decoder-arm64.h" |
| #include "src/arm64/instructions-arm64.h" |
| #include "src/globals.h" |
| @@ -29,6 +30,15 @@ class DisassemblingDecoder : public DecoderVisitor { |
| protected: |
| virtual void ProcessOutput(Instruction* instr); |
| + // Default output functions. The functions below implement a default way of |
| + // printing elements in the disassembly. A sub-class can override these to |
| + // customize the disassembly output. |
| + |
| + // Prints the name of a register. |
| + // TODO(mcapewel): This currently doesn't allow renaming of V registers. |
|
bbudge
2017/01/31 01:41:31
nit: mcapewell?
martyn.capewell
2017/02/03 11:01:30
Done.
|
| + virtual void AppendRegisterNameToOutput(const Instruction* instr, |
|
bbudge
2017/01/31 01:41:31
nit: const -> &
martyn.capewell
2017/02/03 11:01:31
Done.
|
| + const CPURegister& reg); |
| + |
| void Format(Instruction* instr, const char* mnemonic, const char* format); |
| void Substitute(Instruction* instr, const char* string); |
| int SubstituteField(Instruction* instr, const char* format); |