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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 | 814 |
815 // Debugging and bringup support. | 815 // Debugging and bringup support. |
816 void Stop(const char* message); | 816 void Stop(const char* message); |
817 void Unimplemented(const char* message); | 817 void Unimplemented(const char* message); |
818 void Untested(const char* message); | 818 void Untested(const char* message); |
819 void Unreachable(const char* message); | 819 void Unreachable(const char* message); |
820 | 820 |
821 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); | 821 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); |
822 | 822 |
823 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); | 823 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
| 824 static bool EmittingComments(); |
| 825 |
824 const Code::Comments& GetCodeComments() const; | 826 const Code::Comments& GetCodeComments() const; |
825 | 827 |
826 static const char* RegisterName(Register reg); | 828 static const char* RegisterName(Register reg); |
827 static const char* FpuRegisterName(FpuRegister reg); | 829 static const char* FpuRegisterName(FpuRegister reg); |
828 | 830 |
829 // Smis that do not fit into 17 bits (16 bits of payload) are unsafe. | 831 // Smis that do not fit into 17 bits (16 bits of payload) are unsafe. |
830 static bool IsSafe(const Object& object) { | 832 static bool IsSafe(const Object& object) { |
831 return !object.IsSmi() || | 833 return !object.IsSmi() || |
832 Utils::IsInt(17, reinterpret_cast<intptr_t>(object.raw())); | 834 Utils::IsInt(17, reinterpret_cast<intptr_t>(object.raw())); |
833 } | 835 } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 } | 918 } |
917 | 919 |
918 | 920 |
919 inline void Assembler::EmitOperandSizeOverride() { | 921 inline void Assembler::EmitOperandSizeOverride() { |
920 EmitUint8(0x66); | 922 EmitUint8(0x66); |
921 } | 923 } |
922 | 924 |
923 } // namespace dart | 925 } // namespace dart |
924 | 926 |
925 #endif // VM_ASSEMBLER_IA32_H_ | 927 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |