OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/osr.h" | 9 #include "src/compiler/osr.h" |
10 #include "src/mips/macro-assembler-mips.h" | 10 #include "src/mips/macro-assembler-mips.h" |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 break; | 791 break; |
792 case kMips64CvtDS: | 792 case kMips64CvtDS: |
793 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); | 793 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); |
794 break; | 794 break; |
795 case kMips64CvtDW: { | 795 case kMips64CvtDW: { |
796 FPURegister scratch = kScratchDoubleReg; | 796 FPURegister scratch = kScratchDoubleReg; |
797 __ mtc1(i.InputRegister(0), scratch); | 797 __ mtc1(i.InputRegister(0), scratch); |
798 __ cvt_d_w(i.OutputDoubleRegister(), scratch); | 798 __ cvt_d_w(i.OutputDoubleRegister(), scratch); |
799 break; | 799 break; |
800 } | 800 } |
| 801 case kMips64CvtDL: { |
| 802 FPURegister scratch = kScratchDoubleReg; |
| 803 __ dmtc1(i.InputRegister(0), scratch); |
| 804 __ cvt_d_l(i.OutputDoubleRegister(), scratch); |
| 805 break; |
| 806 } |
801 case kMips64CvtDUw: { | 807 case kMips64CvtDUw: { |
802 FPURegister scratch = kScratchDoubleReg; | 808 FPURegister scratch = kScratchDoubleReg; |
803 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); | 809 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); |
804 break; | 810 break; |
805 } | 811 } |
806 case kMips64TruncWD: { | 812 case kMips64TruncWD: { |
807 FPURegister scratch = kScratchDoubleReg; | 813 FPURegister scratch = kScratchDoubleReg; |
808 // Other arches use round to zero here, so we follow. | 814 // Other arches use round to zero here, so we follow. |
809 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); | 815 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); |
810 __ mfc1(i.OutputRegister(), scratch); | 816 __ mfc1(i.OutputRegister(), scratch); |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 padding_size -= v8::internal::Assembler::kInstrSize; | 1548 padding_size -= v8::internal::Assembler::kInstrSize; |
1543 } | 1549 } |
1544 } | 1550 } |
1545 } | 1551 } |
1546 | 1552 |
1547 #undef __ | 1553 #undef __ |
1548 | 1554 |
1549 } // namespace compiler | 1555 } // namespace compiler |
1550 } // namespace internal | 1556 } // namespace internal |
1551 } // namespace v8 | 1557 } // namespace v8 |
OLD | NEW |