Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2002)

Side by Side Diff: src/compiler/ppc/instruction-selector-ppc.cc

Issue 2036273002: PPC: [builtins] Migrate Math.log to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/ppc/instruction-scheduler-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
1313 1318
1314 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 1319 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
1315 VisitRR(this, kPPC_SqrtDouble | MiscField::encode(1), node); 1320 VisitRR(this, kPPC_SqrtDouble | MiscField::encode(1), node);
1316 } 1321 }
1317 1322
1318 1323
1319 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1324 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1320 VisitRR(this, kPPC_SqrtDouble, node); 1325 VisitRR(this, kPPC_SqrtDouble, node);
1321 } 1326 }
1322 1327
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 // static 2002 // static
1998 MachineOperatorBuilder::AlignmentRequirements 2003 MachineOperatorBuilder::AlignmentRequirements
1999 InstructionSelector::AlignmentRequirements() { 2004 InstructionSelector::AlignmentRequirements() {
2000 return MachineOperatorBuilder::AlignmentRequirements:: 2005 return MachineOperatorBuilder::AlignmentRequirements::
2001 FullUnalignedAccessSupport(); 2006 FullUnalignedAccessSupport();
2002 } 2007 }
2003 2008
2004 } // namespace compiler 2009 } // namespace compiler
2005 } // namespace internal 2010 } // namespace internal
2006 } // namespace v8 2011 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-scheduler-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698