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

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

Issue 1479713003: [turbofan] Implemented the TruncateFloat32ToUint64 TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 case IrOpcode::kChangeUint32ToFloat64: 844 case IrOpcode::kChangeUint32ToFloat64:
845 return MarkAsFloat64(node), VisitChangeUint32ToFloat64(node); 845 return MarkAsFloat64(node), VisitChangeUint32ToFloat64(node);
846 case IrOpcode::kChangeFloat64ToInt32: 846 case IrOpcode::kChangeFloat64ToInt32:
847 return MarkAsWord32(node), VisitChangeFloat64ToInt32(node); 847 return MarkAsWord32(node), VisitChangeFloat64ToInt32(node);
848 case IrOpcode::kChangeFloat64ToUint32: 848 case IrOpcode::kChangeFloat64ToUint32:
849 return MarkAsWord32(node), VisitChangeFloat64ToUint32(node); 849 return MarkAsWord32(node), VisitChangeFloat64ToUint32(node);
850 case IrOpcode::kTruncateFloat32ToInt64: 850 case IrOpcode::kTruncateFloat32ToInt64:
851 return MarkAsWord64(node), VisitTruncateFloat32ToInt64(node); 851 return MarkAsWord64(node), VisitTruncateFloat32ToInt64(node);
852 case IrOpcode::kTruncateFloat64ToInt64: 852 case IrOpcode::kTruncateFloat64ToInt64:
853 return MarkAsWord64(node), VisitTruncateFloat64ToInt64(node); 853 return MarkAsWord64(node), VisitTruncateFloat64ToInt64(node);
854 case IrOpcode::kTruncateFloat32ToUint64:
855 return MarkAsWord64(node), VisitTruncateFloat32ToUint64(node);
854 case IrOpcode::kTruncateFloat64ToUint64: 856 case IrOpcode::kTruncateFloat64ToUint64:
855 return MarkAsWord64(node), VisitTruncateFloat64ToUint64(node); 857 return MarkAsWord64(node), VisitTruncateFloat64ToUint64(node);
856 case IrOpcode::kChangeInt32ToInt64: 858 case IrOpcode::kChangeInt32ToInt64:
857 return MarkAsWord64(node), VisitChangeInt32ToInt64(node); 859 return MarkAsWord64(node), VisitChangeInt32ToInt64(node);
858 case IrOpcode::kChangeUint32ToUint64: 860 case IrOpcode::kChangeUint32ToUint64:
859 return MarkAsWord64(node), VisitChangeUint32ToUint64(node); 861 return MarkAsWord64(node), VisitChangeUint32ToUint64(node);
860 case IrOpcode::kTruncateFloat64ToFloat32: 862 case IrOpcode::kTruncateFloat64ToFloat32:
861 return MarkAsFloat32(node), VisitTruncateFloat64ToFloat32(node); 863 return MarkAsFloat32(node), VisitTruncateFloat64ToFloat32(node);
862 case IrOpcode::kTruncateFloat64ToInt32: 864 case IrOpcode::kTruncateFloat64ToInt32:
863 return MarkAsWord32(node), VisitTruncateFloat64ToInt32(node); 865 return MarkAsWord32(node), VisitTruncateFloat64ToInt32(node);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) { 1106 void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) {
1105 UNIMPLEMENTED(); 1107 UNIMPLEMENTED();
1106 } 1108 }
1107 1109
1108 1110
1109 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) { 1111 void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) {
1110 UNIMPLEMENTED(); 1112 UNIMPLEMENTED();
1111 } 1113 }
1112 1114
1113 1115
1116 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) {
1117 UNIMPLEMENTED();
1118 }
1119
1120
1114 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) { 1121 void InstructionSelector::VisitTruncateFloat64ToUint64(Node* node) {
1115 UNIMPLEMENTED(); 1122 UNIMPLEMENTED();
1116 } 1123 }
1117 1124
1118 1125
1119 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { 1126 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) {
1120 UNIMPLEMENTED(); 1127 UNIMPLEMENTED();
1121 } 1128 }
1122 1129
1123 1130
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 return new (instruction_zone()) FrameStateDescriptor( 1477 return new (instruction_zone()) FrameStateDescriptor(
1471 instruction_zone(), state_info.type(), state_info.bailout_id(), 1478 instruction_zone(), state_info.type(), state_info.bailout_id(),
1472 state_info.state_combine(), parameters, locals, stack, 1479 state_info.state_combine(), parameters, locals, stack,
1473 state_info.shared_info(), outer_state); 1480 state_info.shared_info(), outer_state);
1474 } 1481 }
1475 1482
1476 1483
1477 } // namespace compiler 1484 } // namespace compiler
1478 } // namespace internal 1485 } // namespace internal
1479 } // namespace v8 1486 } // 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