| 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 4876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4887 CpuFeatureScope feature_scope(masm(), SSE2); | 4887 CpuFeatureScope feature_scope(masm(), SSE2); |
| 4888 __ cvtsi2sd(xmm0, Operand(reg)); | 4888 __ cvtsi2sd(xmm0, Operand(reg)); |
| 4889 } else { | 4889 } else { |
| 4890 __ push(reg); | 4890 __ push(reg); |
| 4891 __ fild_s(Operand(esp, 0)); | 4891 __ fild_s(Operand(esp, 0)); |
| 4892 __ pop(reg); | 4892 __ pop(reg); |
| 4893 } | 4893 } |
| 4894 } else { | 4894 } else { |
| 4895 if (CpuFeatures::IsSupported(SSE2)) { | 4895 if (CpuFeatures::IsSupported(SSE2)) { |
| 4896 CpuFeatureScope feature_scope(masm(), SSE2); | 4896 CpuFeatureScope feature_scope(masm(), SSE2); |
| 4897 __ LoadUint32(xmm0, reg, xmm1); | 4897 __ LoadUint32(xmm0, reg, |
| 4898 ToDoubleRegister(LNumberTagU::cast(instr)->temp())); |
| 4898 } else { | 4899 } else { |
| 4899 // There's no fild variant for unsigned values, so zero-extend to a 64-bit | 4900 // There's no fild variant for unsigned values, so zero-extend to a 64-bit |
| 4900 // int manually. | 4901 // int manually. |
| 4901 __ push(Immediate(0)); | 4902 __ push(Immediate(0)); |
| 4902 __ push(reg); | 4903 __ push(reg); |
| 4903 __ fild_d(Operand(esp, 0)); | 4904 __ fild_d(Operand(esp, 0)); |
| 4904 __ pop(reg); | 4905 __ pop(reg); |
| 4905 __ pop(reg); | 4906 __ pop(reg); |
| 4906 } | 4907 } |
| 4907 } | 4908 } |
| (...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6641 FixedArray::kHeaderSize - kPointerSize)); | 6642 FixedArray::kHeaderSize - kPointerSize)); |
| 6642 __ bind(&done); | 6643 __ bind(&done); |
| 6643 } | 6644 } |
| 6644 | 6645 |
| 6645 | 6646 |
| 6646 #undef __ | 6647 #undef __ |
| 6647 | 6648 |
| 6648 } } // namespace v8::internal | 6649 } } // namespace v8::internal |
| 6649 | 6650 |
| 6650 #endif // V8_TARGET_ARCH_IA32 | 6651 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |