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

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

Issue 1495213003: [turbofan] Changed TruncateFloat64ToInt64 to TryTruncateFloat64ToInt64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed unused code. Created 5 years 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/machine-operator.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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 821 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
822 VisitRR(this, kMips64TruncUwD, node); 822 VisitRR(this, kMips64TruncUwD, node);
823 } 823 }
824 824
825 825
826 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) { 826 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) {
827 VisitRR(this, kMips64TruncLS, node); 827 VisitRR(this, kMips64TruncLS, node);
828 } 828 }
829 829
830 830
831 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { 831 void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) {
832 if (NodeProperties::FindProjection(node, 1)) {
833 // TODO(mips): implement the second return value.
834 UNIMPLEMENTED();
835 }
832 VisitRR(this, kMips64TruncLD, node); 836 VisitRR(this, kMips64TruncLD, node);
833 } 837 }
834 838
835 839
836 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { 840 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) {
837 VisitRR(this, kMips64TruncUlS, node); 841 VisitRR(this, kMips64TruncUlS, node);
838 } 842 }
839 843
840 844
841 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { 845 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) {
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 MachineOperatorBuilder::kFloat32RoundUp | 1718 MachineOperatorBuilder::kFloat32RoundUp |
1715 MachineOperatorBuilder::kFloat64RoundTruncate | 1719 MachineOperatorBuilder::kFloat64RoundTruncate |
1716 MachineOperatorBuilder::kFloat32RoundTruncate | 1720 MachineOperatorBuilder::kFloat32RoundTruncate |
1717 MachineOperatorBuilder::kFloat64RoundTiesEven | 1721 MachineOperatorBuilder::kFloat64RoundTiesEven |
1718 MachineOperatorBuilder::kFloat32RoundTiesEven; 1722 MachineOperatorBuilder::kFloat32RoundTiesEven;
1719 } 1723 }
1720 1724
1721 } // namespace compiler 1725 } // namespace compiler
1722 } // namespace internal 1726 } // namespace internal
1723 } // namespace v8 1727 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698