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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 __ mtc1(i.InputRegister(0), scratch); | 1208 __ mtc1(i.InputRegister(0), scratch); |
1209 __ cvt_d_w(i.OutputDoubleRegister(), scratch); | 1209 __ cvt_d_w(i.OutputDoubleRegister(), scratch); |
1210 break; | 1210 break; |
1211 } | 1211 } |
1212 case kMips64CvtSW: { | 1212 case kMips64CvtSW: { |
1213 FPURegister scratch = kScratchDoubleReg; | 1213 FPURegister scratch = kScratchDoubleReg; |
1214 __ mtc1(i.InputRegister(0), scratch); | 1214 __ mtc1(i.InputRegister(0), scratch); |
1215 __ cvt_s_w(i.OutputDoubleRegister(), scratch); | 1215 __ cvt_s_w(i.OutputDoubleRegister(), scratch); |
1216 break; | 1216 break; |
1217 } | 1217 } |
| 1218 case kMips64CvtSUw: { |
| 1219 __ Cvt_s_uw(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 1220 break; |
| 1221 } |
1218 case kMips64CvtSL: { | 1222 case kMips64CvtSL: { |
1219 FPURegister scratch = kScratchDoubleReg; | 1223 FPURegister scratch = kScratchDoubleReg; |
1220 __ dmtc1(i.InputRegister(0), scratch); | 1224 __ dmtc1(i.InputRegister(0), scratch); |
1221 __ cvt_s_l(i.OutputDoubleRegister(), scratch); | 1225 __ cvt_s_l(i.OutputDoubleRegister(), scratch); |
1222 break; | 1226 break; |
1223 } | 1227 } |
1224 case kMips64CvtDL: { | 1228 case kMips64CvtDL: { |
1225 FPURegister scratch = kScratchDoubleReg; | 1229 FPURegister scratch = kScratchDoubleReg; |
1226 __ dmtc1(i.InputRegister(0), scratch); | 1230 __ dmtc1(i.InputRegister(0), scratch); |
1227 __ cvt_d_l(i.OutputDoubleRegister(), scratch); | 1231 __ cvt_d_l(i.OutputDoubleRegister(), scratch); |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2123 padding_size -= v8::internal::Assembler::kInstrSize; | 2127 padding_size -= v8::internal::Assembler::kInstrSize; |
2124 } | 2128 } |
2125 } | 2129 } |
2126 } | 2130 } |
2127 | 2131 |
2128 #undef __ | 2132 #undef __ |
2129 | 2133 |
2130 } // namespace compiler | 2134 } // namespace compiler |
2131 } // namespace internal | 2135 } // namespace internal |
2132 } // namespace v8 | 2136 } // namespace v8 |
OLD | NEW |