| 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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 1126 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
| 1127 VisitRR(this, kPPC_TruncateDouble, node); | 1127 VisitRR(this, kPPC_TruncateDouble, node); |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 | 1130 |
| 1131 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 1131 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
| 1132 VisitRR(this, kPPC_RoundDouble, node); | 1132 VisitRR(this, kPPC_RoundDouble, node); |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 | 1135 |
| 1136 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
| 1137 UNREACHABLE(); |
| 1138 } |
| 1139 |
| 1140 |
| 1136 void InstructionSelector::VisitInt32AddWithOverflow(Node* node) { | 1141 void InstructionSelector::VisitInt32AddWithOverflow(Node* node) { |
| 1137 if (Node* ovf = NodeProperties::FindProjection(node, 1)) { | 1142 if (Node* ovf = NodeProperties::FindProjection(node, 1)) { |
| 1138 FlagsContinuation cont(kOverflow, ovf); | 1143 FlagsContinuation cont(kOverflow, ovf); |
| 1139 return VisitBinop<Int32BinopMatcher>(this, node, kPPC_AddWithOverflow32, | 1144 return VisitBinop<Int32BinopMatcher>(this, node, kPPC_AddWithOverflow32, |
| 1140 kInt16Imm, &cont); | 1145 kInt16Imm, &cont); |
| 1141 } | 1146 } |
| 1142 FlagsContinuation cont; | 1147 FlagsContinuation cont; |
| 1143 VisitBinop<Int32BinopMatcher>(this, node, kPPC_AddWithOverflow32, kInt16Imm, | 1148 VisitBinop<Int32BinopMatcher>(this, node, kPPC_AddWithOverflow32, kInt16Imm, |
| 1144 &cont); | 1149 &cont); |
| 1145 } | 1150 } |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1642 MachineOperatorBuilder::kFloat64RoundTruncate | | 1647 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1643 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1648 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1644 MachineOperatorBuilder::kWord32Popcnt | | 1649 MachineOperatorBuilder::kWord32Popcnt | |
| 1645 MachineOperatorBuilder::kWord64Popcnt; | 1650 MachineOperatorBuilder::kWord64Popcnt; |
| 1646 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1651 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
| 1647 } | 1652 } |
| 1648 | 1653 |
| 1649 } // namespace compiler | 1654 } // namespace compiler |
| 1650 } // namespace internal | 1655 } // namespace internal |
| 1651 } // namespace v8 | 1656 } // namespace v8 |
| OLD | NEW |