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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 i.InputDoubleRegister(1)); | 1285 i.InputDoubleRegister(1)); |
1286 __ sel_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1), | 1286 __ sel_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1), |
1287 i.InputDoubleRegister(0)); | 1287 i.InputDoubleRegister(0)); |
1288 } else { | 1288 } else { |
1289 __ c_d(OLT, i.InputDoubleRegister(1), i.InputDoubleRegister(0)); | 1289 __ c_d(OLT, i.InputDoubleRegister(1), i.InputDoubleRegister(0)); |
1290 // Right operand is result, passthrough if false. | 1290 // Right operand is result, passthrough if false. |
1291 __ movt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1)); | 1291 __ movt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1)); |
1292 } | 1292 } |
1293 break; | 1293 break; |
1294 } | 1294 } |
| 1295 case kMips64Float64SilenceNaN: |
| 1296 __ FPUCanonicalizeNaN(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 1297 break; |
1295 case kMips64Float32Max: { | 1298 case kMips64Float32Max: { |
1296 // (b < a) ? a : b | 1299 // (b < a) ? a : b |
1297 if (kArchVariant == kMips64r6) { | 1300 if (kArchVariant == kMips64r6) { |
1298 __ cmp_s(OLT, i.OutputDoubleRegister(), i.InputDoubleRegister(1), | 1301 __ cmp_s(OLT, i.OutputDoubleRegister(), i.InputDoubleRegister(1), |
1299 i.InputDoubleRegister(0)); | 1302 i.InputDoubleRegister(0)); |
1300 __ sel_s(i.OutputDoubleRegister(), i.InputDoubleRegister(1), | 1303 __ sel_s(i.OutputDoubleRegister(), i.InputDoubleRegister(1), |
1301 i.InputDoubleRegister(0)); | 1304 i.InputDoubleRegister(0)); |
1302 } else { | 1305 } else { |
1303 __ c_s(OLT, i.InputDoubleRegister(0), i.InputDoubleRegister(1)); | 1306 __ c_s(OLT, i.InputDoubleRegister(0), i.InputDoubleRegister(1)); |
1304 // Left operand is result, passthrough if false. | 1307 // Left operand is result, passthrough if false. |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2290 padding_size -= v8::internal::Assembler::kInstrSize; | 2293 padding_size -= v8::internal::Assembler::kInstrSize; |
2291 } | 2294 } |
2292 } | 2295 } |
2293 } | 2296 } |
2294 | 2297 |
2295 #undef __ | 2298 #undef __ |
2296 | 2299 |
2297 } // namespace compiler | 2300 } // namespace compiler |
2298 } // namespace internal | 2301 } // namespace internal |
2299 } // namespace v8 | 2302 } // namespace v8 |
OLD | NEW |