| 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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 __ cvt_s_l(i.OutputDoubleRegister(), scratch); | 946 __ cvt_s_l(i.OutputDoubleRegister(), scratch); |
| 947 break; | 947 break; |
| 948 } | 948 } |
| 949 case kMips64CvtDL: { | 949 case kMips64CvtDL: { |
| 950 FPURegister scratch = kScratchDoubleReg; | 950 FPURegister scratch = kScratchDoubleReg; |
| 951 __ dmtc1(i.InputRegister(0), scratch); | 951 __ dmtc1(i.InputRegister(0), scratch); |
| 952 __ cvt_d_l(i.OutputDoubleRegister(), scratch); | 952 __ cvt_d_l(i.OutputDoubleRegister(), scratch); |
| 953 break; | 953 break; |
| 954 } | 954 } |
| 955 case kMips64CvtDUw: { | 955 case kMips64CvtDUw: { |
| 956 FPURegister scratch = kScratchDoubleReg; | 956 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 957 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); | |
| 958 break; | 957 break; |
| 959 } | 958 } |
| 960 case kMips64CvtDUl: { | 959 case kMips64CvtDUl: { |
| 961 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0)); | 960 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 962 break; | 961 break; |
| 963 } | 962 } |
| 964 case kMips64TruncWD: { | 963 case kMips64TruncWD: { |
| 965 FPURegister scratch = kScratchDoubleReg; | 964 FPURegister scratch = kScratchDoubleReg; |
| 966 // Other arches use round to zero here, so we follow. | 965 // Other arches use round to zero here, so we follow. |
| 967 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); | 966 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 padding_size -= v8::internal::Assembler::kInstrSize; | 1687 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1689 } | 1688 } |
| 1690 } | 1689 } |
| 1691 } | 1690 } |
| 1692 | 1691 |
| 1693 #undef __ | 1692 #undef __ |
| 1694 | 1693 |
| 1695 } // namespace compiler | 1694 } // namespace compiler |
| 1696 } // namespace internal | 1695 } // namespace internal |
| 1697 } // namespace v8 | 1696 } // namespace v8 |
| OLD | NEW |