| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 761 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
| 762 return buffer_.pointer_offsets(); | 762 return buffer_.pointer_offsets(); |
| 763 } | 763 } |
| 764 const GrowableObjectArray& object_pool() const { return object_pool_; } | 764 const GrowableObjectArray& object_pool() const { return object_pool_; } |
| 765 | 765 |
| 766 void FinalizeInstructions(const MemoryRegion& region) { | 766 void FinalizeInstructions(const MemoryRegion& region) { |
| 767 buffer_.FinalizeInstructions(region); | 767 buffer_.FinalizeInstructions(region); |
| 768 } | 768 } |
| 769 | 769 |
| 770 // Index of constant pool entries pointing to debugger stubs. | 770 // Index of constant pool entries pointing to debugger stubs. |
| 771 static const int kBreakpointStaticCPIndex = 5; | 771 static const int kBreakpointDynamicCPIndex = 5; |
| 772 static const int kBreakpointDynamicCPIndex = 6; | 772 static const int kBreakpointRuntimeCPIndex = 6; |
| 773 static const int kBreakpointRuntimeCPIndex = 7; | |
| 774 | 773 |
| 775 void LoadPoolPointer(Register pp); | 774 void LoadPoolPointer(Register pp); |
| 776 | 775 |
| 777 // Set up a Dart frame on entry with a frame pointer and PC information to | 776 // Set up a Dart frame on entry with a frame pointer and PC information to |
| 778 // enable easy access to the RawInstruction object of code corresponding | 777 // enable easy access to the RawInstruction object of code corresponding |
| 779 // to this frame. | 778 // to this frame. |
| 780 // The dart frame layout is as follows: | 779 // The dart frame layout is as follows: |
| 781 // .... | 780 // .... |
| 782 // locals space <=== RSP | 781 // locals space <=== RSP |
| 783 // saved PP | 782 // saved PP |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 } | 1052 } |
| 1054 | 1053 |
| 1055 | 1054 |
| 1056 inline void Assembler::EmitOperandSizeOverride() { | 1055 inline void Assembler::EmitOperandSizeOverride() { |
| 1057 EmitUint8(0x66); | 1056 EmitUint8(0x66); |
| 1058 } | 1057 } |
| 1059 | 1058 |
| 1060 } // namespace dart | 1059 } // namespace dart |
| 1061 | 1060 |
| 1062 #endif // VM_ASSEMBLER_X64_H_ | 1061 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |