| 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 // Instruction pattern from entrypoint is used in dart frame prologs | 757 // Instruction pattern from entrypoint is used in dart frame prologs |
| 758 // to set up the frame and save a PC which can be used to figure out the | 758 // to set up the frame and save a PC which can be used to figure out the |
| 759 // RawInstruction object corresponding to the code running in the frame. | 759 // RawInstruction object corresponding to the code running in the frame. |
| 760 // entrypoint: | 760 // entrypoint: |
| 761 // pushl ebp (size is 1 byte) | 761 // pushl ebp (size is 1 byte) |
| 762 // movl ebp, esp (size is 2 bytes) | 762 // movl ebp, esp (size is 2 bytes) |
| 763 // call L (size is 5 bytes) | 763 // call L (size is 5 bytes) |
| 764 // L: | 764 // L: |
| 765 static const intptr_t kEntryPointToPcMarkerOffset = 8; | 765 static const intptr_t kEntryPointToPcMarkerOffset = 8; |
| 766 | 766 |
| 767 void BumpAllocationCount(Heap::Space space, |
| 768 intptr_t cid, |
| 769 Register temp_reg); |
| 770 |
| 771 void BumpAllocationCount(Heap::Space space, |
| 772 intptr_t cid, |
| 773 Register size_reg, |
| 774 Register temp_reg); |
| 775 |
| 767 // Inlined allocation of an instance of class 'cls', code has no runtime | 776 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 768 // calls. Jump to 'failure' if the instance cannot be allocated here. | 777 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 769 // Allocated instance is returned in 'instance_reg'. | 778 // Allocated instance is returned in 'instance_reg'. |
| 770 // Only the tags field of the object is initialized. | 779 // Only the tags field of the object is initialized. |
| 771 void TryAllocate(const Class& cls, | 780 void TryAllocate(const Class& cls, |
| 772 Label* failure, | 781 Label* failure, |
| 773 bool near_jump, | 782 bool near_jump, |
| 774 Register instance_reg); | 783 Register instance_reg, |
| 784 Register temp_reg); |
| 775 | 785 |
| 776 // Debugging and bringup support. | 786 // Debugging and bringup support. |
| 777 void Stop(const char* message); | 787 void Stop(const char* message); |
| 778 void Unimplemented(const char* message); | 788 void Unimplemented(const char* message); |
| 779 void Untested(const char* message); | 789 void Untested(const char* message); |
| 780 void Unreachable(const char* message); | 790 void Unreachable(const char* message); |
| 781 | 791 |
| 782 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); | 792 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); |
| 783 | 793 |
| 784 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); | 794 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 } | 887 } |
| 878 | 888 |
| 879 | 889 |
| 880 inline void Assembler::EmitOperandSizeOverride() { | 890 inline void Assembler::EmitOperandSizeOverride() { |
| 881 EmitUint8(0x66); | 891 EmitUint8(0x66); |
| 882 } | 892 } |
| 883 | 893 |
| 884 } // namespace dart | 894 } // namespace dart |
| 885 | 895 |
| 886 #endif // VM_ASSEMBLER_IA32_H_ | 896 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |