| 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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 bmi2l(kF2, 0xf7, dst, src2, src1); | 1575 bmi2l(kF2, 0xf7, dst, src2, src1); |
| 1576 } | 1576 } |
| 1577 void shrxl(Register dst, const Operand& src1, Register src2) { | 1577 void shrxl(Register dst, const Operand& src1, Register src2) { |
| 1578 bmi2l(kF2, 0xf7, dst, src2, src1); | 1578 bmi2l(kF2, 0xf7, dst, src2, src1); |
| 1579 } | 1579 } |
| 1580 void rorxq(Register dst, Register src, byte imm8); | 1580 void rorxq(Register dst, Register src, byte imm8); |
| 1581 void rorxq(Register dst, const Operand& src, byte imm8); | 1581 void rorxq(Register dst, const Operand& src, byte imm8); |
| 1582 void rorxl(Register dst, Register src, byte imm8); | 1582 void rorxl(Register dst, Register src, byte imm8); |
| 1583 void rorxl(Register dst, const Operand& src, byte imm8); | 1583 void rorxl(Register dst, const Operand& src, byte imm8); |
| 1584 | 1584 |
| 1585 #define PACKED_OP_LIST(V) \ |
| 1586 V(and, 0x54) \ |
| 1587 V(xor, 0x57) |
| 1588 |
| 1589 #define AVX_PACKED_OP_DECLARE(name, opcode) \ |
| 1590 void v##name##ps(XMMRegister dst, XMMRegister src1, XMMRegister src2) { \ |
| 1591 vps(opcode, dst, src1, src2); \ |
| 1592 } \ |
| 1593 void v##name##ps(XMMRegister dst, XMMRegister src1, const Operand& src2) { \ |
| 1594 vps(opcode, dst, src1, src2); \ |
| 1595 } \ |
| 1596 void v##name##pd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { \ |
| 1597 vpd(opcode, dst, src1, src2); \ |
| 1598 } \ |
| 1599 void v##name##pd(XMMRegister dst, XMMRegister src1, const Operand& src2) { \ |
| 1600 vpd(opcode, dst, src1, src2); \ |
| 1601 } |
| 1602 |
| 1603 PACKED_OP_LIST(AVX_PACKED_OP_DECLARE); |
| 1604 void vps(byte op, XMMRegister dst, XMMRegister src1, XMMRegister src2); |
| 1605 void vps(byte op, XMMRegister dst, XMMRegister src1, const Operand& src2); |
| 1606 void vpd(byte op, XMMRegister dst, XMMRegister src1, XMMRegister src2); |
| 1607 void vpd(byte op, XMMRegister dst, XMMRegister src1, const Operand& src2); |
| 1608 |
| 1585 // Debugging | 1609 // Debugging |
| 1586 void Print(); | 1610 void Print(); |
| 1587 | 1611 |
| 1588 // Check the code size generated from label to here. | 1612 // Check the code size generated from label to here. |
| 1589 int SizeOfCodeGeneratedSince(Label* label) { | 1613 int SizeOfCodeGeneratedSince(Label* label) { |
| 1590 return pc_offset() - label->pos(); | 1614 return pc_offset() - label->pos(); |
| 1591 } | 1615 } |
| 1592 | 1616 |
| 1593 // Mark address of the ExitJSFrame code. | 1617 // Mark address of the ExitJSFrame code. |
| 1594 void RecordJSReturn(); | 1618 void RecordJSReturn(); |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2132 private: | 2156 private: |
| 2133 Assembler* assembler_; | 2157 Assembler* assembler_; |
| 2134 #ifdef DEBUG | 2158 #ifdef DEBUG |
| 2135 int space_before_; | 2159 int space_before_; |
| 2136 #endif | 2160 #endif |
| 2137 }; | 2161 }; |
| 2138 | 2162 |
| 2139 } } // namespace v8::internal | 2163 } } // namespace v8::internal |
| 2140 | 2164 |
| 2141 #endif // V8_X64_ASSEMBLER_X64_H_ | 2165 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |