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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 | 483 |
484 void decl(Register reg); | 484 void decl(Register reg); |
485 void decl(const Address& address); | 485 void decl(const Address& address); |
486 | 486 |
487 void shll(Register reg, const Immediate& imm); | 487 void shll(Register reg, const Immediate& imm); |
488 void shll(Register operand, Register shifter); | 488 void shll(Register operand, Register shifter); |
489 void shrl(Register reg, const Immediate& imm); | 489 void shrl(Register reg, const Immediate& imm); |
490 void shrl(Register operand, Register shifter); | 490 void shrl(Register operand, Register shifter); |
491 void sarl(Register reg, const Immediate& imm); | 491 void sarl(Register reg, const Immediate& imm); |
492 void sarl(Register operand, Register shifter); | 492 void sarl(Register operand, Register shifter); |
| 493 void sarl(const Address& address, Register shifter); |
493 void shld(Register dst, Register src); | 494 void shld(Register dst, Register src); |
| 495 void shrd(Register dst, Register src); |
| 496 void shrd(const Address& dst, Register src); |
494 | 497 |
495 void negl(Register reg); | 498 void negl(Register reg); |
496 void notl(Register reg); | 499 void notl(Register reg); |
497 | 500 |
498 void enter(const Immediate& imm); | 501 void enter(const Immediate& imm); |
499 void leave(); | 502 void leave(); |
500 | 503 |
501 void ret(); | 504 void ret(); |
502 void ret(const Immediate& imm); | 505 void ret(const Immediate& imm); |
503 | 506 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 inline void EmitOperandSizeOverride(); | 653 inline void EmitOperandSizeOverride(); |
651 | 654 |
652 void EmitOperand(int rm, const Operand& operand); | 655 void EmitOperand(int rm, const Operand& operand); |
653 void EmitImmediate(const Immediate& imm); | 656 void EmitImmediate(const Immediate& imm); |
654 void EmitComplex(int rm, const Operand& operand, const Immediate& immediate); | 657 void EmitComplex(int rm, const Operand& operand, const Immediate& immediate); |
655 void EmitLabel(Label* label, int instruction_size); | 658 void EmitLabel(Label* label, int instruction_size); |
656 void EmitLabelLink(Label* label); | 659 void EmitLabelLink(Label* label); |
657 void EmitNearLabelLink(Label* label); | 660 void EmitNearLabelLink(Label* label); |
658 | 661 |
659 void EmitGenericShift(int rm, Register reg, const Immediate& imm); | 662 void EmitGenericShift(int rm, Register reg, const Immediate& imm); |
660 void EmitGenericShift(int rm, Register operand, Register shifter); | 663 void EmitGenericShift(int rm, const Operand& operand, Register shifter); |
661 | 664 |
662 void StoreIntoObjectFilter(Register object, Register value, Label* no_update); | 665 void StoreIntoObjectFilter(Register object, Register value, Label* no_update); |
663 | 666 |
664 DISALLOW_ALLOCATION(); | 667 DISALLOW_ALLOCATION(); |
665 DISALLOW_COPY_AND_ASSIGN(Assembler); | 668 DISALLOW_COPY_AND_ASSIGN(Assembler); |
666 }; | 669 }; |
667 | 670 |
668 | 671 |
669 inline void Assembler::EmitUint8(uint8_t value) { | 672 inline void Assembler::EmitUint8(uint8_t value) { |
670 buffer_.Emit<uint8_t>(value); | 673 buffer_.Emit<uint8_t>(value); |
(...skipping 21 matching lines...) Expand all Loading... |
692 } | 695 } |
693 | 696 |
694 | 697 |
695 inline void Assembler::EmitOperandSizeOverride() { | 698 inline void Assembler::EmitOperandSizeOverride() { |
696 EmitUint8(0x66); | 699 EmitUint8(0x66); |
697 } | 700 } |
698 | 701 |
699 } // namespace dart | 702 } // namespace dart |
700 | 703 |
701 #endif // VM_ASSEMBLER_IA32_H_ | 704 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |