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

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

Issue 10829169: Refactor Math.min/max to be a single HInstruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback; removed VORR instruction Created 8 years, 4 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
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/disasm-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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 2037
2038 void Assembler::andpd(XMMRegister dst, XMMRegister src) { 2038 void Assembler::andpd(XMMRegister dst, XMMRegister src) {
2039 EnsureSpace ensure_space(this); 2039 EnsureSpace ensure_space(this);
2040 EMIT(0x66); 2040 EMIT(0x66);
2041 EMIT(0x0F); 2041 EMIT(0x0F);
2042 EMIT(0x54); 2042 EMIT(0x54);
2043 emit_sse_operand(dst, src); 2043 emit_sse_operand(dst, src);
2044 } 2044 }
2045 2045
2046 2046
2047 void Assembler::orpd(XMMRegister dst, XMMRegister src) {
2048 EnsureSpace ensure_space(this);
2049 EMIT(0x66);
2050 EMIT(0x0F);
2051 EMIT(0x56);
2052 emit_sse_operand(dst, src);
2053 }
2054
2055
2047 void Assembler::ucomisd(XMMRegister dst, XMMRegister src) { 2056 void Assembler::ucomisd(XMMRegister dst, XMMRegister src) {
2048 ASSERT(CpuFeatures::IsEnabled(SSE2)); 2057 ASSERT(CpuFeatures::IsEnabled(SSE2));
2049 EnsureSpace ensure_space(this); 2058 EnsureSpace ensure_space(this);
2050 EMIT(0x66); 2059 EMIT(0x66);
2051 EMIT(0x0F); 2060 EMIT(0x0F);
2052 EMIT(0x2E); 2061 EMIT(0x2E);
2053 emit_sse_operand(dst, src); 2062 emit_sse_operand(dst, src);
2054 } 2063 }
2055 2064
2056 2065
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 fprintf(coverage_log, "%s\n", file_line); 2626 fprintf(coverage_log, "%s\n", file_line);
2618 fflush(coverage_log); 2627 fflush(coverage_log);
2619 } 2628 }
2620 } 2629 }
2621 2630
2622 #endif 2631 #endif
2623 2632
2624 } } // namespace v8::internal 2633 } } // namespace v8::internal
2625 2634
2626 #endif // V8_TARGET_ARCH_IA32 2635 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698