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

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

Issue 2360243002: [arm] Clean up use of IsSupported and IsEnabled. (Closed)
Patch Set: Created 4 years, 3 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/arm/code-generator-arm.cc ('k') | src/globals.h » ('j') | 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/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 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 VisitRR(this, kArmVsqrtF32, node); 1506 VisitRR(this, kArmVsqrtF32, node);
1507 } 1507 }
1508 1508
1509 1509
1510 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1510 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1511 VisitRR(this, kArmVsqrtF64, node); 1511 VisitRR(this, kArmVsqrtF64, node);
1512 } 1512 }
1513 1513
1514 1514
1515 void InstructionSelector::VisitFloat32RoundDown(Node* node) { 1515 void InstructionSelector::VisitFloat32RoundDown(Node* node) {
1516 DCHECK(CpuFeatures::IsSupported(ARMv8));
1516 VisitRR(this, kArmVrintmF32, node); 1517 VisitRR(this, kArmVrintmF32, node);
1517 } 1518 }
1518 1519
1519 1520
1520 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 1521 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
1522 DCHECK(CpuFeatures::IsSupported(ARMv8));
1521 VisitRR(this, kArmVrintmF64, node); 1523 VisitRR(this, kArmVrintmF64, node);
1522 } 1524 }
1523 1525
1524 1526
1525 void InstructionSelector::VisitFloat32RoundUp(Node* node) { 1527 void InstructionSelector::VisitFloat32RoundUp(Node* node) {
1528 DCHECK(CpuFeatures::IsSupported(ARMv8));
1526 VisitRR(this, kArmVrintpF32, node); 1529 VisitRR(this, kArmVrintpF32, node);
1527 } 1530 }
1528 1531
1529 1532
1530 void InstructionSelector::VisitFloat64RoundUp(Node* node) { 1533 void InstructionSelector::VisitFloat64RoundUp(Node* node) {
1534 DCHECK(CpuFeatures::IsSupported(ARMv8));
1531 VisitRR(this, kArmVrintpF64, node); 1535 VisitRR(this, kArmVrintpF64, node);
1532 } 1536 }
1533 1537
1534 1538
1535 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { 1539 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) {
1540 DCHECK(CpuFeatures::IsSupported(ARMv8));
1536 VisitRR(this, kArmVrintzF32, node); 1541 VisitRR(this, kArmVrintzF32, node);
1537 } 1542 }
1538 1543
1539 1544
1540 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1545 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1546 DCHECK(CpuFeatures::IsSupported(ARMv8));
1541 VisitRR(this, kArmVrintzF64, node); 1547 VisitRR(this, kArmVrintzF64, node);
1542 } 1548 }
1543 1549
1544 1550
1545 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1551 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1552 DCHECK(CpuFeatures::IsSupported(ARMv8));
1546 VisitRR(this, kArmVrintaF64, node); 1553 VisitRR(this, kArmVrintaF64, node);
1547 } 1554 }
1548 1555
1549 1556
1550 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) { 1557 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) {
1558 DCHECK(CpuFeatures::IsSupported(ARMv8));
1551 VisitRR(this, kArmVrintnF32, node); 1559 VisitRR(this, kArmVrintnF32, node);
1552 } 1560 }
1553 1561
1554 1562
1555 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { 1563 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) {
1564 DCHECK(CpuFeatures::IsSupported(ARMv8));
1556 VisitRR(this, kArmVrintnF64, node); 1565 VisitRR(this, kArmVrintnF64, node);
1557 } 1566 }
1558 1567
1559 void InstructionSelector::VisitFloat32Neg(Node* node) { 1568 void InstructionSelector::VisitFloat32Neg(Node* node) {
1560 VisitRR(this, kArmVnegF32, node); 1569 VisitRR(this, kArmVnegF32, node);
1561 } 1570 }
1562 1571
1563 void InstructionSelector::VisitFloat64Neg(Node* node) { 1572 void InstructionSelector::VisitFloat64Neg(Node* node) {
1564 VisitRR(this, kArmVnegF64, node); 1573 VisitRR(this, kArmVnegF64, node);
1565 } 1574 }
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 Vector<MachineType> req_aligned = Vector<MachineType>::New(2); 2276 Vector<MachineType> req_aligned = Vector<MachineType>::New(2);
2268 req_aligned[0] = MachineType::Float32(); 2277 req_aligned[0] = MachineType::Float32();
2269 req_aligned[1] = MachineType::Float64(); 2278 req_aligned[1] = MachineType::Float64();
2270 return MachineOperatorBuilder::AlignmentRequirements:: 2279 return MachineOperatorBuilder::AlignmentRequirements::
2271 SomeUnalignedAccessUnsupported(req_aligned, req_aligned); 2280 SomeUnalignedAccessUnsupported(req_aligned, req_aligned);
2272 } 2281 }
2273 2282
2274 } // namespace compiler 2283 } // namespace compiler
2275 } // namespace internal 2284 } // namespace internal
2276 } // namespace v8 2285 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698