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(); | |
Ivan Posva
2014/02/03 05:44:35
Does x64 really create pointer offsets or are all
Florian Schneider
2014/02/10 11:56:17
Possibly yes, if CanLoadImmediateFromPool return f
| |
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1058 } | 1065 } |
1059 | 1066 |
1060 | 1067 |
1061 inline void Assembler::EmitOperandSizeOverride() { | 1068 inline void Assembler::EmitOperandSizeOverride() { |
1062 EmitUint8(0x66); | 1069 EmitUint8(0x66); |
1063 } | 1070 } |
1064 | 1071 |
1065 } // namespace dart | 1072 } // namespace dart |
1066 | 1073 |
1067 #endif // VM_ASSEMBLER_X64_H_ | 1074 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |