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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 | 1303 |
1304 void InstructionSelector::VisitFloat32Abs(Node* node) { | 1304 void InstructionSelector::VisitFloat32Abs(Node* node) { |
1305 VisitRR(this, kPPC_AbsDouble | MiscField::encode(1), node); | 1305 VisitRR(this, kPPC_AbsDouble | MiscField::encode(1), node); |
1306 } | 1306 } |
1307 | 1307 |
1308 | 1308 |
1309 void InstructionSelector::VisitFloat64Abs(Node* node) { | 1309 void InstructionSelector::VisitFloat64Abs(Node* node) { |
1310 VisitRR(this, kPPC_AbsDouble, node); | 1310 VisitRR(this, kPPC_AbsDouble, node); |
1311 } | 1311 } |
1312 | 1312 |
1313 void InstructionSelector::VisitFloat64Log(Node* node) { | |
1314 PPCOperandGenerator g(this); | |
1315 Emit(kPPC_LogDouble, g.DefineAsFixed(node, d1), | |
1316 g.UseFixed(node->InputAt(0), d1))->MarkAsCall(); | |
1317 } | |
1318 | |
1319 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1313 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
1320 VisitRR(this, kPPC_SqrtDouble | MiscField::encode(1), node); | 1314 VisitRR(this, kPPC_SqrtDouble | MiscField::encode(1), node); |
1321 } | 1315 } |
1322 | 1316 |
| 1317 void InstructionSelector::VisitFloat64Ieee754Unop(Node* node, |
| 1318 InstructionCode opcode) { |
| 1319 PPCOperandGenerator g(this); |
| 1320 Emit(opcode, g.DefineAsFixed(node, d1), g.UseFixed(node->InputAt(0), d1)) |
| 1321 ->MarkAsCall(); |
| 1322 } |
| 1323 |
| 1324 void InstructionSelector::VisitFloat64Ieee754Binop(Node* node, |
| 1325 InstructionCode opcode) { |
| 1326 PPCOperandGenerator g(this); |
| 1327 Emit(opcode, g.DefineAsFixed(node, d1), |
| 1328 g.UseFixed(node->InputAt(0), d1), |
| 1329 g.UseFixed(node->InputAt(1), d2))->MarkAsCall(); |
| 1330 } |
1323 | 1331 |
1324 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1332 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
1325 VisitRR(this, kPPC_SqrtDouble, node); | 1333 VisitRR(this, kPPC_SqrtDouble, node); |
1326 } | 1334 } |
1327 | 1335 |
1328 | 1336 |
1329 void InstructionSelector::VisitFloat32RoundDown(Node* node) { | 1337 void InstructionSelector::VisitFloat32RoundDown(Node* node) { |
1330 VisitRR(this, kPPC_FloorDouble | MiscField::encode(1), node); | 1338 VisitRR(this, kPPC_FloorDouble | MiscField::encode(1), node); |
1331 } | 1339 } |
1332 | 1340 |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 // static | 2010 // static |
2003 MachineOperatorBuilder::AlignmentRequirements | 2011 MachineOperatorBuilder::AlignmentRequirements |
2004 InstructionSelector::AlignmentRequirements() { | 2012 InstructionSelector::AlignmentRequirements() { |
2005 return MachineOperatorBuilder::AlignmentRequirements:: | 2013 return MachineOperatorBuilder::AlignmentRequirements:: |
2006 FullUnalignedAccessSupport(); | 2014 FullUnalignedAccessSupport(); |
2007 } | 2015 } |
2008 | 2016 |
2009 } // namespace compiler | 2017 } // namespace compiler |
2010 } // namespace internal | 2018 } // namespace internal |
2011 } // namespace v8 | 2019 } // namespace v8 |
OLD | NEW |