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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat32Abs, kSSEFloat32Abs); | 1008 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat32Abs, kSSEFloat32Abs); |
1009 } | 1009 } |
1010 | 1010 |
1011 | 1011 |
1012 void InstructionSelector::VisitFloat64Abs(Node* node) { | 1012 void InstructionSelector::VisitFloat64Abs(Node* node) { |
1013 IA32OperandGenerator g(this); | 1013 IA32OperandGenerator g(this); |
1014 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat64Abs, kSSEFloat64Abs); | 1014 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat64Abs, kSSEFloat64Abs); |
1015 } | 1015 } |
1016 | 1016 |
1017 void InstructionSelector::VisitFloat64Log(Node* node) { | 1017 void InstructionSelector::VisitFloat64Log(Node* node) { |
1018 VisitRR(this, node, kX87Float64Log); | 1018 IA32OperandGenerator g(this); |
| 1019 Emit(kIeee754Float64Log, g.DefineSameAsFirst(node), |
| 1020 g.UseRegister(node->InputAt(0))) |
| 1021 ->MarkAsCall(); |
1019 } | 1022 } |
1020 | 1023 |
1021 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1024 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
1022 VisitRO(this, node, kSSEFloat32Sqrt); | 1025 VisitRO(this, node, kSSEFloat32Sqrt); |
1023 } | 1026 } |
1024 | 1027 |
1025 | 1028 |
1026 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1029 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
1027 VisitRO(this, node, kSSEFloat64Sqrt); | 1030 VisitRO(this, node, kSSEFloat64Sqrt); |
1028 } | 1031 } |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1665 // static | 1668 // static |
1666 MachineOperatorBuilder::AlignmentRequirements | 1669 MachineOperatorBuilder::AlignmentRequirements |
1667 InstructionSelector::AlignmentRequirements() { | 1670 InstructionSelector::AlignmentRequirements() { |
1668 return MachineOperatorBuilder::AlignmentRequirements:: | 1671 return MachineOperatorBuilder::AlignmentRequirements:: |
1669 FullUnalignedAccessSupport(); | 1672 FullUnalignedAccessSupport(); |
1670 } | 1673 } |
1671 | 1674 |
1672 } // namespace compiler | 1675 } // namespace compiler |
1673 } // namespace internal | 1676 } // namespace internal |
1674 } // namespace v8 | 1677 } // namespace v8 |
OLD | NEW |