| 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/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 | 1680 |
| 1681 void InstructionSelector::VisitFloat32Abs(Node* node) { | 1681 void InstructionSelector::VisitFloat32Abs(Node* node) { |
| 1682 VisitRR(this, kArm64Float32Abs, node); | 1682 VisitRR(this, kArm64Float32Abs, node); |
| 1683 } | 1683 } |
| 1684 | 1684 |
| 1685 | 1685 |
| 1686 void InstructionSelector::VisitFloat64Abs(Node* node) { | 1686 void InstructionSelector::VisitFloat64Abs(Node* node) { |
| 1687 VisitRR(this, kArm64Float64Abs, node); | 1687 VisitRR(this, kArm64Float64Abs, node); |
| 1688 } | 1688 } |
| 1689 | 1689 |
| 1690 void InstructionSelector::VisitFloat64Log(Node* node) { | |
| 1691 Arm64OperandGenerator g(this); | |
| 1692 Emit(kIeee754Float64Log, g.DefineAsFixed(node, d0), | |
| 1693 g.UseFixed(node->InputAt(0), d0)) | |
| 1694 ->MarkAsCall(); | |
| 1695 } | |
| 1696 | |
| 1697 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1690 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
| 1698 VisitRR(this, kArm64Float32Sqrt, node); | 1691 VisitRR(this, kArm64Float32Sqrt, node); |
| 1699 } | 1692 } |
| 1700 | 1693 |
| 1701 | 1694 |
| 1702 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1695 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| 1703 VisitRR(this, kArm64Float64Sqrt, node); | 1696 VisitRR(this, kArm64Float64Sqrt, node); |
| 1704 } | 1697 } |
| 1705 | 1698 |
| 1706 | 1699 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1749 } | 1742 } |
| 1750 | 1743 |
| 1751 void InstructionSelector::VisitFloat32Neg(Node* node) { | 1744 void InstructionSelector::VisitFloat32Neg(Node* node) { |
| 1752 VisitRR(this, kArm64Float32Neg, node); | 1745 VisitRR(this, kArm64Float32Neg, node); |
| 1753 } | 1746 } |
| 1754 | 1747 |
| 1755 void InstructionSelector::VisitFloat64Neg(Node* node) { | 1748 void InstructionSelector::VisitFloat64Neg(Node* node) { |
| 1756 VisitRR(this, kArm64Float64Neg, node); | 1749 VisitRR(this, kArm64Float64Neg, node); |
| 1757 } | 1750 } |
| 1758 | 1751 |
| 1752 void InstructionSelector::VisitFloat64Ieee754Unop(Node* node, |
| 1753 InstructionCode opcode) { |
| 1754 Arm64OperandGenerator g(this); |
| 1755 Emit(opcode, g.DefineAsFixed(node, d0), g.UseFixed(node->InputAt(0), d0)) |
| 1756 ->MarkAsCall(); |
| 1757 } |
| 1758 |
| 1759 void InstructionSelector::EmitPrepareArguments( | 1759 void InstructionSelector::EmitPrepareArguments( |
| 1760 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 1760 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
| 1761 Node* node) { | 1761 Node* node) { |
| 1762 Arm64OperandGenerator g(this); | 1762 Arm64OperandGenerator g(this); |
| 1763 | 1763 |
| 1764 bool from_native_stack = linkage()->GetIncomingDescriptor()->UseNativeStack(); | 1764 bool from_native_stack = linkage()->GetIncomingDescriptor()->UseNativeStack(); |
| 1765 bool to_native_stack = descriptor->UseNativeStack(); | 1765 bool to_native_stack = descriptor->UseNativeStack(); |
| 1766 | 1766 |
| 1767 bool always_claim = to_native_stack != from_native_stack; | 1767 bool always_claim = to_native_stack != from_native_stack; |
| 1768 | 1768 |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2477 // static | 2477 // static |
| 2478 MachineOperatorBuilder::AlignmentRequirements | 2478 MachineOperatorBuilder::AlignmentRequirements |
| 2479 InstructionSelector::AlignmentRequirements() { | 2479 InstructionSelector::AlignmentRequirements() { |
| 2480 return MachineOperatorBuilder::AlignmentRequirements:: | 2480 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2481 FullUnalignedAccessSupport(); | 2481 FullUnalignedAccessSupport(); |
| 2482 } | 2482 } |
| 2483 | 2483 |
| 2484 } // namespace compiler | 2484 } // namespace compiler |
| 2485 } // namespace internal | 2485 } // namespace internal |
| 2486 } // namespace v8 | 2486 } // namespace v8 |
| OLD | NEW |