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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 void leave(); | 625 void leave(); |
626 | 626 |
627 void ret(); | 627 void ret(); |
628 void ret(const Immediate& imm); | 628 void ret(const Immediate& imm); |
629 | 629 |
630 // 'size' indicates size in bytes and must be in the range 1..8. | 630 // 'size' indicates size in bytes and must be in the range 1..8. |
631 void nop(int size = 1); | 631 void nop(int size = 1); |
632 void int3(); | 632 void int3(); |
633 void hlt(); | 633 void hlt(); |
634 | 634 |
| 635 static uword GetBreakInstructionFiller() { |
| 636 return 0xCCCCCCCC; |
| 637 } |
| 638 |
635 // Note: verified_mem mode forces far jumps. | 639 // Note: verified_mem mode forces far jumps. |
636 void j(Condition condition, Label* label, bool near = kFarJump); | 640 void j(Condition condition, Label* label, bool near = kFarJump); |
637 void j(Condition condition, const ExternalLabel* label); | 641 void j(Condition condition, const ExternalLabel* label); |
638 | 642 |
639 void jmp(Register reg); | 643 void jmp(Register reg); |
640 // Note: verified_mem mode forces far jumps. | 644 // Note: verified_mem mode forces far jumps. |
641 void jmp(Label* label, bool near = kFarJump); | 645 void jmp(Label* label, bool near = kFarJump); |
642 void jmp(const ExternalLabel* label); | 646 void jmp(const ExternalLabel* label); |
643 | 647 |
644 void lock(); | 648 void lock(); |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 } | 1061 } |
1058 | 1062 |
1059 | 1063 |
1060 inline void Assembler::EmitOperandSizeOverride() { | 1064 inline void Assembler::EmitOperandSizeOverride() { |
1061 EmitUint8(0x66); | 1065 EmitUint8(0x66); |
1062 } | 1066 } |
1063 | 1067 |
1064 } // namespace dart | 1068 } // namespace dart |
1065 | 1069 |
1066 #endif // VM_ASSEMBLER_IA32_H_ | 1070 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |