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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 | 912 |
913 | 913 |
914 void Assembler::idiv(Register src) { | 914 void Assembler::idiv(Register src) { |
915 EnsureSpace ensure_space(this); | 915 EnsureSpace ensure_space(this); |
916 last_pc_ = pc_; | 916 last_pc_ = pc_; |
917 EMIT(0xF7); | 917 EMIT(0xF7); |
918 EMIT(0xF8 | src.code()); | 918 EMIT(0xF8 | src.code()); |
919 } | 919 } |
920 | 920 |
921 | 921 |
| 922 void Assembler::imul(Register reg) { |
| 923 EnsureSpace ensure_space(this); |
| 924 last_pc_ = pc_; |
| 925 EMIT(0xF7); |
| 926 EMIT(0xE8 | reg.code()); |
| 927 } |
| 928 |
| 929 |
922 void Assembler::imul(Register dst, const Operand& src) { | 930 void Assembler::imul(Register dst, const Operand& src) { |
923 EnsureSpace ensure_space(this); | 931 EnsureSpace ensure_space(this); |
924 last_pc_ = pc_; | 932 last_pc_ = pc_; |
925 EMIT(0x0F); | 933 EMIT(0x0F); |
926 EMIT(0xAF); | 934 EMIT(0xAF); |
927 emit_operand(dst, src); | 935 emit_operand(dst, src); |
928 } | 936 } |
929 | 937 |
930 | 938 |
931 void Assembler::imul(Register dst, Register src, int32_t imm32) { | 939 void Assembler::imul(Register dst, Register src, int32_t imm32) { |
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2201 push_insn[1] = 13; // Skip over coverage insns. | 2209 push_insn[1] = 13; // Skip over coverage insns. |
2202 if (coverage_log != NULL) { | 2210 if (coverage_log != NULL) { |
2203 fprintf(coverage_log, "%s\n", file_line); | 2211 fprintf(coverage_log, "%s\n", file_line); |
2204 fflush(coverage_log); | 2212 fflush(coverage_log); |
2205 } | 2213 } |
2206 } | 2214 } |
2207 | 2215 |
2208 #endif | 2216 #endif |
2209 | 2217 |
2210 } } // namespace v8::internal | 2218 } } // namespace v8::internal |
OLD | NEW |