| 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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 // Inlined allocation of an instance of class 'cls', code has no runtime | 805 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 806 // calls. Jump to 'failure' if the instance cannot be allocated here. | 806 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 807 // Allocated instance is returned in 'instance_reg'. | 807 // Allocated instance is returned in 'instance_reg'. |
| 808 // Only the tags field of the object is initialized. | 808 // Only the tags field of the object is initialized. |
| 809 void TryAllocate(const Class& cls, | 809 void TryAllocate(const Class& cls, |
| 810 Label* failure, | 810 Label* failure, |
| 811 bool near_jump, | 811 bool near_jump, |
| 812 Register instance_reg, | 812 Register instance_reg, |
| 813 Register temp_reg); | 813 Register temp_reg); |
| 814 | 814 |
| 815 void TryAllocateArray(intptr_t cid, |
| 816 intptr_t instance_size, |
| 817 Label* failure, |
| 818 bool near_jump, |
| 819 Register instance, |
| 820 Register end_address); |
| 821 |
| 815 // Debugging and bringup support. | 822 // Debugging and bringup support. |
| 816 void Stop(const char* message); | 823 void Stop(const char* message); |
| 817 void Unimplemented(const char* message); | 824 void Unimplemented(const char* message); |
| 818 void Untested(const char* message); | 825 void Untested(const char* message); |
| 819 void Unreachable(const char* message); | 826 void Unreachable(const char* message); |
| 820 | 827 |
| 821 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); | 828 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); |
| 822 | 829 |
| 823 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); | 830 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
| 824 static bool EmittingComments(); | 831 static bool EmittingComments(); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 } | 925 } |
| 919 | 926 |
| 920 | 927 |
| 921 inline void Assembler::EmitOperandSizeOverride() { | 928 inline void Assembler::EmitOperandSizeOverride() { |
| 922 EmitUint8(0x66); | 929 EmitUint8(0x66); |
| 923 } | 930 } |
| 924 | 931 |
| 925 } // namespace dart | 932 } // namespace dart |
| 926 | 933 |
| 927 #endif // VM_ASSEMBLER_IA32_H_ | 934 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |