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_ARM_H_ | 5 #ifndef VM_ASSEMBLER_ARM_H_ |
6 #define VM_ASSEMBLER_ARM_H_ | 6 #define VM_ASSEMBLER_ARM_H_ |
7 | 7 |
8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
9 #error Do not include assembler_arm.h directly; use assembler.h instead. | 9 #error Do not include assembler_arm.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
722 // Set up a stub frame so that the stack traversal code can easily identify | 722 // Set up a stub frame so that the stack traversal code can easily identify |
723 // a stub frame. | 723 // a stub frame. |
724 void EnterStubFrame(bool load_pp = false); | 724 void EnterStubFrame(bool load_pp = false); |
725 void LeaveStubFrame(); | 725 void LeaveStubFrame(); |
726 | 726 |
727 // Instruction pattern from entrypoint is used in Dart frame prologs | 727 // Instruction pattern from entrypoint is used in Dart frame prologs |
728 // to set up the frame and save a PC which can be used to figure out the | 728 // to set up the frame and save a PC which can be used to figure out the |
729 // RawInstruction object corresponding to the code running in the frame. | 729 // RawInstruction object corresponding to the code running in the frame. |
730 static const intptr_t kEntryPointToPcMarkerOffset = Instr::kPCReadOffset; | 730 static const intptr_t kEntryPointToPcMarkerOffset = Instr::kPCReadOffset; |
731 | 731 |
732 void BumpAllocationCount(Heap::Space space, | |
733 intptr_t cid, | |
734 Register temp_reg); | |
735 | |
736 void BumpAllocationCount(Heap::Space space, | |
737 intptr_t cid, | |
738 Register size_reg, | |
739 Register temp_reg); | |
srdjan
2013/12/12 15:52:32
I find method overloading leads easily to typos, a
Cutch
2013/12/13 01:31:09
Done.
| |
740 | |
732 // Inlined allocation of an instance of class 'cls', code has no runtime | 741 // Inlined allocation of an instance of class 'cls', code has no runtime |
733 // calls. Jump to 'failure' if the instance cannot be allocated here. | 742 // calls. Jump to 'failure' if the instance cannot be allocated here. |
734 // Allocated instance is returned in 'instance_reg'. | 743 // Allocated instance is returned in 'instance_reg'. |
735 // Only the tags field of the object is initialized. | 744 // Only the tags field of the object is initialized. |
736 void TryAllocate(const Class& cls, | 745 void TryAllocate(const Class& cls, |
737 Label* failure, | 746 Label* failure, |
738 Register instance_reg); | 747 Register instance_reg, |
748 Register temp_reg); | |
739 | 749 |
740 // Emit data (e.g encoded instruction or immediate) in instruction stream. | 750 // Emit data (e.g encoded instruction or immediate) in instruction stream. |
741 void Emit(int32_t value); | 751 void Emit(int32_t value); |
742 | 752 |
743 // On some other platforms, we draw a distinction between safe and unsafe | 753 // On some other platforms, we draw a distinction between safe and unsafe |
744 // smis. | 754 // smis. |
745 static bool IsSafe(const Object& object) { return true; } | 755 static bool IsSafe(const Object& object) { return true; } |
746 static bool IsSafeSmi(const Object& object) { return object.IsSmi(); } | 756 static bool IsSafeSmi(const Object& object) { return object.IsSmi(); } |
747 | 757 |
748 private: | 758 private: |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
880 Register value, | 890 Register value, |
881 Label* no_update); | 891 Label* no_update); |
882 | 892 |
883 DISALLOW_ALLOCATION(); | 893 DISALLOW_ALLOCATION(); |
884 DISALLOW_COPY_AND_ASSIGN(Assembler); | 894 DISALLOW_COPY_AND_ASSIGN(Assembler); |
885 }; | 895 }; |
886 | 896 |
887 } // namespace dart | 897 } // namespace dart |
888 | 898 |
889 #endif // VM_ASSEMBLER_ARM_H_ | 899 #endif // VM_ASSEMBLER_ARM_H_ |
OLD | NEW |