OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |