| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |