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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 __ mtc1(i.InputRegister(0), scratch); | 1021 __ mtc1(i.InputRegister(0), scratch); |
1022 __ cvt_d_w(i.OutputDoubleRegister(), scratch); | 1022 __ cvt_d_w(i.OutputDoubleRegister(), scratch); |
1023 break; | 1023 break; |
1024 } | 1024 } |
1025 case kMipsCvtSW: { | 1025 case kMipsCvtSW: { |
1026 FPURegister scratch = kScratchDoubleReg; | 1026 FPURegister scratch = kScratchDoubleReg; |
1027 __ mtc1(i.InputRegister(0), scratch); | 1027 __ mtc1(i.InputRegister(0), scratch); |
1028 __ cvt_s_w(i.OutputDoubleRegister(), scratch); | 1028 __ cvt_s_w(i.OutputDoubleRegister(), scratch); |
1029 break; | 1029 break; |
1030 } | 1030 } |
| 1031 case kMipsCvtSUw: { |
| 1032 FPURegister scratch = kScratchDoubleReg; |
| 1033 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); |
| 1034 __ cvt_s_d(i.OutputDoubleRegister(), i.OutputDoubleRegister()); |
| 1035 break; |
| 1036 } |
1031 case kMipsCvtDUw: { | 1037 case kMipsCvtDUw: { |
1032 FPURegister scratch = kScratchDoubleReg; | 1038 FPURegister scratch = kScratchDoubleReg; |
1033 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); | 1039 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); |
1034 break; | 1040 break; |
1035 } | 1041 } |
1036 case kMipsFloorWD: { | 1042 case kMipsFloorWD: { |
1037 FPURegister scratch = kScratchDoubleReg; | 1043 FPURegister scratch = kScratchDoubleReg; |
1038 __ floor_w_d(scratch, i.InputDoubleRegister(0)); | 1044 __ floor_w_d(scratch, i.InputDoubleRegister(0)); |
1039 __ mfc1(i.OutputRegister(), scratch); | 1045 __ mfc1(i.OutputRegister(), scratch); |
1040 break; | 1046 break; |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1817 padding_size -= v8::internal::Assembler::kInstrSize; | 1823 padding_size -= v8::internal::Assembler::kInstrSize; |
1818 } | 1824 } |
1819 } | 1825 } |
1820 } | 1826 } |
1821 | 1827 |
1822 #undef __ | 1828 #undef __ |
1823 | 1829 |
1824 } // namespace compiler | 1830 } // namespace compiler |
1825 } // namespace internal | 1831 } // namespace internal |
1826 } // namespace v8 | 1832 } // namespace v8 |
OLD | NEW |