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

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

Issue 998283002: [turbofan] Introduce optional Float64Min and Float64Max machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « 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/bits.h" 5 #include "src/base/bits.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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 } 993 }
994 994
995 995
996 void InstructionSelector::VisitFloat64Mod(Node* node) { 996 void InstructionSelector::VisitFloat64Mod(Node* node) {
997 ArmOperandGenerator g(this); 997 ArmOperandGenerator g(this);
998 Emit(kArmVmodF64, g.DefineAsFixed(node, d0), g.UseFixed(node->InputAt(0), d0), 998 Emit(kArmVmodF64, g.DefineAsFixed(node, d0), g.UseFixed(node->InputAt(0), d0),
999 g.UseFixed(node->InputAt(1), d1))->MarkAsCall(); 999 g.UseFixed(node->InputAt(1), d1))->MarkAsCall();
1000 } 1000 }
1001 1001
1002 1002
1003 void InstructionSelector::VisitFloat64Max(Node* node) { UNREACHABLE(); }
1004
1005
1006 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); }
1007
1008
1003 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1009 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1004 ArmOperandGenerator g(this); 1010 ArmOperandGenerator g(this);
1005 Emit(kArmVsqrtF64, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); 1011 Emit(kArmVsqrtF64, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
1006 } 1012 }
1007 1013
1008 1014
1009 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 1015 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
1010 VisitRRFloat64(this, kArmVrintmF64, node); 1016 VisitRRFloat64(this, kArmVrintmF64, node);
1011 } 1017 }
1012 1018
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1460 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1455 MachineOperatorBuilder::kFloat64RoundTruncate | 1461 MachineOperatorBuilder::kFloat64RoundTruncate |
1456 MachineOperatorBuilder::kFloat64RoundTiesAway; 1462 MachineOperatorBuilder::kFloat64RoundTiesAway;
1457 } 1463 }
1458 return flags; 1464 return flags;
1459 } 1465 }
1460 1466
1461 } // namespace compiler 1467 } // namespace compiler
1462 } // namespace internal 1468 } // namespace internal
1463 } // namespace v8 1469 } // 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