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

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

Issue 10831409: Fix rounding in Uint8ClampedArray setter. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix manual rounding Created 8 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
« 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 1920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 void Assembler::cvttsd2si(Register dst, const Operand& src) { 1931 void Assembler::cvttsd2si(Register dst, const Operand& src) {
1932 ASSERT(CpuFeatures::IsEnabled(SSE2)); 1932 ASSERT(CpuFeatures::IsEnabled(SSE2));
1933 EnsureSpace ensure_space(this); 1933 EnsureSpace ensure_space(this);
1934 EMIT(0xF2); 1934 EMIT(0xF2);
1935 EMIT(0x0F); 1935 EMIT(0x0F);
1936 EMIT(0x2C); 1936 EMIT(0x2C);
1937 emit_operand(dst, src); 1937 emit_operand(dst, src);
1938 } 1938 }
1939 1939
1940 1940
1941 void Assembler::cvtsd2si(Register dst, XMMRegister src) {
1942 ASSERT(CpuFeatures::IsEnabled(SSE2));
1943 EnsureSpace ensure_space(this);
1944 EMIT(0xF2);
1945 EMIT(0x0F);
1946 EMIT(0x2D);
1947 emit_sse_operand(dst, src);
1948 }
1949
1950
1941 void Assembler::cvtsi2sd(XMMRegister dst, const Operand& src) { 1951 void Assembler::cvtsi2sd(XMMRegister dst, const Operand& src) {
1942 ASSERT(CpuFeatures::IsEnabled(SSE2)); 1952 ASSERT(CpuFeatures::IsEnabled(SSE2));
1943 EnsureSpace ensure_space(this); 1953 EnsureSpace ensure_space(this);
1944 EMIT(0xF2); 1954 EMIT(0xF2);
1945 EMIT(0x0F); 1955 EMIT(0x0F);
1946 EMIT(0x2A); 1956 EMIT(0x2A);
1947 emit_sse_operand(dst, src); 1957 emit_sse_operand(dst, src);
1948 } 1958 }
1949 1959
1950 1960
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 fprintf(coverage_log, "%s\n", file_line); 2636 fprintf(coverage_log, "%s\n", file_line);
2627 fflush(coverage_log); 2637 fflush(coverage_log);
2628 } 2638 }
2629 } 2639 }
2630 2640
2631 #endif 2641 #endif
2632 2642
2633 } } // namespace v8::internal 2643 } } // namespace v8::internal
2634 2644
2635 #endif // V8_TARGET_ARCH_IA32 2645 #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