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

Side by Side Diff: src/compiler/mips/code-generator-mips.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
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips/instruction-codes-mips.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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 break; 1269 break;
1270 case kMipsFloat64ExtractHighWord32: 1270 case kMipsFloat64ExtractHighWord32:
1271 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); 1271 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
1272 break; 1272 break;
1273 case kMipsFloat64InsertLowWord32: 1273 case kMipsFloat64InsertLowWord32:
1274 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); 1274 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
1275 break; 1275 break;
1276 case kMipsFloat64InsertHighWord32: 1276 case kMipsFloat64InsertHighWord32:
1277 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); 1277 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1));
1278 break; 1278 break;
1279 case kMipsFloat64SilenceNaN: {
1280 FPURegister value = i.InputDoubleRegister(0);
1281 FPURegister result = i.OutputDoubleRegister();
1282 Register scratch0 = i.TempRegister(0);
1283 Label is_nan, not_nan;
1284 __ BranchF(NULL, &is_nan, eq, value, value);
1285 __ Branch(&not_nan);
1286 __ bind(&is_nan);
1287 __ LoadRoot(scratch0, Heap::kNanValueRootIndex);
1288 __ ldc1(result, FieldMemOperand(scratch0, HeapNumber::kValueOffset));
1289 __ bind(&not_nan);
1290 break;
1291 }
1292
1279 // ... more basic instructions ... 1293 // ... more basic instructions ...
1280 1294
1281 case kMipsLbu: 1295 case kMipsLbu:
1282 __ lbu(i.OutputRegister(), i.MemoryOperand()); 1296 __ lbu(i.OutputRegister(), i.MemoryOperand());
1283 break; 1297 break;
1284 case kMipsLb: 1298 case kMipsLb:
1285 __ lb(i.OutputRegister(), i.MemoryOperand()); 1299 __ lb(i.OutputRegister(), i.MemoryOperand());
1286 break; 1300 break;
1287 case kMipsSb: 1301 case kMipsSb:
1288 __ sb(i.InputRegister(2), i.MemoryOperand()); 1302 __ sb(i.InputRegister(2), i.MemoryOperand());
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 padding_size -= v8::internal::Assembler::kInstrSize; 2046 padding_size -= v8::internal::Assembler::kInstrSize;
2033 } 2047 }
2034 } 2048 }
2035 } 2049 }
2036 2050
2037 #undef __ 2051 #undef __
2038 2052
2039 } // namespace compiler 2053 } // namespace compiler
2040 } // namespace internal 2054 } // namespace internal
2041 } // namespace v8 2055 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698