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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 // of m, where m must be a power of 2. | 686 // of m, where m must be a power of 2. |
687 void Align(int m); | 687 void Align(int m); |
688 void Nop(int bytes = 1); | 688 void Nop(int bytes = 1); |
689 // Aligns code to something that's optimal for a jump target for the platform. | 689 // Aligns code to something that's optimal for a jump target for the platform. |
690 void CodeTargetAlign(); | 690 void CodeTargetAlign(); |
691 | 691 |
692 // Stack | 692 // Stack |
693 void pushfq(); | 693 void pushfq(); |
694 void popfq(); | 694 void popfq(); |
695 | 695 |
696 void push(Immediate value); | 696 void pushq(Immediate value); |
697 // Push a 32 bit integer, and guarantee that it is actually pushed as a | 697 // Push a 32 bit integer, and guarantee that it is actually pushed as a |
698 // 32 bit value, the normal push will optimize the 8 bit case. | 698 // 32 bit value, the normal push will optimize the 8 bit case. |
699 void push_imm32(int32_t imm32); | 699 void pushq_imm32(int32_t imm32); |
700 void push(Register src); | 700 void pushq(Register src); |
701 void push(const Operand& src); | 701 void pushq(const Operand& src); |
702 | 702 |
703 void pop(Register dst); | 703 void popq(Register dst); |
704 void pop(const Operand& dst); | 704 void popq(const Operand& dst); |
705 | 705 |
706 void enter(Immediate size); | 706 void enter(Immediate size); |
707 void leave(); | 707 void leave(); |
708 | 708 |
709 // Moves | 709 // Moves |
710 void movb(Register dst, const Operand& src); | 710 void movb(Register dst, const Operand& src); |
711 void movb(Register dst, Immediate imm); | 711 void movb(Register dst, Immediate imm); |
712 void movb(const Operand& dst, Register src); | 712 void movb(const Operand& dst, Register src); |
713 void movb(const Operand& dst, Immediate imm); | 713 void movb(const Operand& dst, Immediate imm); |
714 | 714 |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1749 private: | 1749 private: |
1750 Assembler* assembler_; | 1750 Assembler* assembler_; |
1751 #ifdef DEBUG | 1751 #ifdef DEBUG |
1752 int space_before_; | 1752 int space_before_; |
1753 #endif | 1753 #endif |
1754 }; | 1754 }; |
1755 | 1755 |
1756 } } // namespace v8::internal | 1756 } } // namespace v8::internal |
1757 | 1757 |
1758 #endif // V8_X64_ASSEMBLER_X64_H_ | 1758 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |