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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 break; | 953 break; |
954 } | 954 } |
955 case kMips64CvtDUw: { | 955 case kMips64CvtDUw: { |
956 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0)); | 956 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0)); |
957 break; | 957 break; |
958 } | 958 } |
959 case kMips64CvtDUl: { | 959 case kMips64CvtDUl: { |
960 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0)); | 960 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0)); |
961 break; | 961 break; |
962 } | 962 } |
| 963 case kMips64CvtSUl: { |
| 964 __ Cvt_s_ul(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 965 break; |
| 966 } |
963 case kMips64TruncWD: { | 967 case kMips64TruncWD: { |
964 FPURegister scratch = kScratchDoubleReg; | 968 FPURegister scratch = kScratchDoubleReg; |
965 // Other arches use round to zero here, so we follow. | 969 // Other arches use round to zero here, so we follow. |
966 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); | 970 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); |
967 __ mfc1(i.OutputRegister(), scratch); | 971 __ mfc1(i.OutputRegister(), scratch); |
968 break; | 972 break; |
969 } | 973 } |
970 case kMips64TruncUwD: { | 974 case kMips64TruncUwD: { |
971 FPURegister scratch = kScratchDoubleReg; | 975 FPURegister scratch = kScratchDoubleReg; |
972 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. | 976 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 padding_size -= v8::internal::Assembler::kInstrSize; | 1691 padding_size -= v8::internal::Assembler::kInstrSize; |
1688 } | 1692 } |
1689 } | 1693 } |
1690 } | 1694 } |
1691 | 1695 |
1692 #undef __ | 1696 #undef __ |
1693 | 1697 |
1694 } // namespace compiler | 1698 } // namespace compiler |
1695 } // namespace internal | 1699 } // namespace internal |
1696 } // namespace v8 | 1700 } // namespace v8 |
OLD | NEW |