OLD | NEW |
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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 | 752 |
753 int PreferredLoopAlignment() { return 16; } | 753 int PreferredLoopAlignment() { return 16; } |
754 void Align(int alignment, intptr_t offset); | 754 void Align(int alignment, intptr_t offset); |
755 void Bind(Label* label); | 755 void Bind(Label* label); |
756 | 756 |
757 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); | 757 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
758 const Code::Comments& GetCodeComments() const; | 758 const Code::Comments& GetCodeComments() const; |
759 | 759 |
760 intptr_t CodeSize() const { return buffer_.Size(); } | 760 intptr_t CodeSize() const { return buffer_.Size(); } |
761 intptr_t prologue_offset() const { return prologue_offset_; } | 761 intptr_t prologue_offset() const { return prologue_offset_; } |
| 762 |
| 763 // Count the fixups that produce a pointer offset, without processing |
| 764 // the fixups. |
| 765 intptr_t CountPointerOffsets() const { |
| 766 return buffer_.CountPointerOffsets(); |
| 767 } |
| 768 |
762 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 769 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
763 return buffer_.pointer_offsets(); | 770 return buffer_.pointer_offsets(); |
764 } | 771 } |
765 const GrowableObjectArray& object_pool() const { return object_pool_; } | 772 const GrowableObjectArray& object_pool() const { return object_pool_; } |
766 | 773 |
767 void FinalizeInstructions(const MemoryRegion& region) { | 774 void FinalizeInstructions(const MemoryRegion& region) { |
768 buffer_.FinalizeInstructions(region); | 775 buffer_.FinalizeInstructions(region); |
769 } | 776 } |
770 | 777 |
771 void LoadPoolPointer(Register pp); | 778 void LoadPoolPointer(Register pp); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 } | 1056 } |
1050 | 1057 |
1051 | 1058 |
1052 inline void Assembler::EmitOperandSizeOverride() { | 1059 inline void Assembler::EmitOperandSizeOverride() { |
1053 EmitUint8(0x66); | 1060 EmitUint8(0x66); |
1054 } | 1061 } |
1055 | 1062 |
1056 } // namespace dart | 1063 } // namespace dart |
1057 | 1064 |
1058 #endif // VM_ASSEMBLER_X64_H_ | 1065 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |