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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 EMIT(0xCC); | 1303 EMIT(0xCC); |
1304 } | 1304 } |
1305 | 1305 |
1306 | 1306 |
1307 void Assembler::nop() { | 1307 void Assembler::nop() { |
1308 EnsureSpace ensure_space(this); | 1308 EnsureSpace ensure_space(this); |
1309 EMIT(0x90); | 1309 EMIT(0x90); |
1310 } | 1310 } |
1311 | 1311 |
1312 | 1312 |
1313 void Assembler::rdtsc() { | |
1314 ASSERT(IsEnabled(RDTSC)); | |
1315 EnsureSpace ensure_space(this); | |
1316 EMIT(0x0F); | |
1317 EMIT(0x31); | |
1318 } | |
1319 | |
1320 | |
1321 void Assembler::ret(int imm16) { | 1313 void Assembler::ret(int imm16) { |
1322 EnsureSpace ensure_space(this); | 1314 EnsureSpace ensure_space(this); |
1323 ASSERT(is_uint16(imm16)); | 1315 ASSERT(is_uint16(imm16)); |
1324 if (imm16 == 0) { | 1316 if (imm16 == 0) { |
1325 EMIT(0xC3); | 1317 EMIT(0xC3); |
1326 } else { | 1318 } else { |
1327 EMIT(0xC2); | 1319 EMIT(0xC2); |
1328 EMIT(imm16 & 0xFF); | 1320 EMIT(imm16 & 0xFF); |
1329 EMIT((imm16 >> 8) & 0xFF); | 1321 EMIT((imm16 >> 8) & 0xFF); |
1330 } | 1322 } |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2715 fprintf(coverage_log, "%s\n", file_line); | 2707 fprintf(coverage_log, "%s\n", file_line); |
2716 fflush(coverage_log); | 2708 fflush(coverage_log); |
2717 } | 2709 } |
2718 } | 2710 } |
2719 | 2711 |
2720 #endif | 2712 #endif |
2721 | 2713 |
2722 } } // namespace v8::internal | 2714 } } // namespace v8::internal |
2723 | 2715 |
2724 #endif // V8_TARGET_ARCH_IA32 | 2716 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |