| 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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 // pushq rbp (size is 1 byte) | 864 // pushq rbp (size is 1 byte) |
| 865 // movq rbp, rsp (size is 3 bytes) | 865 // movq rbp, rsp (size is 3 bytes) |
| 866 // call L (size is 5 bytes) | 866 // call L (size is 5 bytes) |
| 867 // L: | 867 // L: |
| 868 static const intptr_t kEntryPointToPcMarkerOffset = 9; | 868 static const intptr_t kEntryPointToPcMarkerOffset = 9; |
| 869 static intptr_t EntryPointToPcMarkerOffset() { | 869 static intptr_t EntryPointToPcMarkerOffset() { |
| 870 return kEntryPointToPcMarkerOffset; | 870 return kEntryPointToPcMarkerOffset; |
| 871 } | 871 } |
| 872 | 872 |
| 873 void UpdateAllocationStats(intptr_t cid, | 873 void UpdateAllocationStats(intptr_t cid, |
| 874 Heap::Space space = Heap::kNew); | 874 Heap::Space space); |
| 875 | 875 |
| 876 void UpdateAllocationStatsWithSize(intptr_t cid, | 876 void UpdateAllocationStatsWithSize(intptr_t cid, |
| 877 Register size_reg, | 877 Register size_reg, |
| 878 Heap::Space space = Heap::kNew); | 878 Heap::Space space); |
| 879 void UpdateAllocationStatsWithSize(intptr_t cid, | 879 void UpdateAllocationStatsWithSize(intptr_t cid, |
| 880 intptr_t instance_size, | 880 intptr_t instance_size, |
| 881 Heap::Space space = Heap::kNew); | 881 Heap::Space space); |
| 882 | 882 |
| 883 // Inlined allocation of an instance of class 'cls', code has no runtime | 883 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 884 // calls. Jump to 'failure' if the instance cannot be allocated here. | 884 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 885 // Allocated instance is returned in 'instance_reg'. | 885 // Allocated instance is returned in 'instance_reg'. |
| 886 // Only the tags field of the object is initialized. | 886 // Only the tags field of the object is initialized. |
| 887 // Loads large immediates from the object pool with pool pointer in PP if it | 887 // Loads large immediates from the object pool with pool pointer in PP if it |
| 888 // is not kNoRegister | 888 // is not kNoRegister |
| 889 void TryAllocate(const Class& cls, | 889 void TryAllocate(const Class& cls, |
| 890 Label* failure, | 890 Label* failure, |
| 891 bool near_jump, | 891 bool near_jump, |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 | 1129 |
| 1130 inline void Assembler::EmitOperandSizeOverride() { | 1130 inline void Assembler::EmitOperandSizeOverride() { |
| 1131 EmitUint8(0x66); | 1131 EmitUint8(0x66); |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 } // namespace dart | 1134 } // namespace dart |
| 1135 | 1135 |
| 1136 #endif // VM_ASSEMBLER_X64_H_ | 1136 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |