| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |