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