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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 void EnterStubFrame(); | 742 void EnterStubFrame(); |
743 | 743 |
744 // Instruction pattern from entrypoint is used in dart frame prologs | 744 // Instruction pattern from entrypoint is used in dart frame prologs |
745 // to set up the frame and save a PC which can be used to figure out the | 745 // to set up the frame and save a PC which can be used to figure out the |
746 // RawInstruction object corresponding to the code running in the frame. | 746 // RawInstruction object corresponding to the code running in the frame. |
747 // entrypoint: | 747 // entrypoint: |
748 // pushq rbp (size is 1 byte) | 748 // pushq rbp (size is 1 byte) |
749 // movq rbp, rsp (size is 3 bytes) | 749 // movq rbp, rsp (size is 3 bytes) |
750 // call L (size is 5 bytes) | 750 // call L (size is 5 bytes) |
751 // L: | 751 // L: |
752 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 9; | 752 static const intptr_t kEntryPointToPcMarkerOffset = 9; |
753 | 753 |
754 // Inlined allocation of an instance of class 'cls', code has no runtime | 754 // Inlined allocation of an instance of class 'cls', code has no runtime |
755 // calls. Jump to 'failure' if the instance cannot be allocated here. | 755 // calls. Jump to 'failure' if the instance cannot be allocated here. |
756 // Allocated instance is returned in 'instance_reg'. | 756 // Allocated instance is returned in 'instance_reg'. |
757 // Only the tags field of the object is initialized. | 757 // Only the tags field of the object is initialized. |
758 void TryAllocate(const Class& cls, | 758 void TryAllocate(const Class& cls, |
759 Label* failure, | 759 Label* failure, |
760 bool near_jump, | 760 bool near_jump, |
761 Register instance_reg); | 761 Register instance_reg); |
762 | 762 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 } | 909 } |
910 | 910 |
911 | 911 |
912 inline void Assembler::EmitOperandSizeOverride() { | 912 inline void Assembler::EmitOperandSizeOverride() { |
913 EmitUint8(0x66); | 913 EmitUint8(0x66); |
914 } | 914 } |
915 | 915 |
916 } // namespace dart | 916 } // namespace dart |
917 | 917 |
918 #endif // VM_ASSEMBLER_X64_H_ | 918 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |