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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 // Instruction pattern from entrypoint is used in dart frame prologs | 752 // Instruction pattern from entrypoint is used in dart frame prologs |
753 // to set up the frame and save a PC which can be used to figure out the | 753 // to set up the frame and save a PC which can be used to figure out the |
754 // RawInstruction object corresponding to the code running in the frame. | 754 // RawInstruction object corresponding to the code running in the frame. |
755 // entrypoint: | 755 // entrypoint: |
756 // pushl ebp (size is 1 byte) | 756 // pushl ebp (size is 1 byte) |
757 // movl ebp, esp (size is 2 bytes) | 757 // movl ebp, esp (size is 2 bytes) |
758 // call L (size is 5 bytes) | 758 // call L (size is 5 bytes) |
759 // L: | 759 // L: |
760 static const intptr_t kEntryPointToPcMarkerOffset = 8; | 760 static const intptr_t kEntryPointToPcMarkerOffset = 8; |
761 | 761 |
| 762 void BumpAllocationCount(intptr_t cid, |
| 763 Register temp_reg); |
| 764 |
762 // Inlined allocation of an instance of class 'cls', code has no runtime | 765 // Inlined allocation of an instance of class 'cls', code has no runtime |
763 // calls. Jump to 'failure' if the instance cannot be allocated here. | 766 // calls. Jump to 'failure' if the instance cannot be allocated here. |
764 // Allocated instance is returned in 'instance_reg'. | 767 // Allocated instance is returned in 'instance_reg'. |
765 // Only the tags field of the object is initialized. | 768 // Only the tags field of the object is initialized. |
766 void TryAllocate(const Class& cls, | 769 void TryAllocate(const Class& cls, |
767 Label* failure, | 770 Label* failure, |
768 bool near_jump, | 771 bool near_jump, |
769 Register instance_reg); | 772 Register instance_reg, |
| 773 Register temp_reg); |
770 | 774 |
771 // Debugging and bringup support. | 775 // Debugging and bringup support. |
772 void Stop(const char* message); | 776 void Stop(const char* message); |
773 void Unimplemented(const char* message); | 777 void Unimplemented(const char* message); |
774 void Untested(const char* message); | 778 void Untested(const char* message); |
775 void Unreachable(const char* message); | 779 void Unreachable(const char* message); |
776 | 780 |
777 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); | 781 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); |
778 | 782 |
779 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); | 783 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 } | 863 } |
860 | 864 |
861 | 865 |
862 inline void Assembler::EmitOperandSizeOverride() { | 866 inline void Assembler::EmitOperandSizeOverride() { |
863 EmitUint8(0x66); | 867 EmitUint8(0x66); |
864 } | 868 } |
865 | 869 |
866 } // namespace dart | 870 } // namespace dart |
867 | 871 |
868 #endif // VM_ASSEMBLER_IA32_H_ | 872 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |