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

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

Issue 197037: Use fucomi instruction to compare floats and put results directly into EFLAGS... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 months 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
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 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 1807
1808 1808
1809 void Assembler::fucompp() { 1809 void Assembler::fucompp() {
1810 EnsureSpace ensure_space(this); 1810 EnsureSpace ensure_space(this);
1811 last_pc_ = pc_; 1811 last_pc_ = pc_;
1812 EMIT(0xDA); 1812 EMIT(0xDA);
1813 EMIT(0xE9); 1813 EMIT(0xE9);
1814 } 1814 }
1815 1815
1816 1816
1817 void Assembler::fucomip() {
1818 EnsureSpace ensure_space(this);
1819 last_pc_ = pc_;
1820 EMIT(0xDF);
1821 EMIT(0xE9);
1822 }
1823
1824
1817 void Assembler::fcompp() { 1825 void Assembler::fcompp() {
1818 EnsureSpace ensure_space(this); 1826 EnsureSpace ensure_space(this);
1819 last_pc_ = pc_; 1827 last_pc_ = pc_;
1820 EMIT(0xDE); 1828 EMIT(0xDE);
1821 EMIT(0xD9); 1829 EMIT(0xD9);
1822 } 1830 }
1823 1831
1824 1832
1825 void Assembler::fnstsw_ax() { 1833 void Assembler::fnstsw_ax() {
1826 EnsureSpace ensure_space(this); 1834 EnsureSpace ensure_space(this);
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 push_insn[1] = 13; // Skip over coverage insns. 2219 push_insn[1] = 13; // Skip over coverage insns.
2212 if (coverage_log != NULL) { 2220 if (coverage_log != NULL) {
2213 fprintf(coverage_log, "%s\n", file_line); 2221 fprintf(coverage_log, "%s\n", file_line);
2214 fflush(coverage_log); 2222 fflush(coverage_log);
2215 } 2223 }
2216 } 2224 }
2217 2225
2218 #endif 2226 #endif
2219 2227
2220 } } // namespace v8::internal 2228 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698