| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 void movq(Register dst, const Operand& src); | 649 void movq(Register dst, const Operand& src); |
| 650 void movq(Register dst, Register src); | 650 void movq(Register dst, Register src); |
| 651 // Sign extends immediate 32-bit value to 64 bits. | 651 // Sign extends immediate 32-bit value to 64 bits. |
| 652 void movq(Register dst, Immediate x); | 652 void movq(Register dst, Immediate x); |
| 653 // Move the offset of the label location relative to the current | 653 // Move the offset of the label location relative to the current |
| 654 // position (after the move) to the destination. | 654 // position (after the move) to the destination. |
| 655 void movl(const Operand& dst, Label* src); | 655 void movl(const Operand& dst, Label* src); |
| 656 | 656 |
| 657 // Move sign extended immediate to memory location. | 657 // Move sign extended immediate to memory location. |
| 658 void movq(const Operand& dst, Immediate value); | 658 void movq(const Operand& dst, Immediate value); |
| 659 // New x64 instructions to load a 64-bit immediate into a register. | 659 // Instructions to load a 64-bit immediate into a register. |
| 660 // All 64-bit immediates must have a relocation mode. | 660 // All 64-bit immediates must have a relocation mode. |
| 661 void movq(Register dst, void* ptr, RelocInfo::Mode rmode); | 661 void movq(Register dst, void* ptr, RelocInfo::Mode rmode); |
| 662 void movq(Register dst, int64_t value, RelocInfo::Mode rmode); | 662 void movq(Register dst, int64_t value, RelocInfo::Mode rmode); |
| 663 void movq(Register dst, const char* s, RelocInfo::Mode rmode); | 663 void movq(Register dst, const char* s, RelocInfo::Mode rmode); |
| 664 void movq(Register dst, Smi* smi); |
| 664 // Moves the address of the external reference into the register. | 665 // Moves the address of the external reference into the register. |
| 665 void movq(Register dst, ExternalReference ext); | 666 void movq(Register dst, ExternalReference ext); |
| 666 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode); | 667 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode); |
| 667 | 668 |
| 668 void movsxbq(Register dst, const Operand& src); | 669 void movsxbq(Register dst, const Operand& src); |
| 669 void movsxwq(Register dst, const Operand& src); | 670 void movsxwq(Register dst, const Operand& src); |
| 670 void movsxlq(Register dst, Register src); | 671 void movsxlq(Register dst, Register src); |
| 671 void movsxlq(Register dst, const Operand& src); | 672 void movsxlq(Register dst, const Operand& src); |
| 672 void movzxbq(Register dst, const Operand& src); | 673 void movzxbq(Register dst, const Operand& src); |
| 673 void movzxbl(Register dst, const Operand& src); | 674 void movzxbl(Register dst, const Operand& src); |
| 674 void movzxwq(Register dst, const Operand& src); | 675 void movzxwq(Register dst, const Operand& src); |
| 675 void movzxwl(Register dst, const Operand& src); | 676 void movzxwl(Register dst, const Operand& src); |
| 676 | 677 |
| 677 // Repeated moves. | 678 // Repeated moves. |
| 678 | 679 |
| 679 void repmovsb(); | 680 void repmovsb(); |
| 680 void repmovsw(); | 681 void repmovsw(); |
| 681 void repmovsl(); | 682 void repmovsl(); |
| 682 void repmovsq(); | 683 void repmovsq(); |
| 683 | 684 |
| 684 // New x64 instruction to load from an immediate 64-bit pointer into RAX. | 685 // Instruction to load from an immediate 64-bit pointer into RAX. |
| 685 void load_rax(void* ptr, RelocInfo::Mode rmode); | 686 void load_rax(void* ptr, RelocInfo::Mode rmode); |
| 686 void load_rax(ExternalReference ext); | 687 void load_rax(ExternalReference ext); |
| 687 | 688 |
| 688 // Conditional moves. | 689 // Conditional moves. |
| 689 void cmovq(Condition cc, Register dst, Register src); | 690 void cmovq(Condition cc, Register dst, Register src); |
| 690 void cmovq(Condition cc, Register dst, const Operand& src); | 691 void cmovq(Condition cc, Register dst, const Operand& src); |
| 691 void cmovl(Condition cc, Register dst, Register src); | 692 void cmovl(Condition cc, Register dst, Register src); |
| 692 void cmovl(Condition cc, Register dst, const Operand& src); | 693 void cmovl(Condition cc, Register dst, const Operand& src); |
| 693 | 694 |
| 694 // Exchange two registers | 695 // Exchange two registers |
| (...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 private: | 1583 private: |
| 1583 Assembler* assembler_; | 1584 Assembler* assembler_; |
| 1584 #ifdef DEBUG | 1585 #ifdef DEBUG |
| 1585 int space_before_; | 1586 int space_before_; |
| 1586 #endif | 1587 #endif |
| 1587 }; | 1588 }; |
| 1588 | 1589 |
| 1589 } } // namespace v8::internal | 1590 } } // namespace v8::internal |
| 1590 | 1591 |
| 1591 #endif // V8_X64_ASSEMBLER_X64_H_ | 1592 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |