| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef VM_DISASSEMBLER_H_ | 5 #ifndef VM_DISASSEMBLER_H_ | 
| 6 #define VM_DISASSEMBLER_H_ | 6 #define VM_DISASSEMBLER_H_ | 
| 7 | 7 | 
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" | 
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" | 
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
| 40  public: | 40  public: | 
| 41   DisassembleToStdout() : DisassemblyFormatter() { } | 41   DisassembleToStdout() : DisassemblyFormatter() { } | 
| 42   ~DisassembleToStdout() { } | 42   ~DisassembleToStdout() { } | 
| 43 | 43 | 
| 44   virtual void ConsumeInstruction(char* hex_buffer, | 44   virtual void ConsumeInstruction(char* hex_buffer, | 
| 45                                   intptr_t hex_size, | 45                                   intptr_t hex_size, | 
| 46                                   char* human_buffer, | 46                                   char* human_buffer, | 
| 47                                   intptr_t human_size, | 47                                   intptr_t human_size, | 
| 48                                   uword pc); | 48                                   uword pc); | 
| 49 | 49 | 
| 50   virtual void Print(const char* format, ...); | 50   virtual void Print(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); | 
| 51 | 51 | 
| 52  private: | 52  private: | 
| 53   DISALLOW_ALLOCATION() | 53   DISALLOW_ALLOCATION() | 
| 54   DISALLOW_COPY_AND_ASSIGN(DisassembleToStdout); | 54   DISALLOW_COPY_AND_ASSIGN(DisassembleToStdout); | 
| 55 }; | 55 }; | 
| 56 | 56 | 
| 57 | 57 | 
| 58 // Disassemble instructions. | 58 // Disassemble instructions. | 
| 59 class Disassembler : public AllStatic { | 59 class Disassembler : public AllStatic { | 
| 60  public: | 60  public: | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 106                                uword pc); | 106                                uword pc); | 
| 107 | 107 | 
| 108  private: | 108  private: | 
| 109   static const int kHexadecimalBufferSize = 32; | 109   static const int kHexadecimalBufferSize = 32; | 
| 110   static const int kUserReadableBufferSize = 256; | 110   static const int kUserReadableBufferSize = 256; | 
| 111 }; | 111 }; | 
| 112 | 112 | 
| 113 }  // namespace dart | 113 }  // namespace dart | 
| 114 | 114 | 
| 115 #endif  // VM_DISASSEMBLER_H_ | 115 #endif  // VM_DISASSEMBLER_H_ | 
| OLD | NEW | 
|---|