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

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

Issue 2171303002: MIPS: Fix '[turbofan] Prevent storing signalling NaNs into holey double arrays.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add mac cross-build conditions. 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
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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 break; 1325 break;
1326 case kMipsFloat64ExtractHighWord32: 1326 case kMipsFloat64ExtractHighWord32:
1327 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); 1327 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
1328 break; 1328 break;
1329 case kMipsFloat64InsertLowWord32: 1329 case kMipsFloat64InsertLowWord32:
1330 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); 1330 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
1331 break; 1331 break;
1332 case kMipsFloat64InsertHighWord32: 1332 case kMipsFloat64InsertHighWord32:
1333 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); 1333 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1));
1334 break; 1334 break;
1335 case kMipsFloat64SilenceNaN: { 1335 case kMipsFloat64SilenceNaN:
1336 FPURegister value = i.InputDoubleRegister(0); 1336 __ FPUCanonicalizeNaN(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
1337 FPURegister result = i.OutputDoubleRegister();
1338 Register scratch0 = i.TempRegister(0);
1339 Label is_nan, not_nan;
1340 __ BranchF(NULL, &is_nan, eq, value, value);
1341 __ Branch(&not_nan);
1342 __ bind(&is_nan);
1343 __ LoadRoot(scratch0, Heap::kNanValueRootIndex);
1344 __ ldc1(result, FieldMemOperand(scratch0, HeapNumber::kValueOffset));
1345 __ bind(&not_nan);
1346 break; 1337 break;
1347 }
1348 1338
1349 // ... more basic instructions ... 1339 // ... more basic instructions ...
1350 1340
1351 case kMipsLbu: 1341 case kMipsLbu:
1352 __ lbu(i.OutputRegister(), i.MemoryOperand()); 1342 __ lbu(i.OutputRegister(), i.MemoryOperand());
1353 break; 1343 break;
1354 case kMipsLb: 1344 case kMipsLb:
1355 __ lb(i.OutputRegister(), i.MemoryOperand()); 1345 __ lb(i.OutputRegister(), i.MemoryOperand());
1356 break; 1346 break;
1357 case kMipsSb: 1347 case kMipsSb:
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 padding_size -= v8::internal::Assembler::kInstrSize; 2156 padding_size -= v8::internal::Assembler::kInstrSize;
2167 } 2157 }
2168 } 2158 }
2169 } 2159 }
2170 2160
2171 #undef __ 2161 #undef __
2172 2162
2173 } // namespace compiler 2163 } // namespace compiler
2174 } // namespace internal 2164 } // namespace internal
2175 } // namespace v8 2165 } // namespace v8
OLDNEW
« gypfiles/toolchain.gypi ('K') | « gypfiles/toolchain.gypi ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698