| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 478 |
| 479 void negl(Register reg); | 479 void negl(Register reg); |
| 480 void notl(Register reg); | 480 void notl(Register reg); |
| 481 | 481 |
| 482 void enter(const Immediate& imm); | 482 void enter(const Immediate& imm); |
| 483 void leave(); | 483 void leave(); |
| 484 | 484 |
| 485 void ret(); | 485 void ret(); |
| 486 void ret(const Immediate& imm); | 486 void ret(const Immediate& imm); |
| 487 | 487 |
| 488 void nop(); | 488 // 'size' indicates size in bytes and must be in the range 1..8. |
| 489 void nop(int size = 1); |
| 489 void int3(); | 490 void int3(); |
| 490 void hlt(); | 491 void hlt(); |
| 491 | 492 |
| 492 void j(Condition condition, Label* label, bool near = kFarJump); | 493 void j(Condition condition, Label* label, bool near = kFarJump); |
| 493 void j(Condition condition, const ExternalLabel* label); | 494 void j(Condition condition, const ExternalLabel* label); |
| 494 | 495 |
| 495 void jmp(Register reg); | 496 void jmp(Register reg); |
| 496 void jmp(Label* label, bool near = kFarJump); | 497 void jmp(Label* label, bool near = kFarJump); |
| 497 void jmp(const ExternalLabel* label); | 498 void jmp(const ExternalLabel* label); |
| 498 | 499 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 } | 615 } |
| 615 | 616 |
| 616 | 617 |
| 617 inline void Assembler::EmitOperandSizeOverride() { | 618 inline void Assembler::EmitOperandSizeOverride() { |
| 618 EmitUint8(0x66); | 619 EmitUint8(0x66); |
| 619 } | 620 } |
| 620 | 621 |
| 621 } // namespace dart | 622 } // namespace dart |
| 622 | 623 |
| 623 #endif // VM_ASSEMBLER_IA32_H_ | 624 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |