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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.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
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/opcodes.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 "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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 } 918 }
919 } 919 }
920 VisitRR(this, kMips64TruncWD, node); 920 VisitRR(this, kMips64TruncWD, node);
921 } 921 }
922 922
923 923
924 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 924 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
925 VisitRR(this, kMips64TruncUwD, node); 925 VisitRR(this, kMips64TruncUwD, node);
926 } 926 }
927 927
928 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) {
929 VisitRR(this, kMips64TruncUwD, node);
930 }
928 931
929 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) { 932 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) {
930 Mips64OperandGenerator g(this); 933 Mips64OperandGenerator g(this);
931 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; 934 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))};
932 InstructionOperand outputs[2]; 935 InstructionOperand outputs[2];
933 size_t output_count = 0; 936 size_t output_count = 0;
934 outputs[output_count++] = g.DefineAsRegister(node); 937 outputs[output_count++] = g.DefineAsRegister(node);
935 938
936 Node* success_output = NodeProperties::FindProjection(node, 1); 939 Node* success_output = NodeProperties::FindProjection(node, 1);
937 if (success_output) { 940 if (success_output) {
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 MachineOperatorBuilder::kFloat32RoundUp | 1937 MachineOperatorBuilder::kFloat32RoundUp |
1935 MachineOperatorBuilder::kFloat64RoundTruncate | 1938 MachineOperatorBuilder::kFloat64RoundTruncate |
1936 MachineOperatorBuilder::kFloat32RoundTruncate | 1939 MachineOperatorBuilder::kFloat32RoundTruncate |
1937 MachineOperatorBuilder::kFloat64RoundTiesEven | 1940 MachineOperatorBuilder::kFloat64RoundTiesEven |
1938 MachineOperatorBuilder::kFloat32RoundTiesEven; 1941 MachineOperatorBuilder::kFloat32RoundTiesEven;
1939 } 1942 }
1940 1943
1941 } // namespace compiler 1944 } // namespace compiler
1942 } // namespace internal 1945 } // namespace internal
1943 } // namespace v8 1946 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698