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

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

Issue 410333003: Shorter TryAllocate instruction sequence on ARM/ARM64/MIPS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 763
764 void SmiUntag(Register reg) { 764 void SmiUntag(Register reg) {
765 sarq(reg, Immediate(kSmiTagSize)); 765 sarq(reg, Immediate(kSmiTagSize));
766 } 766 }
767 767
768 int PreferredLoopAlignment() { return 16; } 768 int PreferredLoopAlignment() { return 16; }
769 void Align(int alignment, intptr_t offset); 769 void Align(int alignment, intptr_t offset);
770 void Bind(Label* label); 770 void Bind(Label* label);
771 771
772 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); 772 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
773 static bool EmittingComments();
774
773 const Code::Comments& GetCodeComments() const; 775 const Code::Comments& GetCodeComments() const;
774 776
775 intptr_t CodeSize() const { return buffer_.Size(); } 777 intptr_t CodeSize() const { return buffer_.Size(); }
776 intptr_t prologue_offset() const { return prologue_offset_; } 778 intptr_t prologue_offset() const { return prologue_offset_; }
777 779
778 // Count the fixups that produce a pointer offset, without processing 780 // Count the fixups that produce a pointer offset, without processing
779 // the fixups. 781 // the fixups.
780 intptr_t CountPointerOffsets() const { 782 intptr_t CountPointerOffsets() const {
781 return buffer_.CountPointerOffsets(); 783 return buffer_.CountPointerOffsets();
782 } 784 }
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 } 1097 }
1096 1098
1097 1099
1098 inline void Assembler::EmitOperandSizeOverride() { 1100 inline void Assembler::EmitOperandSizeOverride() {
1099 EmitUint8(0x66); 1101 EmitUint8(0x66);
1100 } 1102 }
1101 1103
1102 } // namespace dart 1104 } // namespace dart
1103 1105
1104 #endif // VM_ASSEMBLER_X64_H_ 1106 #endif // VM_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698