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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 // movl ebp, esp (size is 2 bytes) | 792 // movl ebp, esp (size is 2 bytes) |
793 // call L (size is 5 bytes) | 793 // call L (size is 5 bytes) |
794 // L: | 794 // L: |
795 static const intptr_t kEntryPointToPcMarkerOffset = 8; | 795 static const intptr_t kEntryPointToPcMarkerOffset = 8; |
796 static intptr_t EntryPointToPcMarkerOffset() { | 796 static intptr_t EntryPointToPcMarkerOffset() { |
797 return kEntryPointToPcMarkerOffset; | 797 return kEntryPointToPcMarkerOffset; |
798 } | 798 } |
799 | 799 |
800 void UpdateAllocationStats(intptr_t cid, | 800 void UpdateAllocationStats(intptr_t cid, |
801 Register temp_reg, | 801 Register temp_reg, |
802 Heap::Space space = Heap::kNew); | 802 Heap::Space space); |
803 | 803 |
804 void UpdateAllocationStatsWithSize(intptr_t cid, | 804 void UpdateAllocationStatsWithSize(intptr_t cid, |
805 Register size_reg, | 805 Register size_reg, |
806 Register temp_reg, | 806 Register temp_reg, |
807 Heap::Space space = Heap::kNew); | 807 Heap::Space space); |
808 void UpdateAllocationStatsWithSize(intptr_t cid, | 808 void UpdateAllocationStatsWithSize(intptr_t cid, |
809 intptr_t instance_size, | 809 intptr_t instance_size, |
810 Register temp_reg, | 810 Register temp_reg, |
811 Heap::Space space = Heap::kNew); | 811 Heap::Space space); |
812 | 812 |
813 // Inlined allocation of an instance of class 'cls', code has no runtime | 813 // Inlined allocation of an instance of class 'cls', code has no runtime |
814 // calls. Jump to 'failure' if the instance cannot be allocated here. | 814 // calls. Jump to 'failure' if the instance cannot be allocated here. |
815 // Allocated instance is returned in 'instance_reg'. | 815 // Allocated instance is returned in 'instance_reg'. |
816 // Only the tags field of the object is initialized. | 816 // Only the tags field of the object is initialized. |
817 void TryAllocate(const Class& cls, | 817 void TryAllocate(const Class& cls, |
818 Label* failure, | 818 Label* failure, |
819 bool near_jump, | 819 bool near_jump, |
820 Register instance_reg, | 820 Register instance_reg, |
821 Register temp_reg); | 821 Register temp_reg); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 } | 945 } |
946 | 946 |
947 | 947 |
948 inline void Assembler::EmitOperandSizeOverride() { | 948 inline void Assembler::EmitOperandSizeOverride() { |
949 EmitUint8(0x66); | 949 EmitUint8(0x66); |
950 } | 950 } |
951 | 951 |
952 } // namespace dart | 952 } // namespace dart |
953 | 953 |
954 #endif // VM_ASSEMBLER_IA32_H_ | 954 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |