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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 void decq(Register dst); | 598 void decq(Register dst); |
599 void decq(const Operand& dst); | 599 void decq(const Operand& dst); |
600 void decl(const Operand& dst); | 600 void decl(const Operand& dst); |
601 | 601 |
602 // Sign-extends rax into rdx:rax. | 602 // Sign-extends rax into rdx:rax. |
603 void cqo(); | 603 void cqo(); |
604 | 604 |
605 // Divide rdx:rax by src. Quotient in rax, remainder in rdx. | 605 // Divide rdx:rax by src. Quotient in rax, remainder in rdx. |
606 void idiv(Register src); | 606 void idiv(Register src); |
607 | 607 |
608 void imul(Register dst, Register src); | 608 // Signed multiply instructions. |
609 void imul(Register dst, const Operand& src); | 609 void imul(Register src); // rdx:rax = rax * src. |
610 // Performs the operation dst = src * imm. | 610 void imul(Register dst, Register src); // dst = dst * src. |
611 void imul(Register dst, Register src, Immediate imm); | 611 void imul(Register dst, const Operand& src); // dst = dst * src. |
| 612 void imul(Register dst, Register src, Immediate imm); // dst = src * imm. |
612 // Multiply 32 bit registers | 613 // Multiply 32 bit registers |
613 void imull(Register dst, Register src); | 614 void imull(Register dst, Register src); // dst = dst * src. |
614 | 615 |
615 void incq(Register dst); | 616 void incq(Register dst); |
616 void incq(const Operand& dst); | 617 void incq(const Operand& dst); |
617 void incl(const Operand& dst); | 618 void incl(const Operand& dst); |
618 | 619 |
619 void lea(Register dst, const Operand& src); | 620 void lea(Register dst, const Operand& src); |
620 | 621 |
621 // Multiply rax by src, put the result in rdx:rax. | 622 // Multiply rax by src, put the result in rdx:rax. |
622 void mul(Register src); | 623 void mul(Register src); |
623 | 624 |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 private: | 1154 private: |
1154 Assembler* assembler_; | 1155 Assembler* assembler_; |
1155 #ifdef DEBUG | 1156 #ifdef DEBUG |
1156 int space_before_; | 1157 int space_before_; |
1157 #endif | 1158 #endif |
1158 }; | 1159 }; |
1159 | 1160 |
1160 } } // namespace v8::internal | 1161 } } // namespace v8::internal |
1161 | 1162 |
1162 #endif // V8_X64_ASSEMBLER_X64_H_ | 1163 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |