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

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

Issue 564843002: Initial steps towards cleaning up integer arithmetic IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 addq(reg, reg); 772 addq(reg, reg);
773 } 773 }
774 774
775 void SmiUntag(Register reg) { 775 void SmiUntag(Register reg) {
776 sarq(reg, Immediate(kSmiTagSize)); 776 sarq(reg, Immediate(kSmiTagSize));
777 } 777 }
778 778
779 int PreferredLoopAlignment() { return 16; } 779 int PreferredLoopAlignment() { return 16; }
780 void Align(int alignment, intptr_t offset); 780 void Align(int alignment, intptr_t offset);
781 void Bind(Label* label); 781 void Bind(Label* label);
782 void Jump(Label* label) { jmp(label); }
782 783
783 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); 784 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
784 static bool EmittingComments(); 785 static bool EmittingComments();
785 786
786 const Code::Comments& GetCodeComments() const; 787 const Code::Comments& GetCodeComments() const;
787 788
788 intptr_t CodeSize() const { return buffer_.Size(); } 789 intptr_t CodeSize() const { return buffer_.Size(); }
789 intptr_t prologue_offset() const { return prologue_offset_; } 790 intptr_t prologue_offset() const { return prologue_offset_; }
790 791
791 // Count the fixups that produce a pointer offset, without processing 792 // Count the fixups that produce a pointer offset, without processing
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 } 1127 }
1127 1128
1128 1129
1129 inline void Assembler::EmitOperandSizeOverride() { 1130 inline void Assembler::EmitOperandSizeOverride() {
1130 EmitUint8(0x66); 1131 EmitUint8(0x66);
1131 } 1132 }
1132 1133
1133 } // namespace dart 1134 } // namespace dart
1134 1135
1135 #endif // VM_ASSEMBLER_X64_H_ 1136 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698