Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 509001: Bring back the fisttp instruction on machines with SSE3, but check the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 1668
1669 void Assembler::fisttp_s(const Operand& adr) { 1669 void Assembler::fisttp_s(const Operand& adr) {
1670 ASSERT(CpuFeatures::IsEnabled(SSE3)); 1670 ASSERT(CpuFeatures::IsEnabled(SSE3));
1671 EnsureSpace ensure_space(this); 1671 EnsureSpace ensure_space(this);
1672 last_pc_ = pc_; 1672 last_pc_ = pc_;
1673 EMIT(0xDB); 1673 EMIT(0xDB);
1674 emit_operand(ecx, adr); 1674 emit_operand(ecx, adr);
1675 } 1675 }
1676 1676
1677 1677
1678 void Assembler::fisttp_d(const Operand& adr) {
1679 ASSERT(CpuFeatures::IsEnabled(SSE3));
1680 EnsureSpace ensure_space(this);
1681 last_pc_ = pc_;
1682 EMIT(0xDD);
1683 emit_operand(ecx, adr);
1684 }
1685
1686
1678 void Assembler::fist_s(const Operand& adr) { 1687 void Assembler::fist_s(const Operand& adr) {
1679 EnsureSpace ensure_space(this); 1688 EnsureSpace ensure_space(this);
1680 last_pc_ = pc_; 1689 last_pc_ = pc_;
1681 EMIT(0xDB); 1690 EMIT(0xDB);
1682 emit_operand(edx, adr); 1691 emit_operand(edx, adr);
1683 } 1692 }
1684 1693
1685 1694
1686 void Assembler::fistp_d(const Operand& adr) { 1695 void Assembler::fistp_d(const Operand& adr) {
1687 EnsureSpace ensure_space(this); 1696 EnsureSpace ensure_space(this);
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 push_insn[1] = 13; // Skip over coverage insns. 2304 push_insn[1] = 13; // Skip over coverage insns.
2296 if (coverage_log != NULL) { 2305 if (coverage_log != NULL) {
2297 fprintf(coverage_log, "%s\n", file_line); 2306 fprintf(coverage_log, "%s\n", file_line);
2298 fflush(coverage_log); 2307 fflush(coverage_log);
2299 } 2308 }
2300 } 2309 }
2301 2310
2302 #endif 2311 #endif
2303 2312
2304 } } // namespace v8::internal 2313 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698