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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 ASSERT(CpuFeatures::IsEnabled(CMOV)); | 746 ASSERT(CpuFeatures::IsEnabled(CMOV)); |
747 EnsureSpace ensure_space(this); | 747 EnsureSpace ensure_space(this); |
748 last_pc_ = pc_; | 748 last_pc_ = pc_; |
749 // Opcode: 0f 40 + cc /r. | 749 // Opcode: 0f 40 + cc /r. |
750 EMIT(0x0F); | 750 EMIT(0x0F); |
751 EMIT(0x40 + cc); | 751 EMIT(0x40 + cc); |
752 emit_operand(dst, src); | 752 emit_operand(dst, src); |
753 } | 753 } |
754 | 754 |
755 | 755 |
| 756 void Assembler::cld() { |
| 757 EnsureSpace ensure_space(this); |
| 758 last_pc_ = pc_; |
| 759 EMIT(0xFC); |
| 760 } |
| 761 |
| 762 |
756 void Assembler::rep_movs() { | 763 void Assembler::rep_movs() { |
757 EnsureSpace ensure_space(this); | 764 EnsureSpace ensure_space(this); |
758 last_pc_ = pc_; | 765 last_pc_ = pc_; |
759 EMIT(0xF3); | 766 EMIT(0xF3); |
760 EMIT(0xA5); | 767 EMIT(0xA5); |
761 } | 768 } |
762 | 769 |
763 | 770 |
| 771 void Assembler::rep_stos() { |
| 772 EnsureSpace ensure_space(this); |
| 773 last_pc_ = pc_; |
| 774 EMIT(0xF3); |
| 775 EMIT(0xAB); |
| 776 } |
| 777 |
| 778 |
764 void Assembler::xchg(Register dst, Register src) { | 779 void Assembler::xchg(Register dst, Register src) { |
765 EnsureSpace ensure_space(this); | 780 EnsureSpace ensure_space(this); |
766 last_pc_ = pc_; | 781 last_pc_ = pc_; |
767 if (src.is(eax) || dst.is(eax)) { // Single-byte encoding. | 782 if (src.is(eax) || dst.is(eax)) { // Single-byte encoding. |
768 EMIT(0x90 | (src.is(eax) ? dst.code() : src.code())); | 783 EMIT(0x90 | (src.is(eax) ? dst.code() : src.code())); |
769 } else { | 784 } else { |
770 EMIT(0x87); | 785 EMIT(0x87); |
771 EMIT(0xC0 | src.code() << 3 | dst.code()); | 786 EMIT(0xC0 | src.code() << 3 | dst.code()); |
772 } | 787 } |
773 } | 788 } |
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2490 push_insn[1] = 13; // Skip over coverage insns. | 2505 push_insn[1] = 13; // Skip over coverage insns. |
2491 if (coverage_log != NULL) { | 2506 if (coverage_log != NULL) { |
2492 fprintf(coverage_log, "%s\n", file_line); | 2507 fprintf(coverage_log, "%s\n", file_line); |
2493 fflush(coverage_log); | 2508 fflush(coverage_log); |
2494 } | 2509 } |
2495 } | 2510 } |
2496 | 2511 |
2497 #endif | 2512 #endif |
2498 | 2513 |
2499 } } // namespace v8::internal | 2514 } } // namespace v8::internal |
OLD | NEW |