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

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

Issue 2252863003: [turbofan] Add Float32(Max|Min) machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Type is number now. Created 4 years, 4 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/x64/instruction-scheduler-x64.cc ('k') | src/utils.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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1381
1382 void InstructionSelector::VisitFloat32Abs(Node* node) { 1382 void InstructionSelector::VisitFloat32Abs(Node* node) {
1383 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat32Abs, kSSEFloat32Abs); 1383 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat32Abs, kSSEFloat32Abs);
1384 } 1384 }
1385 1385
1386 1386
1387 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 1387 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
1388 VisitRO(this, node, kSSEFloat32Sqrt); 1388 VisitRO(this, node, kSSEFloat32Sqrt);
1389 } 1389 }
1390 1390
1391 void InstructionSelector::VisitFloat32Max(Node* node) {
1392 VisitRRO(this, node, kSSEFloat32Max);
1393 }
1394
1395 void InstructionSelector::VisitFloat32Min(Node* node) {
1396 VisitRRO(this, node, kSSEFloat32Min);
1397 }
1391 1398
1392 void InstructionSelector::VisitFloat64Add(Node* node) { 1399 void InstructionSelector::VisitFloat64Add(Node* node) {
1393 VisitFloatBinop(this, node, kAVXFloat64Add, kSSEFloat64Add); 1400 VisitFloatBinop(this, node, kAVXFloat64Add, kSSEFloat64Add);
1394 } 1401 }
1395 1402
1396 1403
1397 void InstructionSelector::VisitFloat64Sub(Node* node) { 1404 void InstructionSelector::VisitFloat64Sub(Node* node) {
1398 VisitFloatBinop(this, node, kAVXFloat64Sub, kSSEFloat64Sub); 1405 VisitFloatBinop(this, node, kAVXFloat64Sub, kSSEFloat64Sub);
1399 } 1406 }
1400 1407
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2232 // static 2239 // static
2233 MachineOperatorBuilder::AlignmentRequirements 2240 MachineOperatorBuilder::AlignmentRequirements
2234 InstructionSelector::AlignmentRequirements() { 2241 InstructionSelector::AlignmentRequirements() {
2235 return MachineOperatorBuilder::AlignmentRequirements:: 2242 return MachineOperatorBuilder::AlignmentRequirements::
2236 FullUnalignedAccessSupport(); 2243 FullUnalignedAccessSupport();
2237 } 2244 }
2238 2245
2239 } // namespace compiler 2246 } // namespace compiler
2240 } // namespace internal 2247 } // namespace internal
2241 } // namespace v8 2248 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-scheduler-x64.cc ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698