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

Side by Side Diff: src/compiler/instruction-selector.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/arm64/instruction-selector-arm64.cc ('k') | src/compiler/machine-operator.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/compiler/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 case IrOpcode::kChangeInt32ToFloat64: 821 case IrOpcode::kChangeInt32ToFloat64:
822 return MarkAsFloat64(node), VisitChangeInt32ToFloat64(node); 822 return MarkAsFloat64(node), VisitChangeInt32ToFloat64(node);
823 case IrOpcode::kChangeUint32ToFloat64: 823 case IrOpcode::kChangeUint32ToFloat64:
824 return MarkAsFloat64(node), VisitChangeUint32ToFloat64(node); 824 return MarkAsFloat64(node), VisitChangeUint32ToFloat64(node);
825 case IrOpcode::kChangeFloat64ToInt32: 825 case IrOpcode::kChangeFloat64ToInt32:
826 return MarkAsWord32(node), VisitChangeFloat64ToInt32(node); 826 return MarkAsWord32(node), VisitChangeFloat64ToInt32(node);
827 case IrOpcode::kChangeFloat64ToUint32: 827 case IrOpcode::kChangeFloat64ToUint32:
828 return MarkAsWord32(node), VisitChangeFloat64ToUint32(node); 828 return MarkAsWord32(node), VisitChangeFloat64ToUint32(node);
829 case IrOpcode::kTruncateFloat32ToInt64: 829 case IrOpcode::kTruncateFloat32ToInt64:
830 return MarkAsWord64(node), VisitTruncateFloat32ToInt64(node); 830 return MarkAsWord64(node), VisitTruncateFloat32ToInt64(node);
831 case IrOpcode::kTruncateFloat64ToInt64: 831 case IrOpcode::kTryTruncateFloat64ToInt64:
832 return MarkAsWord64(node), VisitTruncateFloat64ToInt64(node); 832 return MarkAsWord64(node), VisitTryTruncateFloat64ToInt64(node);
833 case IrOpcode::kTruncateFloat32ToUint64: 833 case IrOpcode::kTruncateFloat32ToUint64:
834 return MarkAsWord64(node), VisitTruncateFloat32ToUint64(node); 834 return MarkAsWord64(node), VisitTruncateFloat32ToUint64(node);
835 case IrOpcode::kTruncateFloat64ToUint64: 835 case IrOpcode::kTruncateFloat64ToUint64:
836 return MarkAsWord64(node), VisitTruncateFloat64ToUint64(node); 836 return MarkAsWord64(node), VisitTruncateFloat64ToUint64(node);
837 case IrOpcode::kChangeInt32ToInt64: 837 case IrOpcode::kChangeInt32ToInt64:
838 return MarkAsWord64(node), VisitChangeInt32ToInt64(node); 838 return MarkAsWord64(node), VisitChangeInt32ToInt64(node);
839 case IrOpcode::kChangeUint32ToUint64: 839 case IrOpcode::kChangeUint32ToUint64:
840 return MarkAsWord64(node), VisitChangeUint32ToUint64(node); 840 return MarkAsWord64(node), VisitChangeUint32ToUint64(node);
841 case IrOpcode::kTruncateFloat64ToFloat32: 841 case IrOpcode::kTruncateFloat64ToFloat32:
842 return MarkAsFloat32(node), VisitTruncateFloat64ToFloat32(node); 842 return MarkAsFloat32(node), VisitTruncateFloat64ToFloat32(node);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) { 1080 void InstructionSelector::VisitChangeUint32ToUint64(Node* node) {
1081 UNIMPLEMENTED(); 1081 UNIMPLEMENTED();
1082 } 1082 }
1083 1083
1084 1084
1085 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) { 1085 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) {
1086 UNIMPLEMENTED(); 1086 UNIMPLEMENTED();
1087 } 1087 }
1088 1088
1089 1089
1090 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { 1090 void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) {
1091 UNIMPLEMENTED(); 1091 UNIMPLEMENTED();
1092 } 1092 }
1093 1093
1094 1094
1095 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { 1095 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) {
1096 UNIMPLEMENTED(); 1096 UNIMPLEMENTED();
1097 } 1097 }
1098 1098
1099 1099
1100 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { 1100 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 } 1201 }
1202 } 1202 }
1203 1203
1204 1204
1205 void InstructionSelector::VisitProjection(Node* node) { 1205 void InstructionSelector::VisitProjection(Node* node) {
1206 OperandGenerator g(this); 1206 OperandGenerator g(this);
1207 Node* value = node->InputAt(0); 1207 Node* value = node->InputAt(0);
1208 switch (value->opcode()) { 1208 switch (value->opcode()) {
1209 case IrOpcode::kInt32AddWithOverflow: 1209 case IrOpcode::kInt32AddWithOverflow:
1210 case IrOpcode::kInt32SubWithOverflow: 1210 case IrOpcode::kInt32SubWithOverflow:
1211 case IrOpcode::kTryTruncateFloat64ToInt64:
1211 if (ProjectionIndexOf(node->op()) == 0u) { 1212 if (ProjectionIndexOf(node->op()) == 0u) {
1212 Emit(kArchNop, g.DefineSameAsFirst(node), g.Use(value)); 1213 Emit(kArchNop, g.DefineSameAsFirst(node), g.Use(value));
1213 } else { 1214 } else {
1214 DCHECK(ProjectionIndexOf(node->op()) == 1u); 1215 DCHECK(ProjectionIndexOf(node->op()) == 1u);
1215 MarkAsUsed(value); 1216 MarkAsUsed(value);
1216 } 1217 }
1217 break; 1218 break;
1218 default: 1219 default:
1219 break; 1220 break;
1220 } 1221 }
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 return new (instruction_zone()) FrameStateDescriptor( 1457 return new (instruction_zone()) FrameStateDescriptor(
1457 instruction_zone(), state_info.type(), state_info.bailout_id(), 1458 instruction_zone(), state_info.type(), state_info.bailout_id(),
1458 state_info.state_combine(), parameters, locals, stack, 1459 state_info.state_combine(), parameters, locals, stack,
1459 state_info.shared_info(), outer_state); 1460 state_info.shared_info(), outer_state);
1460 } 1461 }
1461 1462
1462 1463
1463 } // namespace compiler 1464 } // namespace compiler
1464 } // namespace internal 1465 } // namespace internal
1465 } // namespace v8 1466 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698