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