Chromium Code Reviews| 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_IA32_H_ | 5 #ifndef VM_ASSEMBLER_IA32_H_ |
| 6 #define VM_ASSEMBLER_IA32_H_ | 6 #define VM_ASSEMBLER_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. | 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 765 static const intptr_t kEntryPointToPcMarkerOffset = 8; | 765 static const intptr_t kEntryPointToPcMarkerOffset = 8; |
| 766 | 766 |
| 767 void UpdateAllocationStats(intptr_t cid, | 767 void UpdateAllocationStats(intptr_t cid, |
| 768 Register temp_reg, | 768 Register temp_reg, |
| 769 Heap::Space space = Heap::kNew); | 769 Heap::Space space = Heap::kNew); |
| 770 | 770 |
| 771 void UpdateAllocationStatsWithSize(intptr_t cid, | 771 void UpdateAllocationStatsWithSize(intptr_t cid, |
| 772 Register size_reg, | 772 Register size_reg, |
| 773 Register temp_reg, | 773 Register temp_reg, |
| 774 Heap::Space space = Heap::kNew); | 774 Heap::Space space = Heap::kNew); |
| 775 void UpdateAllocationStatsWithSize(intptr_t cid, | |
| 776 intptr_t instance_size, | |
| 777 Register temp_reg, | |
| 778 Heap::Space space = Heap::kNew); | |
|
srdjan
2014/03/03 18:30:08
Can you use a different name. Register is almost a
| |
| 775 | 779 |
| 776 // Inlined allocation of an instance of class 'cls', code has no runtime | 780 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 777 // calls. Jump to 'failure' if the instance cannot be allocated here. | 781 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 778 // Allocated instance is returned in 'instance_reg'. | 782 // Allocated instance is returned in 'instance_reg'. |
| 779 // Only the tags field of the object is initialized. | 783 // Only the tags field of the object is initialized. |
| 780 void TryAllocate(const Class& cls, | 784 void TryAllocate(const Class& cls, |
| 781 Label* failure, | 785 Label* failure, |
| 782 bool near_jump, | 786 bool near_jump, |
| 783 Register instance_reg, | 787 Register instance_reg, |
| 784 Register temp_reg); | 788 Register temp_reg); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 887 } | 891 } |
| 888 | 892 |
| 889 | 893 |
| 890 inline void Assembler::EmitOperandSizeOverride() { | 894 inline void Assembler::EmitOperandSizeOverride() { |
| 891 EmitUint8(0x66); | 895 EmitUint8(0x66); |
| 892 } | 896 } |
| 893 | 897 |
| 894 } // namespace dart | 898 } // namespace dart |
| 895 | 899 |
| 896 #endif // VM_ASSEMBLER_IA32_H_ | 900 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |