Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 2060233002: [turbofan] Prevent storing signalling NaNs into holey double arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix spelling, rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698