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

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

Issue 2236153002: X87: [turbofan] Remove the FloatXXSubPreserveNan operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | 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/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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 } 910 }
911 911
912 912
913 void InstructionSelector::VisitFloat32Sub(Node* node) { 913 void InstructionSelector::VisitFloat32Sub(Node* node) {
914 X87OperandGenerator g(this); 914 X87OperandGenerator g(this);
915 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); 915 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0)));
916 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); 916 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1)));
917 Emit(kX87Float32Sub, g.DefineAsFixed(node, stX_0), 0, nullptr); 917 Emit(kX87Float32Sub, g.DefineAsFixed(node, stX_0), 0, nullptr);
918 } 918 }
919 919
920 void InstructionSelector::VisitFloat32SubPreserveNan(Node* node) {
921 X87OperandGenerator g(this);
922 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0)));
923 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1)));
924 Emit(kX87Float32Sub, g.DefineAsFixed(node, stX_0), 0, nullptr);
925 }
926
927 void InstructionSelector::VisitFloat64Sub(Node* node) { 920 void InstructionSelector::VisitFloat64Sub(Node* node) {
928 X87OperandGenerator g(this); 921 X87OperandGenerator g(this);
929 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); 922 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0)));
930 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(1))); 923 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(1)));
931 Emit(kX87Float64Sub, g.DefineAsFixed(node, stX_0), 0, nullptr); 924 Emit(kX87Float64Sub, g.DefineAsFixed(node, stX_0), 0, nullptr);
932 } 925 }
933 926
934 void InstructionSelector::VisitFloat64SubPreserveNan(Node* node) {
935 X87OperandGenerator g(this);
936 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0)));
937 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(1)));
938 Emit(kX87Float64Sub, g.DefineAsFixed(node, stX_0), 0, nullptr);
939 }
940
941
942 void InstructionSelector::VisitFloat32Mul(Node* node) { 927 void InstructionSelector::VisitFloat32Mul(Node* node) {
943 X87OperandGenerator g(this); 928 X87OperandGenerator g(this);
944 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); 929 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0)));
945 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); 930 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1)));
946 Emit(kX87Float32Mul, g.DefineAsFixed(node, stX_0), 0, nullptr); 931 Emit(kX87Float32Mul, g.DefineAsFixed(node, stX_0), 0, nullptr);
947 } 932 }
948 933
949 934
950 void InstructionSelector::VisitFloat64Mul(Node* node) { 935 void InstructionSelector::VisitFloat64Mul(Node* node) {
951 X87OperandGenerator g(this); 936 X87OperandGenerator g(this);
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 // static 1727 // static
1743 MachineOperatorBuilder::AlignmentRequirements 1728 MachineOperatorBuilder::AlignmentRequirements
1744 InstructionSelector::AlignmentRequirements() { 1729 InstructionSelector::AlignmentRequirements() {
1745 return MachineOperatorBuilder::AlignmentRequirements:: 1730 return MachineOperatorBuilder::AlignmentRequirements::
1746 FullUnalignedAccessSupport(); 1731 FullUnalignedAccessSupport();
1747 } 1732 }
1748 1733
1749 } // namespace compiler 1734 } // namespace compiler
1750 } // namespace internal 1735 } // namespace internal
1751 } // namespace v8 1736 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698