| 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/base/bits.h" | 6 #include "src/base/bits.h" |
| 7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
| 8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
| 9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
| 10 | 10 |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 821 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
| 822 VisitRR(this, kMips64TruncUwD, node); | 822 VisitRR(this, kMips64TruncUwD, node); |
| 823 } | 823 } |
| 824 | 824 |
| 825 | 825 |
| 826 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) { | 826 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) { |
| 827 VisitRR(this, kMips64TruncLS, node); | 827 VisitRR(this, kMips64TruncLS, node); |
| 828 } | 828 } |
| 829 | 829 |
| 830 | 830 |
| 831 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { | 831 void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) { |
| 832 if (NodeProperties::FindProjection(node, 1)) { |
| 833 // TODO(mips): implement the second return value. |
| 834 UNIMPLEMENTED(); |
| 835 } |
| 832 VisitRR(this, kMips64TruncLD, node); | 836 VisitRR(this, kMips64TruncLD, node); |
| 833 } | 837 } |
| 834 | 838 |
| 835 | 839 |
| 836 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { | 840 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { |
| 837 VisitRR(this, kMips64TruncUlS, node); | 841 VisitRR(this, kMips64TruncUlS, node); |
| 838 } | 842 } |
| 839 | 843 |
| 840 | 844 |
| 841 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { | 845 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 MachineOperatorBuilder::kFloat32RoundUp | | 1718 MachineOperatorBuilder::kFloat32RoundUp | |
| 1715 MachineOperatorBuilder::kFloat64RoundTruncate | | 1719 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1716 MachineOperatorBuilder::kFloat32RoundTruncate | | 1720 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1717 MachineOperatorBuilder::kFloat64RoundTiesEven | | 1721 MachineOperatorBuilder::kFloat64RoundTiesEven | |
| 1718 MachineOperatorBuilder::kFloat32RoundTiesEven; | 1722 MachineOperatorBuilder::kFloat32RoundTiesEven; |
| 1719 } | 1723 } |
| 1720 | 1724 |
| 1721 } // namespace compiler | 1725 } // namespace compiler |
| 1722 } // namespace internal | 1726 } // namespace internal |
| 1723 } // namespace v8 | 1727 } // namespace v8 |
| OLD | NEW |