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