| 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(intptr_t cid, |
| 768 Register temp_reg); |
| 769 |
| 767 // Inlined allocation of an instance of class 'cls', code has no runtime | 770 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 768 // calls. Jump to 'failure' if the instance cannot be allocated here. | 771 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 769 // Allocated instance is returned in 'instance_reg'. | 772 // Allocated instance is returned in 'instance_reg'. |
| 770 // Only the tags field of the object is initialized. | 773 // Only the tags field of the object is initialized. |
| 771 void TryAllocate(const Class& cls, | 774 void TryAllocate(const Class& cls, |
| 772 Label* failure, | 775 Label* failure, |
| 773 bool near_jump, | 776 bool near_jump, |
| 774 Register instance_reg); | 777 Register instance_reg); |
| 775 | 778 |
| 776 // Debugging and bringup support. | 779 // Debugging and bringup support. |
| 777 void Stop(const char* message); | 780 void Stop(const char* message); |
| 778 void Unimplemented(const char* message); | 781 void Unimplemented(const char* message); |
| 779 void Untested(const char* message); | 782 void Untested(const char* message); |
| 780 void Unreachable(const char* message); | 783 void Unreachable(const char* message); |
| 781 | 784 |
| 782 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); | 785 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); |
| 783 | 786 |
| 784 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); | 787 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 } | 879 } |
| 877 | 880 |
| 878 | 881 |
| 879 inline void Assembler::EmitOperandSizeOverride() { | 882 inline void Assembler::EmitOperandSizeOverride() { |
| 880 EmitUint8(0x66); | 883 EmitUint8(0x66); |
| 881 } | 884 } |
| 882 | 885 |
| 883 } // namespace dart | 886 } // namespace dart |
| 884 | 887 |
| 885 #endif // VM_ASSEMBLER_IA32_H_ | 888 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |