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

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

Issue 1919513002: [turbofan] Introduce TruncateTaggedToWord32 simplified operator. (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
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 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 VisitRR(this, kArmVcvtU32F64, node); 1135 VisitRR(this, kArmVcvtU32F64, node);
1136 } 1136 }
1137 1137
1138 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { 1138 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) {
1139 VisitRR(this, kArmVcvtU32F64, node); 1139 VisitRR(this, kArmVcvtU32F64, node);
1140 } 1140 }
1141 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { 1141 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
1142 VisitRR(this, kArmVcvtF32F64, node); 1142 VisitRR(this, kArmVcvtF32F64, node);
1143 } 1143 }
1144 1144
1145 void InstructionSelector::VisitTruncateFloat64ToWord32(Node* node) {
1146 VisitRR(this, kArchTruncateDoubleToI, node);
1147 }
1145 1148
1146 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { 1149 void InstructionSelector::VisitRoundFloat64ToInt32(Node* node) {
1147 switch (TruncationModeOf(node->op())) { 1150 VisitRR(this, kArmVcvtS32F64, node);
1148 case TruncationMode::kJavaScript:
1149 return VisitRR(this, kArchTruncateDoubleToI, node);
1150 case TruncationMode::kRoundToZero:
1151 return VisitRR(this, kArmVcvtS32F64, node);
1152 }
1153 UNREACHABLE();
1154 } 1151 }
1155 1152
1156 1153
1157 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { 1154 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
1158 VisitRR(this, kArmVmovLowU32F64, node); 1155 VisitRR(this, kArmVmovLowU32F64, node);
1159 } 1156 }
1160 1157
1161 1158
1162 void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) { 1159 void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) {
1163 ArmOperandGenerator g(this); 1160 ArmOperandGenerator g(this);
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 MachineOperatorBuilder::kFloat32Max | 1858 MachineOperatorBuilder::kFloat32Max |
1862 MachineOperatorBuilder::kFloat64Min | 1859 MachineOperatorBuilder::kFloat64Min |
1863 MachineOperatorBuilder::kFloat64Max; 1860 MachineOperatorBuilder::kFloat64Max;
1864 } 1861 }
1865 return flags; 1862 return flags;
1866 } 1863 }
1867 1864
1868 } // namespace compiler 1865 } // namespace compiler
1869 } // namespace internal 1866 } // namespace internal
1870 } // namespace v8 1867 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698