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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1630 | 1630 |
1631 // FPU instructions. | 1631 // FPU instructions. |
1632 | 1632 |
1633 void Assembler::fld(int i) { | 1633 void Assembler::fld(int i) { |
1634 EnsureSpace ensure_space(this); | 1634 EnsureSpace ensure_space(this); |
1635 last_pc_ = pc_; | 1635 last_pc_ = pc_; |
1636 emit_farith(0xD9, 0xC0, i); | 1636 emit_farith(0xD9, 0xC0, i); |
1637 } | 1637 } |
1638 | 1638 |
1639 | 1639 |
| 1640 void Assembler::fstp(int i) { |
| 1641 EnsureSpace ensure_space(this); |
| 1642 last_pc_ = pc_; |
| 1643 emit_farith(0xDD, 0xD8, i); |
| 1644 } |
| 1645 |
| 1646 |
1640 void Assembler::fld1() { | 1647 void Assembler::fld1() { |
1641 EnsureSpace ensure_space(this); | 1648 EnsureSpace ensure_space(this); |
1642 last_pc_ = pc_; | 1649 last_pc_ = pc_; |
1643 EMIT(0xD9); | 1650 EMIT(0xD9); |
1644 EMIT(0xE8); | 1651 EMIT(0xE8); |
1645 } | 1652 } |
1646 | 1653 |
1647 | 1654 |
| 1655 void Assembler::fldpi() { |
| 1656 EnsureSpace ensure_space(this); |
| 1657 last_pc_ = pc_; |
| 1658 EMIT(0xD9); |
| 1659 EMIT(0xEB); |
| 1660 } |
| 1661 |
| 1662 |
1648 void Assembler::fldz() { | 1663 void Assembler::fldz() { |
1649 EnsureSpace ensure_space(this); | 1664 EnsureSpace ensure_space(this); |
1650 last_pc_ = pc_; | 1665 last_pc_ = pc_; |
1651 EMIT(0xD9); | 1666 EMIT(0xD9); |
1652 EMIT(0xEE); | 1667 EMIT(0xEE); |
1653 } | 1668 } |
1654 | 1669 |
1655 | 1670 |
1656 void Assembler::fld_s(const Operand& adr) { | 1671 void Assembler::fld_s(const Operand& adr) { |
1657 EnsureSpace ensure_space(this); | 1672 EnsureSpace ensure_space(this); |
(...skipping 20 matching lines...) Expand all Loading... |
1678 | 1693 |
1679 | 1694 |
1680 void Assembler::fstp_d(const Operand& adr) { | 1695 void Assembler::fstp_d(const Operand& adr) { |
1681 EnsureSpace ensure_space(this); | 1696 EnsureSpace ensure_space(this); |
1682 last_pc_ = pc_; | 1697 last_pc_ = pc_; |
1683 EMIT(0xDD); | 1698 EMIT(0xDD); |
1684 emit_operand(ebx, adr); | 1699 emit_operand(ebx, adr); |
1685 } | 1700 } |
1686 | 1701 |
1687 | 1702 |
| 1703 void Assembler::fst_d(const Operand& adr) { |
| 1704 EnsureSpace ensure_space(this); |
| 1705 last_pc_ = pc_; |
| 1706 EMIT(0xDD); |
| 1707 emit_operand(edx, adr); |
| 1708 } |
| 1709 |
| 1710 |
1688 void Assembler::fild_s(const Operand& adr) { | 1711 void Assembler::fild_s(const Operand& adr) { |
1689 EnsureSpace ensure_space(this); | 1712 EnsureSpace ensure_space(this); |
1690 last_pc_ = pc_; | 1713 last_pc_ = pc_; |
1691 EMIT(0xDB); | 1714 EMIT(0xDB); |
1692 emit_operand(eax, adr); | 1715 emit_operand(eax, adr); |
1693 } | 1716 } |
1694 | 1717 |
1695 | 1718 |
1696 void Assembler::fild_d(const Operand& adr) { | 1719 void Assembler::fild_d(const Operand& adr) { |
1697 EnsureSpace ensure_space(this); | 1720 EnsureSpace ensure_space(this); |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2391 push_insn[1] = 13; // Skip over coverage insns. | 2414 push_insn[1] = 13; // Skip over coverage insns. |
2392 if (coverage_log != NULL) { | 2415 if (coverage_log != NULL) { |
2393 fprintf(coverage_log, "%s\n", file_line); | 2416 fprintf(coverage_log, "%s\n", file_line); |
2394 fflush(coverage_log); | 2417 fflush(coverage_log); |
2395 } | 2418 } |
2396 } | 2419 } |
2397 | 2420 |
2398 #endif | 2421 #endif |
2399 | 2422 |
2400 } } // namespace v8::internal | 2423 } } // namespace v8::internal |
OLD | NEW |