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

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

Issue 1843983002: [wasm] Fixed float-to-int conversion tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { 861 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
862 VisitRO(this, node, kSSEFloat64ToInt32); 862 VisitRO(this, node, kSSEFloat64ToInt32);
863 } 863 }
864 864
865 865
866 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 866 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
867 VisitRO(this, node, kSSEFloat64ToUint32); 867 VisitRO(this, node, kSSEFloat64ToUint32);
868 } 868 }
869 869
870 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) {
871 VisitRO(this, node, kSSEFloat64ToUint32);
872 }
870 873
871 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { 874 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
872 VisitRO(this, node, kSSEFloat64ToFloat32); 875 VisitRO(this, node, kSSEFloat64ToFloat32);
873 } 876 }
874 877
875 878
876 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { 879 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) {
877 switch (TruncationModeOf(node->op())) { 880 switch (TruncationModeOf(node->op())) {
878 case TruncationMode::kJavaScript: 881 case TruncationMode::kJavaScript:
879 return VisitRR(this, node, kArchTruncateDoubleToI); 882 return VisitRR(this, node, kArchTruncateDoubleToI);
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 MachineOperatorBuilder::kFloat64RoundTruncate | 1563 MachineOperatorBuilder::kFloat64RoundTruncate |
1561 MachineOperatorBuilder::kFloat32RoundTiesEven | 1564 MachineOperatorBuilder::kFloat32RoundTiesEven |
1562 MachineOperatorBuilder::kFloat64RoundTiesEven; 1565 MachineOperatorBuilder::kFloat64RoundTiesEven;
1563 } 1566 }
1564 return flags; 1567 return flags;
1565 } 1568 }
1566 1569
1567 } // namespace compiler 1570 } // namespace compiler
1568 } // namespace internal 1571 } // namespace internal
1569 } // namespace v8 1572 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698