| 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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); } | 1184 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); } |
| 1185 | 1185 |
| 1186 void InstructionSelector::VisitFloat32Abs(Node* node) { | 1186 void InstructionSelector::VisitFloat32Abs(Node* node) { |
| 1187 VisitRR(this, kS390_AbsFloat, node); | 1187 VisitRR(this, kS390_AbsFloat, node); |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 void InstructionSelector::VisitFloat64Abs(Node* node) { | 1190 void InstructionSelector::VisitFloat64Abs(Node* node) { |
| 1191 VisitRR(this, kS390_AbsDouble, node); | 1191 VisitRR(this, kS390_AbsDouble, node); |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 void InstructionSelector::VisitFloat64Log(Node* node) { | |
| 1195 S390OperandGenerator g(this); | |
| 1196 Emit(kS390_LogDouble, g.DefineAsFixed(node, d1), | |
| 1197 g.UseFixed(node->InputAt(0), d1)) | |
| 1198 ->MarkAsCall(); | |
| 1199 } | |
| 1200 | |
| 1201 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1194 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
| 1202 VisitRR(this, kS390_SqrtFloat, node); | 1195 VisitRR(this, kS390_SqrtFloat, node); |
| 1203 } | 1196 } |
| 1204 | 1197 |
| 1198 void InstructionSelector::VisitFloat64Ieee754Unop(Node* node, |
| 1199 InstructionCode opcode) { |
| 1200 S390OperandGenerator g(this); |
| 1201 Emit(opcode, g.DefineAsFixed(node, d0), g.UseFixed(node->InputAt(0), d0)) |
| 1202 ->MarkAsCall(); |
| 1203 } |
| 1204 |
| 1205 void InstructionSelector::VisitFloat64Ieee754Binop(Node* node, |
| 1206 InstructionCode opcode) { |
| 1207 S390OperandGenerator g(this); |
| 1208 Emit(opcode, g.DefineAsFixed(node, d0), g.UseFixed(node->InputAt(0), d0), |
| 1209 g.UseFixed(node->InputAt(1), d2)) |
| 1210 ->MarkAsCall(); |
| 1211 } |
| 1212 |
| 1205 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1213 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| 1206 VisitRR(this, kS390_SqrtDouble, node); | 1214 VisitRR(this, kS390_SqrtDouble, node); |
| 1207 } | 1215 } |
| 1208 | 1216 |
| 1209 void InstructionSelector::VisitFloat32RoundDown(Node* node) { | 1217 void InstructionSelector::VisitFloat32RoundDown(Node* node) { |
| 1210 VisitRR(this, kS390_FloorFloat, node); | 1218 VisitRR(this, kS390_FloorFloat, node); |
| 1211 } | 1219 } |
| 1212 | 1220 |
| 1213 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 1221 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
| 1214 VisitRR(this, kS390_FloorDouble, node); | 1222 VisitRR(this, kS390_FloorDouble, node); |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1836 // static | 1844 // static |
| 1837 MachineOperatorBuilder::AlignmentRequirements | 1845 MachineOperatorBuilder::AlignmentRequirements |
| 1838 InstructionSelector::AlignmentRequirements() { | 1846 InstructionSelector::AlignmentRequirements() { |
| 1839 return MachineOperatorBuilder::AlignmentRequirements:: | 1847 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1840 FullUnalignedAccessSupport(); | 1848 FullUnalignedAccessSupport(); |
| 1841 } | 1849 } |
| 1842 | 1850 |
| 1843 } // namespace compiler | 1851 } // namespace compiler |
| 1844 } // namespace internal | 1852 } // namespace internal |
| 1845 } // namespace v8 | 1853 } // namespace v8 |
| OLD | NEW |