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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 i.InputDoubleRegister(1)); | 1267 i.InputDoubleRegister(1)); |
1268 __ sel_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1), | 1268 __ sel_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1), |
1269 i.InputDoubleRegister(0)); | 1269 i.InputDoubleRegister(0)); |
1270 } else { | 1270 } else { |
1271 __ c_d(OLT, i.InputDoubleRegister(1), i.InputDoubleRegister(0)); | 1271 __ c_d(OLT, i.InputDoubleRegister(1), i.InputDoubleRegister(0)); |
1272 // Right operand is result, passthrough if false. | 1272 // Right operand is result, passthrough if false. |
1273 __ movt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1)); | 1273 __ movt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1)); |
1274 } | 1274 } |
1275 break; | 1275 break; |
1276 } | 1276 } |
| 1277 case kMips64Float64SilenceNaN: |
| 1278 __ FPUCanonicalizeNaN(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 1279 break; |
1277 case kMips64Float32Max: { | 1280 case kMips64Float32Max: { |
1278 // (b < a) ? a : b | 1281 // (b < a) ? a : b |
1279 if (kArchVariant == kMips64r6) { | 1282 if (kArchVariant == kMips64r6) { |
1280 __ cmp_s(OLT, i.OutputDoubleRegister(), i.InputDoubleRegister(1), | 1283 __ cmp_s(OLT, i.OutputDoubleRegister(), i.InputDoubleRegister(1), |
1281 i.InputDoubleRegister(0)); | 1284 i.InputDoubleRegister(0)); |
1282 __ sel_s(i.OutputDoubleRegister(), i.InputDoubleRegister(1), | 1285 __ sel_s(i.OutputDoubleRegister(), i.InputDoubleRegister(1), |
1283 i.InputDoubleRegister(0)); | 1286 i.InputDoubleRegister(0)); |
1284 } else { | 1287 } else { |
1285 __ c_s(OLT, i.InputDoubleRegister(0), i.InputDoubleRegister(1)); | 1288 __ c_s(OLT, i.InputDoubleRegister(0), i.InputDoubleRegister(1)); |
1286 // Left operand is result, passthrough if false. | 1289 // Left operand is result, passthrough if false. |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2272 padding_size -= v8::internal::Assembler::kInstrSize; | 2275 padding_size -= v8::internal::Assembler::kInstrSize; |
2273 } | 2276 } |
2274 } | 2277 } |
2275 } | 2278 } |
2276 | 2279 |
2277 #undef __ | 2280 #undef __ |
2278 | 2281 |
2279 } // namespace compiler | 2282 } // namespace compiler |
2280 } // namespace internal | 2283 } // namespace internal |
2281 } // namespace v8 | 2284 } // namespace v8 |
OLD | NEW |