| 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/base/adapters.h" | 5 #include "src/base/adapters.h" |
| 6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
| 7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
| 8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
| 9 #include "src/ppc/frames-ppc.h" | 9 #include "src/ppc/frames-ppc.h" |
| 10 | 10 |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 } | 910 } |
| 911 UNREACHABLE(); | 911 UNREACHABLE(); |
| 912 } | 912 } |
| 913 | 913 |
| 914 | 914 |
| 915 #if V8_TARGET_ARCH_PPC64 | 915 #if V8_TARGET_ARCH_PPC64 |
| 916 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { | 916 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { |
| 917 // TODO(mbrandy): inspect input to see if nop is appropriate. | 917 // TODO(mbrandy): inspect input to see if nop is appropriate. |
| 918 VisitRR(this, kPPC_Int64ToInt32, node); | 918 VisitRR(this, kPPC_Int64ToInt32, node); |
| 919 } | 919 } |
| 920 |
| 921 |
| 922 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
| 923 VisitRR(this, kPPC_Int64ToDouble, node); |
| 924 } |
| 920 #endif | 925 #endif |
| 921 | 926 |
| 922 | 927 |
| 923 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { | 928 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
| 924 VisitRR(this, kPPC_BitcastFloat32ToInt32, node); | 929 VisitRR(this, kPPC_BitcastFloat32ToInt32, node); |
| 925 } | 930 } |
| 926 | 931 |
| 927 | 932 |
| 928 #if V8_TARGET_ARCH_PPC64 | 933 #if V8_TARGET_ARCH_PPC64 |
| 929 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { | 934 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1576 return MachineOperatorBuilder::kFloat64RoundDown | | 1581 return MachineOperatorBuilder::kFloat64RoundDown | |
| 1577 MachineOperatorBuilder::kFloat64RoundTruncate | | 1582 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1578 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1583 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1579 MachineOperatorBuilder::kWord32Popcnt; | 1584 MachineOperatorBuilder::kWord32Popcnt; |
| 1580 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1585 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
| 1581 } | 1586 } |
| 1582 | 1587 |
| 1583 } // namespace compiler | 1588 } // namespace compiler |
| 1584 } // namespace internal | 1589 } // namespace internal |
| 1585 } // namespace v8 | 1590 } // namespace v8 |
| OLD | NEW |