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

Side by Side Diff: runtime/vm/assembler_ia32.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/allocation.cc ('k') | runtime/vm/assembler_x64.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_ASSEMBLER_IA32_H_ 5 #ifndef VM_ASSEMBLER_IA32_H_
6 #define VM_ASSEMBLER_IA32_H_ 6 #define VM_ASSEMBLER_IA32_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_ia32.h directly; use assembler.h instead. 9 #error Do not include assembler_ia32.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 573 }
574 574
575 // Debugging and bringup support. 575 // Debugging and bringup support.
576 void Stop(const char* message); 576 void Stop(const char* message);
577 void Unimplemented(const char* message); 577 void Unimplemented(const char* message);
578 void Untested(const char* message); 578 void Untested(const char* message);
579 void Unreachable(const char* message); 579 void Unreachable(const char* message);
580 580
581 static void InitializeMemoryWithBreakpoints(uword data, int length); 581 static void InitializeMemoryWithBreakpoints(uword data, int length);
582 582
583 void Comment(const char* format, ...); 583 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
584 const Code::Comments& GetCodeComments() const; 584 const Code::Comments& GetCodeComments() const;
585 585
586 static const char* RegisterName(Register reg); 586 static const char* RegisterName(Register reg);
587 static const char* XmmRegisterName(XmmRegister reg); 587 static const char* XmmRegisterName(XmmRegister reg);
588 588
589 private: 589 private:
590 AssemblerBuffer buffer_; 590 AssemblerBuffer buffer_;
591 int prolog_offset_; 591 int prolog_offset_;
592 592
593 class CodeComment : public ZoneAllocated { 593 class CodeComment : public ZoneAllocated {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 } 657 }
658 658
659 659
660 inline void Assembler::EmitOperandSizeOverride() { 660 inline void Assembler::EmitOperandSizeOverride() {
661 EmitUint8(0x66); 661 EmitUint8(0x66);
662 } 662 }
663 663
664 } // namespace dart 664 } // namespace dart
665 665
666 #endif // VM_ASSEMBLER_IA32_H_ 666 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/allocation.cc ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698