OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/s390/frames-s390.h" | 9 #include "src/s390/frames-s390.h" |
10 | 10 |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1626 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { | 1626 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { |
1627 S390OperandGenerator g(this); | 1627 S390OperandGenerator g(this); |
1628 Node* value = node->InputAt(0); | 1628 Node* value = node->InputAt(0); |
1629 if (ZeroExtendsWord32ToWord64(value)) { | 1629 if (ZeroExtendsWord32ToWord64(value)) { |
1630 // These 32-bit operations implicitly zero-extend to 64-bit on x64, so the | 1630 // These 32-bit operations implicitly zero-extend to 64-bit on x64, so the |
1631 // zero-extension is a no-op. | 1631 // zero-extension is a no-op. |
1632 return EmitIdentity(node); | 1632 return EmitIdentity(node); |
1633 } | 1633 } |
1634 VisitRR(this, kS390_Uint32ToUint64, node); | 1634 VisitRR(this, kS390_Uint32ToUint64, node); |
1635 } | 1635 } |
| 1636 |
| 1637 void InstructionSelector::VisitChangeFloat64ToUint64(Node* node) { |
| 1638 VisitRR(this, kS390_DoubleToUint64, node); |
| 1639 } |
1636 #endif | 1640 #endif |
1637 | 1641 |
1638 void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) { | 1642 void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) { |
1639 VisitRR(this, kS390_BitcastInt32ToFloat32, node); | 1643 VisitRR(this, kS390_BitcastInt32ToFloat32, node); |
1640 } | 1644 } |
1641 | 1645 |
1642 void InstructionSelector::VisitFloat32Add(Node* node) { | 1646 void InstructionSelector::VisitFloat32Add(Node* node) { |
1643 return VisitFloat32BinOp(this, node, kS390_AddFloat, OperandMode::kAllowRM); | 1647 return VisitFloat32BinOp(this, node, kS390_AddFloat, OperandMode::kAllowRM); |
1644 } | 1648 } |
1645 | 1649 |
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2570 // static | 2574 // static |
2571 MachineOperatorBuilder::AlignmentRequirements | 2575 MachineOperatorBuilder::AlignmentRequirements |
2572 InstructionSelector::AlignmentRequirements() { | 2576 InstructionSelector::AlignmentRequirements() { |
2573 return MachineOperatorBuilder::AlignmentRequirements:: | 2577 return MachineOperatorBuilder::AlignmentRequirements:: |
2574 FullUnalignedAccessSupport(); | 2578 FullUnalignedAccessSupport(); |
2575 } | 2579 } |
2576 | 2580 |
2577 } // namespace compiler | 2581 } // namespace compiler |
2578 } // namespace internal | 2582 } // namespace internal |
2579 } // namespace v8 | 2583 } // namespace v8 |
OLD | NEW |