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

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

Issue 2060743002: [builtins] Introduce proper Float64Log1p operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@Math_Log
Patch Set: REBASE 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
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/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 1386
1387 void InstructionSelector::VisitFloat32Abs(Node* node) { 1387 void InstructionSelector::VisitFloat32Abs(Node* node) {
1388 VisitRR(this, kArmVabsF32, node); 1388 VisitRR(this, kArmVabsF32, node);
1389 } 1389 }
1390 1390
1391 1391
1392 void InstructionSelector::VisitFloat64Abs(Node* node) { 1392 void InstructionSelector::VisitFloat64Abs(Node* node) {
1393 VisitRR(this, kArmVabsF64, node); 1393 VisitRR(this, kArmVabsF64, node);
1394 } 1394 }
1395 1395
1396 void InstructionSelector::VisitFloat64Log(Node* node) {
1397 ArmOperandGenerator g(this);
1398 Emit(kIeee754Float64Log, g.DefineAsFixed(node, d0),
1399 g.UseFixed(node->InputAt(0), d0))
1400 ->MarkAsCall();
1401 }
1402
1403 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 1396 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
1404 VisitRR(this, kArmVsqrtF32, node); 1397 VisitRR(this, kArmVsqrtF32, node);
1405 } 1398 }
1406 1399
1407 1400
1408 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1401 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1409 VisitRR(this, kArmVsqrtF64, node); 1402 VisitRR(this, kArmVsqrtF64, node);
1410 } 1403 }
1411 1404
1412 1405
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 } 1448 }
1456 1449
1457 void InstructionSelector::VisitFloat32Neg(Node* node) { 1450 void InstructionSelector::VisitFloat32Neg(Node* node) {
1458 VisitRR(this, kArmVnegF32, node); 1451 VisitRR(this, kArmVnegF32, node);
1459 } 1452 }
1460 1453
1461 void InstructionSelector::VisitFloat64Neg(Node* node) { 1454 void InstructionSelector::VisitFloat64Neg(Node* node) {
1462 VisitRR(this, kArmVnegF64, node); 1455 VisitRR(this, kArmVnegF64, node);
1463 } 1456 }
1464 1457
1458 void InstructionSelector::VisitFloat64Ieee754Unop(Node* node,
1459 InstructionCode opcode) {
1460 ArmOperandGenerator g(this);
1461 Emit(opcode, g.DefineAsFixed(node, d0), g.UseFixed(node->InputAt(0), d0))
1462 ->MarkAsCall();
1463 }
1464
1465 void InstructionSelector::EmitPrepareArguments( 1465 void InstructionSelector::EmitPrepareArguments(
1466 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, 1466 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor,
1467 Node* node) { 1467 Node* node) {
1468 ArmOperandGenerator g(this); 1468 ArmOperandGenerator g(this);
1469 1469
1470 // Prepare for C function call. 1470 // Prepare for C function call.
1471 if (descriptor->IsCFunctionCall()) { 1471 if (descriptor->IsCFunctionCall()) {
1472 Emit(kArchPrepareCallCFunction | 1472 Emit(kArchPrepareCallCFunction |
1473 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), 1473 MiscField::encode(static_cast<int>(descriptor->CParameterCount())),
1474 0, nullptr, 0, nullptr); 1474 0, nullptr, 0, nullptr);
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 // static 1998 // static
1999 MachineOperatorBuilder::AlignmentRequirements 1999 MachineOperatorBuilder::AlignmentRequirements
2000 InstructionSelector::AlignmentRequirements() { 2000 InstructionSelector::AlignmentRequirements() {
2001 return MachineOperatorBuilder::AlignmentRequirements:: 2001 return MachineOperatorBuilder::AlignmentRequirements::
2002 FullUnalignedAccessSupport(); 2002 FullUnalignedAccessSupport();
2003 } 2003 }
2004 2004
2005 } // namespace compiler 2005 } // namespace compiler
2006 } // namespace internal 2006 } // namespace internal
2007 } // namespace v8 2007 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698