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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 // Instruction pattern from entrypoint is used in dart frame prologues | 822 // Instruction pattern from entrypoint is used in dart frame prologues |
823 // to set up the frame and save a PC which can be used to figure out the | 823 // to set up the frame and save a PC which can be used to figure out the |
824 // RawInstruction object corresponding to the code running in the frame. | 824 // RawInstruction object corresponding to the code running in the frame. |
825 // entrypoint: | 825 // entrypoint: |
826 // pushq rbp (size is 1 byte) | 826 // pushq rbp (size is 1 byte) |
827 // movq rbp, rsp (size is 3 bytes) | 827 // movq rbp, rsp (size is 3 bytes) |
828 // call L (size is 5 bytes) | 828 // call L (size is 5 bytes) |
829 // L: | 829 // L: |
830 static const intptr_t kEntryPointToPcMarkerOffset = 9; | 830 static const intptr_t kEntryPointToPcMarkerOffset = 9; |
831 | 831 |
| 832 void UpdateAllocationStats(intptr_t cid, |
| 833 Heap::Space space = Heap::kNew); |
| 834 |
| 835 void UpdateAllocationStatsWithSize(intptr_t cid, |
| 836 Register size_reg, |
| 837 Heap::Space space = Heap::kNew); |
| 838 |
832 // Inlined allocation of an instance of class 'cls', code has no runtime | 839 // Inlined allocation of an instance of class 'cls', code has no runtime |
833 // calls. Jump to 'failure' if the instance cannot be allocated here. | 840 // calls. Jump to 'failure' if the instance cannot be allocated here. |
834 // Allocated instance is returned in 'instance_reg'. | 841 // Allocated instance is returned in 'instance_reg'. |
835 // Only the tags field of the object is initialized. | 842 // Only the tags field of the object is initialized. |
836 // Loads large immediates from the object pool with pool pointer in PP if it | 843 // Loads large immediates from the object pool with pool pointer in PP if it |
837 // is not kNoRegister | 844 // is not kNoRegister |
838 void TryAllocate(const Class& cls, | 845 void TryAllocate(const Class& cls, |
839 Label* failure, | 846 Label* failure, |
840 bool near_jump, | 847 bool near_jump, |
841 Register instance_reg, | 848 Register instance_reg, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 } | 1060 } |
1054 | 1061 |
1055 | 1062 |
1056 inline void Assembler::EmitOperandSizeOverride() { | 1063 inline void Assembler::EmitOperandSizeOverride() { |
1057 EmitUint8(0x66); | 1064 EmitUint8(0x66); |
1058 } | 1065 } |
1059 | 1066 |
1060 } // namespace dart | 1067 } // namespace dart |
1061 | 1068 |
1062 #endif // VM_ASSEMBLER_X64_H_ | 1069 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |