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

Side by Side Diff: runtime/vm/disassembler.h

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 3 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 | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/disassembler_ia32.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 (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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/disassembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698