| 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 4958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4969 sfpd_lo, sfpd_hi, | 4969 sfpd_lo, sfpd_hi, |
| 4970 scratch0(), s0); | 4970 scratch0(), s0); |
| 4971 } | 4971 } |
| 4972 } else { | 4972 } else { |
| 4973 if (CpuFeatures::IsSupported(VFP2)) { | 4973 if (CpuFeatures::IsSupported(VFP2)) { |
| 4974 CpuFeatureScope scope(masm(), VFP2); | 4974 CpuFeatureScope scope(masm(), VFP2); |
| 4975 __ vmov(flt_scratch, src); | 4975 __ vmov(flt_scratch, src); |
| 4976 __ vcvt_f64_u32(dbl_scratch, flt_scratch); | 4976 __ vcvt_f64_u32(dbl_scratch, flt_scratch); |
| 4977 } else { | 4977 } else { |
| 4978 Label no_leading_zero, done; | 4978 Label no_leading_zero, done; |
| 4979 __ mov(sfpd_hi, src); |
| 4979 __ tst(src, Operand(0x80000000)); | 4980 __ tst(src, Operand(0x80000000)); |
| 4980 __ b(ne, &no_leading_zero); | 4981 __ b(ne, &no_leading_zero); |
| 4981 | 4982 |
| 4982 // Integer has one leading zeros. | 4983 // Integer has one leading zeros. |
| 4983 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, r9, 1); | 4984 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, r9, 1); |
| 4984 __ b(&done); | 4985 __ b(&done); |
| 4985 | 4986 |
| 4986 __ bind(&no_leading_zero); | 4987 __ bind(&no_leading_zero); |
| 4987 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, r9, 0); | 4988 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, r9, 0); |
| 4988 __ b(&done); | 4989 __ bind(&done); |
| 4989 } | 4990 } |
| 4990 } | 4991 } |
| 4991 | 4992 |
| 4992 if (FLAG_inline_new) { | 4993 if (FLAG_inline_new) { |
| 4993 __ LoadRoot(scratch0(), Heap::kHeapNumberMapRootIndex); | 4994 __ LoadRoot(scratch0(), Heap::kHeapNumberMapRootIndex); |
| 4994 __ AllocateHeapNumber(r5, r3, r4, scratch0(), &slow, DONT_TAG_RESULT); | 4995 __ AllocateHeapNumber(r5, r3, r4, scratch0(), &slow, DONT_TAG_RESULT); |
| 4995 __ Move(dst, r5); | 4996 __ Move(dst, r5); |
| 4996 __ b(&done); | 4997 __ b(&done); |
| 4997 } | 4998 } |
| 4998 | 4999 |
| (...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6397 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 6398 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 6398 __ ldr(result, FieldMemOperand(scratch, | 6399 __ ldr(result, FieldMemOperand(scratch, |
| 6399 FixedArray::kHeaderSize - kPointerSize)); | 6400 FixedArray::kHeaderSize - kPointerSize)); |
| 6400 __ bind(&done); | 6401 __ bind(&done); |
| 6401 } | 6402 } |
| 6402 | 6403 |
| 6403 | 6404 |
| 6404 #undef __ | 6405 #undef __ |
| 6405 | 6406 |
| 6406 } } // namespace v8::internal | 6407 } } // namespace v8::internal |
| OLD | NEW |