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

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

Issue 2188433002: Fix 'Fix [turbofan] Prevent storing signalling NaNs into holey double arrays.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « gypfiles/toolchain.gypi ('k') | src/globals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 break; 1328 break;
1329 case kMipsFloat64ExtractHighWord32: 1329 case kMipsFloat64ExtractHighWord32:
1330 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); 1330 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
1331 break; 1331 break;
1332 case kMipsFloat64InsertLowWord32: 1332 case kMipsFloat64InsertLowWord32:
1333 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); 1333 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
1334 break; 1334 break;
1335 case kMipsFloat64InsertHighWord32: 1335 case kMipsFloat64InsertHighWord32:
1336 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); 1336 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1));
1337 break; 1337 break;
1338 case kMipsFloat64SilenceNaN: { 1338 case kMipsFloat64SilenceNaN:
1339 FPURegister value = i.InputDoubleRegister(0); 1339 __ FPUCanonicalizeNaN(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
1340 FPURegister result = i.OutputDoubleRegister();
1341 Register scratch0 = i.TempRegister(0);
1342 Label is_nan, not_nan;
1343 __ BranchF(NULL, &is_nan, eq, value, value);
1344 __ Branch(&not_nan);
1345 __ bind(&is_nan);
1346 __ LoadRoot(scratch0, Heap::kNanValueRootIndex);
1347 __ ldc1(result, FieldMemOperand(scratch0, HeapNumber::kValueOffset));
1348 __ bind(&not_nan);
1349 break; 1340 break;
1350 }
1351 1341
1352 // ... more basic instructions ... 1342 // ... more basic instructions ...
1353 1343
1354 case kMipsLbu: 1344 case kMipsLbu:
1355 __ lbu(i.OutputRegister(), i.MemoryOperand()); 1345 __ lbu(i.OutputRegister(), i.MemoryOperand());
1356 break; 1346 break;
1357 case kMipsLb: 1347 case kMipsLb:
1358 __ lb(i.OutputRegister(), i.MemoryOperand()); 1348 __ lb(i.OutputRegister(), i.MemoryOperand());
1359 break; 1349 break;
1360 case kMipsSb: 1350 case kMipsSb:
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 padding_size -= v8::internal::Assembler::kInstrSize; 2190 padding_size -= v8::internal::Assembler::kInstrSize;
2201 } 2191 }
2202 } 2192 }
2203 } 2193 }
2204 2194
2205 #undef __ 2195 #undef __
2206 2196
2207 } // namespace compiler 2197 } // namespace compiler
2208 } // namespace internal 2198 } // namespace internal
2209 } // namespace v8 2199 } // namespace v8
OLDNEW
« no previous file with comments | « gypfiles/toolchain.gypi ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698