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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 break; | 850 break; |
851 case kMips64CvtDS: | 851 case kMips64CvtDS: |
852 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); | 852 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); |
853 break; | 853 break; |
854 case kMips64CvtDW: { | 854 case kMips64CvtDW: { |
855 FPURegister scratch = kScratchDoubleReg; | 855 FPURegister scratch = kScratchDoubleReg; |
856 __ mtc1(i.InputRegister(0), scratch); | 856 __ mtc1(i.InputRegister(0), scratch); |
857 __ cvt_d_w(i.OutputDoubleRegister(), scratch); | 857 __ cvt_d_w(i.OutputDoubleRegister(), scratch); |
858 break; | 858 break; |
859 } | 859 } |
| 860 case kMips64CvtSL: { |
| 861 FPURegister scratch = kScratchDoubleReg; |
| 862 __ dmtc1(i.InputRegister(0), scratch); |
| 863 __ cvt_s_l(i.OutputDoubleRegister(), scratch); |
| 864 break; |
| 865 } |
860 case kMips64CvtDL: { | 866 case kMips64CvtDL: { |
861 FPURegister scratch = kScratchDoubleReg; | 867 FPURegister scratch = kScratchDoubleReg; |
862 __ dmtc1(i.InputRegister(0), scratch); | 868 __ dmtc1(i.InputRegister(0), scratch); |
863 __ cvt_d_l(i.OutputDoubleRegister(), scratch); | 869 __ cvt_d_l(i.OutputDoubleRegister(), scratch); |
864 break; | 870 break; |
865 } | 871 } |
866 case kMips64CvtDUw: { | 872 case kMips64CvtDUw: { |
867 FPURegister scratch = kScratchDoubleReg; | 873 FPURegister scratch = kScratchDoubleReg; |
868 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); | 874 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); |
869 break; | 875 break; |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 padding_size -= v8::internal::Assembler::kInstrSize; | 1613 padding_size -= v8::internal::Assembler::kInstrSize; |
1608 } | 1614 } |
1609 } | 1615 } |
1610 } | 1616 } |
1611 | 1617 |
1612 #undef __ | 1618 #undef __ |
1613 | 1619 |
1614 } // namespace compiler | 1620 } // namespace compiler |
1615 } // namespace internal | 1621 } // namespace internal |
1616 } // namespace v8 | 1622 } // namespace v8 |
OLD | NEW |