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

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: Test 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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 break; 1251 break;
1252 case kMipsFloat64ExtractHighWord32: 1252 case kMipsFloat64ExtractHighWord32:
1253 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); 1253 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
1254 break; 1254 break;
1255 case kMipsFloat64InsertLowWord32: 1255 case kMipsFloat64InsertLowWord32:
1256 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); 1256 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
1257 break; 1257 break;
1258 case kMipsFloat64InsertHighWord32: 1258 case kMipsFloat64InsertHighWord32:
1259 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); 1259 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1));
1260 break; 1260 break;
1261 case kMipsFloat64SilenceNaN: {
1262 FPURegister value = i.InputDoubleRegister(0);
1263 FPURegister result = i.OutputDoubleRegister();
1264 Register scratch0 = i.TempRegister(0);
1265 Label is_nan, not_nan;
1266 __ BranchF(NULL, &is_nan, eq, value, value);
1267 __ Branch(&not_nan);
1268 __ bind(&is_nan);
1269 __ LoadRoot(scratch0, Heap::kNanValueRootIndex);
1270 __ ldc1(result, FieldMemOperand(scratch0, HeapNumber::kValueOffset));
1271 __ bind(&not_nan);
1272 break;
1273 }
1274
1261 // ... more basic instructions ... 1275 // ... more basic instructions ...
1262 1276
1263 case kMipsLbu: 1277 case kMipsLbu:
1264 __ lbu(i.OutputRegister(), i.MemoryOperand()); 1278 __ lbu(i.OutputRegister(), i.MemoryOperand());
1265 break; 1279 break;
1266 case kMipsLb: 1280 case kMipsLb:
1267 __ lb(i.OutputRegister(), i.MemoryOperand()); 1281 __ lb(i.OutputRegister(), i.MemoryOperand());
1268 break; 1282 break;
1269 case kMipsSb: 1283 case kMipsSb:
1270 __ sb(i.InputRegister(2), i.MemoryOperand()); 1284 __ sb(i.InputRegister(2), i.MemoryOperand());
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 padding_size -= v8::internal::Assembler::kInstrSize; 2028 padding_size -= v8::internal::Assembler::kInstrSize;
2015 } 2029 }
2016 } 2030 }
2017 } 2031 }
2018 2032
2019 #undef __ 2033 #undef __
2020 2034
2021 } // namespace compiler 2035 } // namespace compiler
2022 } // namespace internal 2036 } // namespace internal
2023 } // namespace v8 2037 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698