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

Side by Side Diff: runtime/vm/assembler_x64.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/assembler_ia32.h ('k') | runtime/vm/ast_printer.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) 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_X64_H_ 5 #ifndef VM_ASSEMBLER_X64_H_
6 #define VM_ASSEMBLER_X64_H_ 6 #define VM_ASSEMBLER_X64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_x64.h directly; use assembler.h instead. 9 #error Do not include assembler_x64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 } 589 }
590 590
591 void SmiUntag(Register reg) { 591 void SmiUntag(Register reg) {
592 sarq(reg, Immediate(kSmiTagSize)); 592 sarq(reg, Immediate(kSmiTagSize));
593 } 593 }
594 594
595 int PreferredLoopAlignment() { return 16; } 595 int PreferredLoopAlignment() { return 16; }
596 void Align(int alignment, int offset); 596 void Align(int alignment, int offset);
597 void Bind(Label* label); 597 void Bind(Label* label);
598 598
599 void Comment(const char* format, ...); 599 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
600 const Code::Comments& GetCodeComments() const; 600 const Code::Comments& GetCodeComments() const;
601 601
602 int CodeSize() const { return buffer_.Size(); } 602 int CodeSize() const { return buffer_.Size(); }
603 int prolog_offset() const { return prolog_offset_; } 603 int prolog_offset() const { return prolog_offset_; }
604 const ZoneGrowableArray<int>& GetPointerOffsets() const { 604 const ZoneGrowableArray<int>& GetPointerOffsets() const {
605 return buffer_.pointer_offsets(); 605 return buffer_.pointer_offsets();
606 } 606 }
607 607
608 void FinalizeInstructions(const MemoryRegion& region) { 608 void FinalizeInstructions(const MemoryRegion& region) {
609 buffer_.FinalizeInstructions(region); 609 buffer_.FinalizeInstructions(region);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } 705 }
706 706
707 707
708 inline void Assembler::EmitOperandSizeOverride() { 708 inline void Assembler::EmitOperandSizeOverride() {
709 EmitUint8(0x66); 709 EmitUint8(0x66);
710 } 710 }
711 711
712 } // namespace dart 712 } // namespace dart
713 713
714 #endif // VM_ASSEMBLER_X64_H_ 714 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/ast_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698