| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 } | 573 } |
| 574 | 574 |
| 575 // Debugging and bringup support. | 575 // Debugging and bringup support. |
| 576 void Stop(const char* message); | 576 void Stop(const char* message); |
| 577 void Unimplemented(const char* message); | 577 void Unimplemented(const char* message); |
| 578 void Untested(const char* message); | 578 void Untested(const char* message); |
| 579 void Unreachable(const char* message); | 579 void Unreachable(const char* message); |
| 580 | 580 |
| 581 static void InitializeMemoryWithBreakpoints(uword data, int length); | 581 static void InitializeMemoryWithBreakpoints(uword data, int length); |
| 582 | 582 |
| 583 void Comment(const char* format, ...); | 583 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
| 584 const Code::Comments& GetCodeComments() const; | 584 const Code::Comments& GetCodeComments() const; |
| 585 | 585 |
| 586 static const char* RegisterName(Register reg); | 586 static const char* RegisterName(Register reg); |
| 587 static const char* XmmRegisterName(XmmRegister reg); | 587 static const char* XmmRegisterName(XmmRegister reg); |
| 588 | 588 |
| 589 private: | 589 private: |
| 590 AssemblerBuffer buffer_; | 590 AssemblerBuffer buffer_; |
| 591 int prolog_offset_; | 591 int prolog_offset_; |
| 592 | 592 |
| 593 class CodeComment : public ZoneAllocated { | 593 class CodeComment : public ZoneAllocated { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 } | 657 } |
| 658 | 658 |
| 659 | 659 |
| 660 inline void Assembler::EmitOperandSizeOverride() { | 660 inline void Assembler::EmitOperandSizeOverride() { |
| 661 EmitUint8(0x66); | 661 EmitUint8(0x66); |
| 662 } | 662 } |
| 663 | 663 |
| 664 } // namespace dart | 664 } // namespace dart |
| 665 | 665 |
| 666 #endif // VM_ASSEMBLER_IA32_H_ | 666 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |