| 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 void LoadPoolPointer(Register pp); | 777 void LoadPoolPointer(Register pp); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 } | 1055 } |
| 1049 | 1056 |
| 1050 | 1057 |
| 1051 inline void Assembler::EmitOperandSizeOverride() { | 1058 inline void Assembler::EmitOperandSizeOverride() { |
| 1052 EmitUint8(0x66); | 1059 EmitUint8(0x66); |
| 1053 } | 1060 } |
| 1054 | 1061 |
| 1055 } // namespace dart | 1062 } // namespace dart |
| 1056 | 1063 |
| 1057 #endif // VM_ASSEMBLER_X64_H_ | 1064 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |