OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 522 |
523 | 523 |
524 void FloatingPointHelper::ConvertIntToDouble(MacroAssembler* masm, | 524 void FloatingPointHelper::ConvertIntToDouble(MacroAssembler* masm, |
525 Register int_scratch, | 525 Register int_scratch, |
526 Destination destination, | 526 Destination destination, |
527 DwVfpRegister double_dst, | 527 DwVfpRegister double_dst, |
528 Register dst1, | 528 Register dst1, |
529 Register dst2, | 529 Register dst2, |
530 Register scratch2, | 530 Register scratch2, |
531 SwVfpRegister single_scratch) { | 531 SwVfpRegister single_scratch) { |
532 ASSERT(!smi_scratch.is(scratch2)); | 532 ASSERT(!int_scratch.is(scratch2)); |
533 | 533 |
534 Label done; | 534 Label done; |
535 | 535 |
536 if (CpuFeatures::IsSupported(VFP3)) { | 536 if (CpuFeatures::IsSupported(VFP3)) { |
537 CpuFeatures::Scope scope(VFP3); | 537 CpuFeatures::Scope scope(VFP3); |
538 __ vmov(single_scratch, int_scratch); | 538 __ vmov(single_scratch, int_scratch); |
539 __ vcvt_f64_s32(double_dst, single_scratch); | 539 __ vcvt_f64_s32(double_dst, single_scratch); |
540 if (destination == kCoreRegisters) { | 540 if (destination == kCoreRegisters) { |
541 __ vmov(dst1, dst2, double_dst); | 541 __ vmov(dst1, dst2, double_dst); |
542 } | 542 } |
(...skipping 5228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5771 __ str(pc, MemOperand(sp, 0)); | 5771 __ str(pc, MemOperand(sp, 0)); |
5772 __ Jump(target); // Call the C++ function. | 5772 __ Jump(target); // Call the C++ function. |
5773 } | 5773 } |
5774 | 5774 |
5775 | 5775 |
5776 #undef __ | 5776 #undef __ |
5777 | 5777 |
5778 } } // namespace v8::internal | 5778 } } // namespace v8::internal |
5779 | 5779 |
5780 #endif // V8_TARGET_ARCH_ARM | 5780 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |