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

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

Issue 1444583002: [turbofan] Added the optional Float64RoundUp operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed the implementation of VisitFloat32RoundUp on mips32 Created 5 years, 1 month 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 | « no previous file | src/compiler/arm64/instruction-selector-arm64.cc » ('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 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1113 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1114 VisitRR(this, kArmVsqrtF64, node); 1114 VisitRR(this, kArmVsqrtF64, node);
1115 } 1115 }
1116 1116
1117 1117
1118 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 1118 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
1119 VisitRR(this, kArmVrintmF64, node); 1119 VisitRR(this, kArmVrintmF64, node);
1120 } 1120 }
1121 1121
1122 1122
1123 void InstructionSelector::VisitFloat64RoundUp(Node* node) {
1124 VisitRR(this, kArmVrintpF64, node);
1125 }
1126
1127
1123 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1128 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1124 VisitRR(this, kArmVrintzF64, node); 1129 VisitRR(this, kArmVrintzF64, node);
1125 } 1130 }
1126 1131
1127 1132
1128 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1133 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1129 VisitRR(this, kArmVrintaF64, node); 1134 VisitRR(this, kArmVrintaF64, node);
1130 } 1135 }
1131 1136
1132 1137
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 1554
1550 1555
1551 // static 1556 // static
1552 MachineOperatorBuilder::Flags 1557 MachineOperatorBuilder::Flags
1553 InstructionSelector::SupportedMachineOperatorFlags() { 1558 InstructionSelector::SupportedMachineOperatorFlags() {
1554 MachineOperatorBuilder::Flags flags = 1559 MachineOperatorBuilder::Flags flags =
1555 MachineOperatorBuilder::kInt32DivIsSafe | 1560 MachineOperatorBuilder::kInt32DivIsSafe |
1556 MachineOperatorBuilder::kUint32DivIsSafe; 1561 MachineOperatorBuilder::kUint32DivIsSafe;
1557 if (CpuFeatures::IsSupported(ARMv8)) { 1562 if (CpuFeatures::IsSupported(ARMv8)) {
1558 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1563 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1564 MachineOperatorBuilder::kFloat64RoundUp |
1559 MachineOperatorBuilder::kFloat64RoundTruncate | 1565 MachineOperatorBuilder::kFloat64RoundTruncate |
1560 MachineOperatorBuilder::kFloat64RoundTiesAway; 1566 MachineOperatorBuilder::kFloat64RoundTiesAway;
1561 } 1567 }
1562 return flags; 1568 return flags;
1563 } 1569 }
1564 1570
1565 } // namespace compiler 1571 } // namespace compiler
1566 } // namespace internal 1572 } // namespace internal
1567 } // namespace v8 1573 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698