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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 19863007: Merged r15334 into 3.19 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
Patch Set: Created 7 years, 5 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 | « no previous file | src/ia32/lithium-ia32.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4893 matching lines...) Expand 10 before | Expand all | Expand 10 after
4904 CpuFeatureScope feature_scope(masm(), SSE2); 4904 CpuFeatureScope feature_scope(masm(), SSE2);
4905 __ cvtsi2sd(xmm0, Operand(reg)); 4905 __ cvtsi2sd(xmm0, Operand(reg));
4906 } else { 4906 } else {
4907 __ push(reg); 4907 __ push(reg);
4908 __ fild_s(Operand(esp, 0)); 4908 __ fild_s(Operand(esp, 0));
4909 __ pop(reg); 4909 __ pop(reg);
4910 } 4910 }
4911 } else { 4911 } else {
4912 if (CpuFeatures::IsSupported(SSE2)) { 4912 if (CpuFeatures::IsSupported(SSE2)) {
4913 CpuFeatureScope feature_scope(masm(), SSE2); 4913 CpuFeatureScope feature_scope(masm(), SSE2);
4914 __ LoadUint32(xmm0, reg, xmm1); 4914 __ LoadUint32(xmm0, reg,
4915 ToDoubleRegister(LNumberTagU::cast(instr)->temp()));
4915 } else { 4916 } else {
4916 // There's no fild variant for unsigned values, so zero-extend to a 64-bit 4917 // There's no fild variant for unsigned values, so zero-extend to a 64-bit
4917 // int manually. 4918 // int manually.
4918 __ push(Immediate(0)); 4919 __ push(Immediate(0));
4919 __ push(reg); 4920 __ push(reg);
4920 __ fild_d(Operand(esp, 0)); 4921 __ fild_d(Operand(esp, 0));
4921 __ pop(reg); 4922 __ pop(reg);
4922 __ pop(reg); 4923 __ pop(reg);
4923 } 4924 }
4924 } 4925 }
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
6504 FixedArray::kHeaderSize - kPointerSize)); 6505 FixedArray::kHeaderSize - kPointerSize));
6505 __ bind(&done); 6506 __ bind(&done);
6506 } 6507 }
6507 6508
6508 6509
6509 #undef __ 6510 #undef __
6510 6511
6511 } } // namespace v8::internal 6512 } } // namespace v8::internal
6512 6513
6513 #endif // V8_TARGET_ARCH_IA32 6514 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698