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