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

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

Issue 2069883002: PPC: [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, 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 | « no previous file | src/compiler/ppc/instruction-codes-ppc.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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 #if V8_TARGET_ARCH_PPC64 1344 #if V8_TARGET_ARCH_PPC64
1345 case kPPC_Tst64: 1345 case kPPC_Tst64:
1346 if (HasRegisterInput(instr, 1)) { 1346 if (HasRegisterInput(instr, 1)) {
1347 __ and_(r0, i.InputRegister(0), i.InputRegister(1), i.OutputRCBit()); 1347 __ and_(r0, i.InputRegister(0), i.InputRegister(1), i.OutputRCBit());
1348 } else { 1348 } else {
1349 __ andi(r0, i.InputRegister(0), i.InputImmediate(1)); 1349 __ andi(r0, i.InputRegister(0), i.InputImmediate(1));
1350 } 1350 }
1351 DCHECK_EQ(SetRC, i.OutputRCBit()); 1351 DCHECK_EQ(SetRC, i.OutputRCBit());
1352 break; 1352 break;
1353 #endif 1353 #endif
1354 case kPPC_Float64SilenceNaN: {
1355 DoubleRegister value = i.InputDoubleRegister(0);
1356 DoubleRegister result = i.OutputDoubleRegister();
1357 __ CanonicalizeNaN(result, value);
1358 break;
1359 }
1354 case kPPC_Push: 1360 case kPPC_Push:
1355 if (instr->InputAt(0)->IsFPRegister()) { 1361 if (instr->InputAt(0)->IsFPRegister()) {
1356 __ stfdu(i.InputDoubleRegister(0), MemOperand(sp, -kDoubleSize)); 1362 __ stfdu(i.InputDoubleRegister(0), MemOperand(sp, -kDoubleSize));
1357 frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize); 1363 frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize);
1358 } else { 1364 } else {
1359 __ Push(i.InputRegister(0)); 1365 __ Push(i.InputRegister(0));
1360 frame_access_state()->IncreaseSPDelta(1); 1366 frame_access_state()->IncreaseSPDelta(1);
1361 } 1367 }
1362 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1368 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1363 break; 1369 break;
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
2184 padding_size -= v8::internal::Assembler::kInstrSize; 2190 padding_size -= v8::internal::Assembler::kInstrSize;
2185 } 2191 }
2186 } 2192 }
2187 } 2193 }
2188 2194
2189 #undef __ 2195 #undef __
2190 2196
2191 } // namespace compiler 2197 } // namespace compiler
2192 } // namespace internal 2198 } // namespace internal
2193 } // namespace v8 2199 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ppc/instruction-codes-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698