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 #include "src/ppc/frames-ppc.h" | 9 #include "src/ppc/frames-ppc.h" |
10 | 10 |
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 | 1319 |
1320 | 1320 |
1321 void InstructionSelector::VisitFloat64Mod(Node* node) { | 1321 void InstructionSelector::VisitFloat64Mod(Node* node) { |
1322 PPCOperandGenerator g(this); | 1322 PPCOperandGenerator g(this); |
1323 Emit(kPPC_ModDouble, g.DefineAsFixed(node, d1), | 1323 Emit(kPPC_ModDouble, g.DefineAsFixed(node, d1), |
1324 g.UseFixed(node->InputAt(0), d1), | 1324 g.UseFixed(node->InputAt(0), d1), |
1325 g.UseFixed(node->InputAt(1), d2))->MarkAsCall(); | 1325 g.UseFixed(node->InputAt(1), d2))->MarkAsCall(); |
1326 } | 1326 } |
1327 | 1327 |
1328 | 1328 |
1329 void InstructionSelector::VisitFloat32Max(Node* node) { UNREACHABLE(); } | 1329 void InstructionSelector::VisitFloat64Max(Node* node) { |
| 1330 VisitRRR(this, kPPC_MaxDouble, node); |
| 1331 } |
1330 | 1332 |
1331 | 1333 |
1332 void InstructionSelector::VisitFloat64Max(Node* node) { UNREACHABLE(); } | |
1333 | |
1334 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) { | 1334 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) { |
1335 VisitRR(this, kPPC_Float64SilenceNaN, node); | 1335 VisitRR(this, kPPC_Float64SilenceNaN, node); |
1336 } | 1336 } |
1337 | 1337 |
1338 | 1338 |
1339 void InstructionSelector::VisitFloat32Min(Node* node) { UNREACHABLE(); } | 1339 void InstructionSelector::VisitFloat64Min(Node* node) { |
1340 | 1340 VisitRRR(this, kPPC_MinDouble, node); |
1341 | 1341 } |
1342 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); } | |
1343 | 1342 |
1344 | 1343 |
1345 void InstructionSelector::VisitFloat32Abs(Node* node) { | 1344 void InstructionSelector::VisitFloat32Abs(Node* node) { |
1346 VisitRR(this, kPPC_AbsDouble | MiscField::encode(1), node); | 1345 VisitRR(this, kPPC_AbsDouble | MiscField::encode(1), node); |
1347 } | 1346 } |
1348 | 1347 |
1349 | 1348 |
1350 void InstructionSelector::VisitFloat64Abs(Node* node) { | 1349 void InstructionSelector::VisitFloat64Abs(Node* node) { |
1351 VisitRR(this, kPPC_AbsDouble, node); | 1350 VisitRR(this, kPPC_AbsDouble, node); |
1352 } | 1351 } |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 // static | 2062 // static |
2064 MachineOperatorBuilder::AlignmentRequirements | 2063 MachineOperatorBuilder::AlignmentRequirements |
2065 InstructionSelector::AlignmentRequirements() { | 2064 InstructionSelector::AlignmentRequirements() { |
2066 return MachineOperatorBuilder::AlignmentRequirements:: | 2065 return MachineOperatorBuilder::AlignmentRequirements:: |
2067 FullUnalignedAccessSupport(); | 2066 FullUnalignedAccessSupport(); |
2068 } | 2067 } |
2069 | 2068 |
2070 } // namespace compiler | 2069 } // namespace compiler |
2071 } // namespace internal | 2070 } // namespace internal |
2072 } // namespace v8 | 2071 } // namespace v8 |
OLD | NEW |