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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 EnsureSpace ensure_space(this); | 828 EnsureSpace ensure_space(this); |
829 EMIT(0x66); | 829 EMIT(0x66); |
830 EMIT(0x81); | 830 EMIT(0x81); |
831 emit_operand(edi, op); | 831 emit_operand(edi, op); |
832 emit_w(imm16); | 832 emit_w(imm16); |
833 } | 833 } |
834 | 834 |
835 void Assembler::cmpw(Register reg, const Operand& op) { | 835 void Assembler::cmpw(Register reg, const Operand& op) { |
836 EnsureSpace ensure_space(this); | 836 EnsureSpace ensure_space(this); |
837 EMIT(0x66); | 837 EMIT(0x66); |
| 838 EMIT(0x3B); |
| 839 emit_operand(reg, op); |
| 840 } |
| 841 |
| 842 void Assembler::cmpw(const Operand& op, Register reg) { |
| 843 EnsureSpace ensure_space(this); |
| 844 EMIT(0x66); |
838 EMIT(0x39); | 845 EMIT(0x39); |
839 emit_operand(reg, op); | 846 emit_operand(reg, op); |
840 } | 847 } |
841 | 848 |
842 void Assembler::cmpw(const Operand& op, Register reg) { | |
843 EnsureSpace ensure_space(this); | |
844 EMIT(0x66); | |
845 EMIT(0x3B); | |
846 emit_operand(reg, op); | |
847 } | |
848 | |
849 void Assembler::cmp(Register reg, int32_t imm32) { | 849 void Assembler::cmp(Register reg, int32_t imm32) { |
850 EnsureSpace ensure_space(this); | 850 EnsureSpace ensure_space(this); |
851 emit_arith(7, Operand(reg), Immediate(imm32)); | 851 emit_arith(7, Operand(reg), Immediate(imm32)); |
852 } | 852 } |
853 | 853 |
854 | 854 |
855 void Assembler::cmp(Register reg, Handle<Object> handle) { | 855 void Assembler::cmp(Register reg, Handle<Object> handle) { |
856 EnsureSpace ensure_space(this); | 856 EnsureSpace ensure_space(this); |
857 emit_arith(7, Operand(reg), Immediate(handle)); | 857 emit_arith(7, Operand(reg), Immediate(handle)); |
858 } | 858 } |
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3061 fflush(coverage_log); | 3061 fflush(coverage_log); |
3062 } | 3062 } |
3063 } | 3063 } |
3064 | 3064 |
3065 #endif | 3065 #endif |
3066 | 3066 |
3067 } // namespace internal | 3067 } // namespace internal |
3068 } // namespace v8 | 3068 } // namespace v8 |
3069 | 3069 |
3070 #endif // V8_TARGET_ARCH_IA32 | 3070 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |